Package com.centraview.common

Examples of com.centraview.common.AuthorizationFailedException


   * @param   dl
   */
  private void removeFolderFiles(int userID, int folderId, CVDal dl) throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(userID, "CVFolder", folderId, ModuleFieldRightMatrix.DELETE_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("File - removeFolderFiles");
    dl.setSqlQueryToNull();
    dl.setSql("file.selectfoldlerfiles");
    dl.setInt(1, folderId);
    Collection col = dl.executeQuery();
    Iterator iter = col.iterator();
View Full Code Here


   * @param ParentID
   */
  public void duplicateFolder(int userID, CvFolderVO fdvo, int folderID, int ParentID) throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(userID, "CVFolder", folderID, ModuleFieldRightMatrix.UPDATE_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("File - duplicateFolder");

    CVDal dl = new CVDal(dataSource);
    try {
      dl.setSql("file.insertfolder");
      dl.setString(1, fdvo.getName());
View Full Code Here

   * @param   folderID
   */
  public void duplicateFile(int userID,int fileID,int folderID) throws  AuthorizationFailedException
  {
    if(!CVUtility.canPerformRecordOperation(userID,"CVFolder",fileID,ModuleFieldRightMatrix.UPDATE_RIGHT, this.dataSource) )
      throw new AuthorizationFailedException("File - duplicateFile");
  }
View Full Code Here

   * This method returns int from local Bean
   */
  public int addEvent(HashMap mapEvent, int userId) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Events", userId, this.dataSource))
      throw new AuthorizationFailedException("Event - getEventDetails");
    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
      EventsLocal local = home.create();
View Full Code Here

   */
  public int addEventRegister(HashMap mapEventRegister, int userId)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Events", userId, this.dataSource))
      throw new AuthorizationFailedException("Events - addEvents");

    int result = 0;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
View Full Code Here

   */
  public EventDetails getEventDetails(int userId, int eventID) throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(userId, "Events", eventID,
        ModuleFieldRightMatrix.VIEW_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("Events - getEvents");

    EventDetails eventDetails = new EventDetails();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      EventsLocalHome home = (EventsLocalHome)ic.lookup("local/Events");
View Full Code Here

   * Thismethod returns EventList from local Bean
   */
  public EventList getEventList(int userId, HashMap info) throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Events", userId, this.dataSource))
      throw new AuthorizationFailedException("Events - getEventList");

    EventList eventlist = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      MarketingListLocalHome home = (MarketingListLocalHome)ic.lookup("local/MarketingList");
View Full Code Here

   */
  public PromotionList getPromotionList(int userId, HashMap info)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Promotion", userId, this.dataSource))
      throw new AuthorizationFailedException("Promotion - getPromotionList");

    PromotionList promotionlist = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      MarketingListLocalHome home = (MarketingListLocalHome)ic.lookup("local/MarketingList");
View Full Code Here

   */
  public EventAtendeesList getEventAtendeesList(int userId, HashMap info)
      throws AuthorizationFailedException
  {
    if (!CVUtility.isModuleVisible("Events", userId, this.dataSource))
      throw new AuthorizationFailedException("Events - getEvents");

    EventAtendeesList EventAtendeeslist = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      MarketingListLocalHome home = (MarketingListLocalHome)ic.lookup("local/MarketingList");
View Full Code Here

  public MarketingListMemberList getMarketingListMemberList(int userID, int marketingListID,
      HashMap preferences) throws AuthorizationFailedException
  {
    if (!CVUtility.canPerformRecordOperation(userID, "ListManager", marketingListID,
        ModuleFieldRightMatrix.VIEW_RIGHT, this.dataSource)) {
      throw new AuthorizationFailedException("MarketingList - getEventDetails");
    }

    MarketingListMemberList marketingListMemberList = null;

    try {
View Full Code Here

TOP

Related Classes of com.centraview.common.AuthorizationFailedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.