Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.AccessRightVO


      {
        String interceptionPointName = interceptionPointNames[i];
        InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithName(interceptionPointName, db);
        if(interceptionPoint != null)
        {
          AccessRightVO accessRightVO = new AccessRightVO();
          accessRightVO.setParameters(parameters);
   
          AccessRight accessRight = create(accessRightVO, interceptionPoint, db);
           
          if(principal != null && accessRight != null)
          {
View Full Code Here


        // Add acces rights for each interception point in the category
      List<InterceptionPoint> interceptionPointList = InterceptionPointController.getController().getInterceptionPointList(interceptionPointCategory, db);
      for(InterceptionPoint interceptionPoint : interceptionPointList)
      {
        AccessRightVO accessRightVO = new AccessRightVO();
        accessRightVO.setParameters(parameters);

        AccessRight accessRight = create(accessRightVO, interceptionPoint, db);

        if(roleName != null && accessRight != null)
        {
View Full Code Here

   
    getAllDuplicates(true, true, duplicateAccessRightVOList, duplicateAutoDeletableAccessRightVOList, duplicateAutoMergableAccessRightVOList, db);
    Iterator duplicateAutoMergableAccessRightVOListIterator = duplicateAutoMergableAccessRightVOList.iterator();
    while(duplicateAutoMergableAccessRightVOListIterator.hasNext())
    {
      AccessRightVO arVO = (AccessRightVO)duplicateAutoMergableAccessRightVOListIterator.next();
     
      List<AccessRight> entityAccessRights = getAccessRightListForEntity(arVO.getInterceptionPointId(), arVO.getParameters(), db);
      List<AccessRightUser> users = new ArrayList<AccessRightUser>();
     
      Iterator entityAccessRightsIterator = entityAccessRights.iterator();
      while(entityAccessRightsIterator.hasNext())
      {
View Full Code Here

        keeperAR = ar;
    }
   
    if(keeperAR != null)
    {
      AccessRightVO accessRightVO = new AccessRightVO();
      accessRightVO.setParameters(parameters);
 
        //InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithId(interceptionPointId, db);
      //AccessRight accessRight = create(accessRightVO, interceptionPoint, db);
     
      for(String roleName : roleNames)
View Full Code Here

    int deletable=0;
    QueryResults results = oql.execute(Database.READONLY);
    while (results.hasMore())
    {
      AccessRight accessRight = (AccessRight)results.next();
      AccessRightVO accessRightVO = accessRight.getValueObject();
     
      if(populateRelated)
      {
        AccessRight fullAccessRight = getAccessRightWithId(accessRightVO.getId(), db);
       
        populateDescription(db, accessRightVO, fullAccessRight);
       
        List<AccessRightRoleVO> roles = toVOList(fullAccessRight.getRoles());
        List<AccessRightGroupVO> groups = toVOList(fullAccessRight.getGroups());
        List<AccessRightUserVO> users = toVOList(fullAccessRight.getUsers());
        accessRightVO.getRoles().addAll(roles);
        accessRightVO.getGroups().addAll(groups);
        accessRightVO.getUsers().addAll(users);
        if(roles.size() == 0 && groups.size() == 0 && users.size() == 0)
        {
          duplicates.add(accessRightVO);         
          duplicatesEasyToDelete.add(accessRightVO);
        }
View Full Code Here

   
    QueryResults results = oql.execute(Database.READONLY);
    while (results.hasMore())
    {
      AccessRight accessRight = (AccessRight)results.next();
      AccessRightVO accessRightVO = accessRight.getValueObject();
      undefinedAccessRights.add(accessRightVO);
    }
   
    results.close();
    oql.close();
View Full Code Here

   * is handling.
   */

  public BaseEntityVO getNewVO()
  {
    return new AccessRightVO();
  }
View Full Code Here

                      InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithName(interceptionPointName, db);
                     
                      logger.info("interceptionPointName:" + interceptionPointName);
                    logger.info("parameters:" + parameters);
   
                    AccessRightVO accessRightVO = new AccessRightVO();
                    accessRightVO.setParameters("" + newContentVO.getId());
                   
                    AccessRight accessRight = AccessRightController.getController().create(accessRightVO, interceptionPoint, db);
                   
              @SuppressWarnings("unchecked")
              List<String> accessRightRoles = (List<String>)accessRightMap.get("accessRightRoles");
View Full Code Here

        siteNodeVersionVO = SiteNodeStateController.getController().changeState(siteNodeVersionVO.getId(), SiteNodeVersionVO.WORKING_STATE, "Access right changes", true, this.getInfoGluePrincipal(), siteNodeVersionVO.getSiteNodeId(), events);
        this.newParameters = "" + siteNodeVersionVO.getId();
        this.parameters = "" + siteNodeVersionVO.getId();
        siteNodeVersionId = siteNodeVersionVO.getId();
     
        AccessRightVO accessRightVO = AccessRightController.getController().getAccessRightVOWithId(this.accessRightId);
        List<AccessRightVO> accessRightsVOList = AccessRightController.getController().getAccessRightVOList(accessRightVO.getInterceptionPointName(), newParameters);
        for(AccessRightVO accessRightVOCandidate : accessRightsVOList)
        {
          if(accessRightVOCandidate.getInterceptionPointId().intValue() == interceptionPointId.intValue())
          {
            this.accessRightId = accessRightVOCandidate.getId();
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.AccessRightVO

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.