Package com.centraview.administration.authorization

Examples of com.centraview.administration.authorization.AuthorizationHome


        userObject = remote.getUserObject(individualId, firstName, lastName, userType);
        userObject.setLoginName(username);

        // In a certain case we will need a blank rights matrix, so prepare the remote connection now.
        AuthorizationHome ah = (AuthorizationHome)CVUtility.getHomeObject("com.centraview.administration.authorization.AuthorizationHome","Authorization");
        Authorization authorizationRemote = ah.create();
        authorizationRemote.setDataSource(dataSource);

        if (remember.equals("on")) {
          // the "Remember Me" cookie contains the a string in the format
          // "<userName>/<password>". This string is then encrypted.
View Full Code Here


      // it.
      // Other user can't update it.
      // thats why we will disable the Edit button
      boolean editFlag = false;
      if (kVO.getStatus() != null && kVO.getStatus().equals("PUBLISH")) {
        AuthorizationHome homeAuthorization = (AuthorizationHome)CVUtility.getHomeObject(
            "com.centraview.administration.authorization.AuthorizationHome", "Authorization");
        try {
          Authorization remoteAuthorization = homeAuthorization.create();
          remoteAuthorization.setDataSource(dataSource);
          editFlag = remoteAuthorization.canPerformRecordOperation(individualID, "KnowledgeBase",
              kbId, ModuleFieldRightMatrix.UPDATE_RIGHT);
        } catch (Exception e) {
          logger.error("[Exception] [ViewKnowledgebaseHandler.execute Calling Authorization]  ", e);
View Full Code Here

      }

      try
      {
        // check to see if the user has the right to update this record
        AuthorizationHome authHome = (AuthorizationHome)CVUtility.getHomeObject("com.centraview.administration.authorization.AuthorizationHome", "Authorization");
        Authorization authRemote = (Authorization)authHome.create();
       
        if (! authRemote.canPerformRecordOperation(individualID, "Individual", contactID, 10))
        {
          writer.print("FAIL: You do not have permission to delete this record.");
          return(null);
View Full Code Here

      ContactFacade remote = (ContactFacade)cfh.create();
      remote.setDataSource(dataSource);

      try {
        // check to see if the user has the right to update this record
        AuthorizationHome authHome = (AuthorizationHome)CVUtility.getHomeObject("com.centraview.administration.authorization.AuthorizationHome", "Authorization");
        Authorization authRemote = (Authorization)authHome.create();
       
        if (! authRemote.canPerformRecordOperation(individualID, "Individual", contactID, 20)) {
          return(null);
        }
      }catch(Exception e){
View Full Code Here

  public static String getModuleId(String moduleName, String dataSource) throws Exception
  {
    Authorization remoteAuthorization = null;
    try {
      AuthorizationHome AuthorizationHome = (AuthorizationHome) CVUtility.getHomeObject(
          "com.centraview.administration.authorization.AuthorizationHome", "Authorization");
      remoteAuthorization = AuthorizationHome.create();
      remoteAuthorization.setDataSource(dataSource);
    } catch (Exception e) {
      logger.error("[getModuleId]: Exception getting EJB connection.", e);
      throw new Exception(e);
    }
View Full Code Here

        hm.put("sortType", new Character('A'));
        HashMap listMap = null;

        try {

          AuthorizationHome aa = (AuthorizationHome)CVUtility.getHomeObject(
              "com.centraview.administration.authorization.AuthorizationHome", "Authorization");
          Authorization remote = (Authorization)aa.create();
          remote.setDataSource(this.dataSource);

          returnDL = remote.getSecurityProfileList(userID, hm);

        } catch (Exception e) {
View Full Code Here

    hm.put("searchString", searchString);
    hm.put("sortmem", paramDL.getSortMember());
    hm.put("sortType", new Character(paramDL.getSortType()));

    try {
      AuthorizationHome aa = (AuthorizationHome)CVUtility.getHomeObject(
          "com.centraview.administration.authorization.AuthorizationHome", "Authorization");
      Authorization remote = (Authorization)aa.create();
      remote.setDataSource(this.dataSource);
      returnDL = remote.getSecurityProfileList(userid, hm);

    } catch (Exception e) {
      System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
View Full Code Here

TOP

Related Classes of com.centraview.administration.authorization.AuthorizationHome

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.