Examples of create()


Examples of com.centraview.activity.helper.ActivityHelperLocalHome.create()

        throw new AuthorizationFailedException("User does not have access to Tasks");
      }

      InitialContext ic = CVUtility.getInitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = (ActivityHelperLocal) home.create();
      remote.setDataSource(dataSource);

      ActivityVO actVo = new ActivityVO();
      actVo.setEntityID(0);
      actVo.setIndividualID(tvo.getIndividualID());

Examples of com.centraview.additionalmenu.AdditionalMenuHome.create()

    Vector vec = new Vector();

    try {
      AdditionalMenuHome home = (AdditionalMenuHome)CVUtility.getHomeObject(
          "com.centraview.additionalmenu.AdditionalMenuHome", "AdditionalMenu");
      AdditionalMenu remote = home.create();
      remote.setDataSource(this.dataSource);

      vec = remote.getAllAdditionalMenuItems(isOrdered);
    } catch (Exception e) {
      logger.error("[getAllAdditionalMenu] Exception thrown.", e);

Examples of com.centraview.administration.applicationsettings.AppSettingsHome.create()

    Vector vec = new Vector();

    try {
      AppSettingsHome appHome = (AppSettingsHome)CVUtility.getHomeObject(
          "com.centraview.administration.applicationsettings.AppSettingsHome", "AppSettings");
      AppSettings appRemote = appHome.create();
      appRemote.setDataSource(this.dataSource);

      vec = appRemote.getRecordType(module);
    } catch (Exception e) {
      logger.error("[getRecordType] Exception thrown.", e);

Examples of com.centraview.administration.applicationsettings.AppSettingsLocalHome.create()

      TicketLocal ticketRemote = (TicketLocal) ticketHome.create();
      ticketRemote.setDataSource(this.dataSource);

      // Used for getting the Default Owner ID.
      AppSettingsLocalHome appHome=(AppSettingsLocalHome)ic.lookup("local/AppSettings");
      AppSettingsLocal appRemote=(AppSettingsLocal)appHome.create();
      appRemote.setDataSource(this.dataSource);
      String strAssignedID = appRemote.getApplicationSettings("DEFAULTOWNER");
      appRemote = null;
      appHome = null;

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

      Collection coldelete = new ArrayList();

      int uid = Integer.parseInt(request.getParameter("contactID").toString());
      request.setAttribute("userID",new Integer(uid));

      Authorization authRemote = (Authorization)authHome.create();

      hm = authRemote.getDefaultPermissions(uid);

      if (! authRemote.getUserDefaultPermission(uid).equalsIgnoreCase("Yes")) {
        if (hm != null) {

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

  {
    boolean retVal = false;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome) ic.lookup("local/Authorization");
      AuthorizationLocal local = home.create();
      local.setDataSource(dataSource);
      retVal = local.isModuleVisible(moduleName, individualId);
    } catch (Exception e) {
      logger.error("[isModuleVisible]: Exception", e);
    }

Examples of com.centraview.administration.emailsettings.EmailSettingsHome.create()

    DynaActionForm profileForm = (DynaActionForm)form;
   
    EmailSettingsHome emailSettingsHome = (EmailSettingsHome)CVUtility.getHomeObject("com.centraview.administration.emailsettings.EmailSettingsHome","EmailSettings");
   
    try {
      EmailSettings emailSettingsRemote = (EmailSettings)emailSettingsHome.create();
      emailSettingsRemote.setDataSource(dataSource);
     
      // Its a predefined Template for the replying message for the Change Of Profile Information
      EmailTemplateForm custProfileTemplateForm = emailSettingsRemote.getEmailTemplate(AdministrationConstantKeys.EMAIL_TEMPLATE_CUST_PROFILE);
      String toAddress = custProfileTemplateForm.getToAddress();

Examples of com.centraview.administration.emailsettings.EmailSettingsLocalHome.create()

      String fromAddress = contactRemote.getPrimaryEmailAddress(individualID,2);

      if (fromAddress != null && !fromAddress.equals("") && toList != null && toList.size() != 0)
      {
        EmailSettingsLocalHome emailSettingsHome = (EmailSettingsLocalHome)ic.lookup("local/EmailSettings");
        EmailSettingsLocal emailSettingsRemote = (EmailSettingsLocal)emailSettingsHome.create();
        emailSettingsRemote.setDataSource(dataSource);

        // Its a predefined Template for the replying message for Task Completion
        EmailTemplateForm taskTemplateForm = emailSettingsRemote.getEmailTemplate(AdministrationConstantKeys.EMAIL_TEMPLATE_TASK);
        String subject = taskTemplateForm.getSubject();

Examples of com.centraview.administration.history.HistoryLocalHome.create()

      InitialContext ic = getInitialContext();

      // Call Local EJB to add the record in DB
      HistoryLocalHome historyLocal = (HistoryLocalHome) ic.lookup("local/History");
      HistoryLocal history = historyLocal.create();
      history.setDataSource(dataSource);
      history.addHistoryRecord(historyInfo);

    } catch (Exception e) {
      logger.error("[addHistoryRecord]: Exception", e);

Examples of com.centraview.administration.serversettings.ServerSettingsHome.create()

  {
    String hostName = "";
    try {
      InitialContext ic = new InitialContext();
      ServerSettingsHome serverSettingsHome = (ServerSettingsHome)CVUtility.getHomeObject("com.centraview.administration.serversettings.ServerSettingsHome", "ServerSettings");
      ServerSettings serverSettingsRemote = (ServerSettings)serverSettingsHome.create();
      serverSettingsRemote.setDataSource(dataSource);
      ServerSettingsVOX serverSettings = serverSettingsRemote.getServerSettings();
      hostName = serverSettings.getHostName();
    } catch (Exception e) {
      logger.error("[getHostName] Exception thrown.", e);
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.