Package com.centraview.administration.authorization

Examples of com.centraview.administration.authorization.AuthorizationLocalHome


      }

      // end of added by sandeepj for adding attachFileIds into ProposalLink
      // table
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic
          .lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(dataSource);
      authorizationLocal.saveCurrentDefaultPermission("Proposals", gid, individualID);
    } catch (Exception e) {
      logger.error("[addProposal]: Exception", e);
    } finally {
View Full Code Here


        dl.setString(7,publishToCustomerView);
        dl.executeUpdate();

        kbid = dl.getAutoGeneratedKey();
        InitialContext ic = CVUtility.getInitialContext();
        AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
        AuthorizationLocal authorizationLocal = authorizationHome.create();
        authorizationLocal.setDataSource(dataSource);
        authorizationLocal.saveCurrentDefaultPermission("Knowledgebase", kbid, userId);
      }
      catch(Exception e)
      {
View Full Code Here

      dl.setInt(3, groupDetail.getOwner());
      dl.executeUpdate();
      gid = dl.getAutoGeneratedKey();
      // 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(dataSource);
      authorizationLocal.saveCurrentDefaultPermission("Group", gid, userId);
    } catch (Exception e) {
      logger.error("[createGroup]: Exception", e);
    } finally {
View Full Code Here

        CustomFieldVO custFieldVO = (CustomFieldVO)custfieldVec.get(i);
        custFieldVO.setRecordID( promotionid );
        custRemote.addCustomField(custFieldVO);
      }

            AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
            AuthorizationLocal authorizationLocal = authorizationHome.create();
            authorizationLocal.setDataSource(dataSource);
            authorizationLocal.saveCurrentDefaultPermission("Promotion", promotionid, userId);

    }
    catch(Exception e )
View Full Code Here

          this.addExpenseItem(ele,expenseFormID,userID);
        }
      }   // end if (hrexpenseLines != null)

      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome authorizationHome = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal authorizationLocal = authorizationHome.create();
      authorizationLocal.setDataSource(this.dataSource);
      authorizationLocal.saveCurrentDefaultPermission("Expense", expenseFormID, userID);
    }catch(Exception e){
      System.out.println("[Exception][HrExpensesEJB.ejbCreate] Exception Thrown: "+e);
      e.printStackTrace();
View Full Code Here

    {

      entityCollection = this.getAccessEntityList(individualId,preference);
      // get field rights
      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome) ic.lookup("local/Authorization");
      AuthorizationLocal local = home.create();

      entityFieldRights = local.getNoneRightFieldMethod("Entity", individualId);
      if (entityFieldRights == null)
      {
        entityFieldRights = new HashMap();
View Full Code Here

      }

     Collection individualCollection = this.getAccessIndividualList(individualId,preference);

      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome) ic.lookup("local/Authorization");
      AuthorizationLocal local = home.create();
      HashMap individualFieldRights = local.getNoneRightFieldMethod("Individual", individualId);
      HashMap entityFieldRights = local.getNoneRightFieldMethod("Entity", individualId);

      Iterator it = individualCollection.iterator();
View Full Code Here

      cvdl.executeUpdate();
      cvdl.clearParameters();


      InitialContext ic = CVUtility.getInitialContext();
      AuthorizationLocalHome home = (AuthorizationLocalHome)ic.lookup("local/Authorization");
      AuthorizationLocal local =  home.create();

      HashMap groupFieldRights = local.getNoneRightFieldMethod("Group", individualId);


      Collection v = null;
View Full Code Here

TOP

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

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.