Package com.centraview.administration.authorization

Examples of com.centraview.administration.authorization.AuthorizationLocalHome.create()


          }
        }
        // Save CustomFields ends here

        AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
        AuthorizationLocal authorizationLocal = authorizationHome.create();
        authorizationLocal.setDataSource(dataSource);
        authorizationLocal.saveCurrentDefaultPermission("Inventory", pKey, individualID);

      } catch(Exception e)
      {
View Full Code Here


        this.addPurchaseOrderItem(ele,purchaseorderID);
      }// end of while

      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(ds);
      authorizationLocal.saveCurrentDefaultPermission("PurchaseOrder", purchaseorderID, userID);
    }
    catch(Exception e)
    {
View Full Code Here

        this.addApplyPayment(ele,paymentID);
      }

            InitialContext ic = CVUtility.getInitialContext();
            AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
            AuthorizationLocal authorizationLocal = authorizationHome.create();
            authorizationLocal.setDataSource(ds);
            authorizationLocal.saveCurrentDefaultPermission("Payment", paymentID, userID);

     }
     catch(Exception e)
View Full Code Here

        this.addExpenseItem(ele,expenseID);
      }// end of while

      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(ds);
      authorizationLocal.saveCurrentDefaultPermission("Expense", expenseID, userID);

    }
    catch(Exception e)
View Full Code Here

        this.addOrderItem(ele, orderID);
      }// end of while

      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome) ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(ds);
      authorizationLocal.saveCurrentDefaultPermission("OrderHistory", orderID, userID);

    } catch (Exception e) {
      logger.error("[ejbCreate]: Exception", e);
View Full Code Here

    if (newListID != 0) {
      // Everything is created now apply the default permissions for this user.
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(this.dataSource);
      authorizationLocal.saveCurrentDefaultPermission("ListManager", newListID, userId);
      authorizationLocal.saveCurrentDefaultPermission("MarketingList", newListID, userId);
    }
    return newListID;
View Full Code Here

      contactLocal.setDataSource(this.dataSource);
      contactLocal.deleteEntity(listID);
      contactLocal.deleteIndividual(listID);
     
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(this.dataSource);
      authorizationLocal.deleteMarketingMemberPublicRecords(listID);
      authorizationLocal.deleteRecordFromPublic("ListManager",listID);
      authorizationLocal.deleteRecordFromPublic("MarketingList",listID);
      authorizationLocal.deleteRecordsFromRecordAuthorization("ListManager",listID);
View Full Code Here

     
      // We collect a set of newly created individual and entity and then we will set permission on the Individual and Entity
      // on basis of the Marketing List's Member Permission
      if (newIndividualList.size() != 0 || newEntityList.size() != 0) {
        AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
        AuthorizationLocal remoteAuth = authorizationHome.create();
        remoteAuth.setDataSource(this.dataSource);
        remoteAuth.saveMarketingRecordPermission(newIndividualList, newEntityList, listid);
      }
    } catch (Exception e) {
      logger.error("[Exception] ListEJB.getImportList: ", e);
View Full Code Here

      faqId  = cvdl.getAutoGeneratedKey();

      // Apply default permissions to the record.
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(dataSource);
      authorizationLocal.saveCurrentDefaultPermission("FAQ", faqId, userId);

    } catch(Exception e)
    {
View Full Code Here

      }
      // call the authorization EJB to set the record public if warranted
      if (fdvo.getVisibility().equals("PUBLIC")) {
        InitialContext ic = CVUtility.getInitialContext();
        AuthorizationLocalHome home = (AuthorizationLocalHome)ic.lookup("local/Authorization");
        AuthorizationLocal remote = home.create();
        remote.setDataSource(dataSource);
        remote.setRecordToPublic("76", folderID)// 76 is the folder "module" id.
      }
    } catch (Exception e) {
      logger.error("[addFolder] Exception thrown.", e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.