Examples of InfoGlueGroup


Examples of org.infoglue.cms.security.InfoGlueGroup

    List roles = new ArrayList();
    roles.add(new InfoGlueRole("administrators", "", null));
    roles.add(new InfoGlueRole("cmsUser", "", null));

    List groups = new ArrayList();
    groups.add(new InfoGlueGroup("administrators", "", null));
    groups.add(new InfoGlueGroup("cmsUser", "", null));

    InfoGluePrincipal p = new InfoGluePrincipal("mattias", "mattias", "Mattias", "Bogeblad", "mattias.bogeblad@gmail.com", roles, groups, false, null);
   
    return p;
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

           
            List groups = new ArrayList();
            Iterator groupsListIterator = principal.getGroups().iterator();
              while(groupsListIterator.hasNext())
              {
                InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                groupBean.setName(group.getName());
                groupBean.setDisplayName(group.getDisplayName());
                groupBean.setDescription(group.getDescription());
                groups.add(groupBean)
              }
              bean.setGroups(groups);
 
            List roles = new ArrayList();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

             
              List groups = new ArrayList();
              Iterator groupsListIterator = principal.getGroups().iterator();
                while(groupsListIterator.hasNext())
                {
                  InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                  InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                  groupBean.setName(group.getName());
                  groupBean.setDisplayName(group.getDisplayName());
                  groupBean.setDescription(group.getDescription());
                  groups.add(groupBean)
                }
                bean.setGroups(groups);

              List roles = new ArrayList();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

             
              List groups = new ArrayList();
              Iterator groupsListIterator = principal.getGroups().iterator();
                while(groupsListIterator.hasNext())
                {
                  InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                  InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                  groupBean.setName(group.getName());
                  groupBean.setDisplayName(group.getDisplayName());
                  groupBean.setDescription(group.getDescription());
                  groups.add(groupBean)
                }
                bean.setGroups(groups);

              List roles = new ArrayList();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

             
              List groups = new ArrayList();
              Iterator groupsListIterator = principal.getGroups().iterator();
                while(groupsListIterator.hasNext())
                {
                  InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
                  InfoGlueGroupBean groupBean = new InfoGlueGroupBean();
                  groupBean.setName(group.getName());
                  groupBean.setDisplayName(group.getDisplayName());
                  groupBean.setDescription(group.getDescription());
                  groups.add(groupBean)
                }
                bean.setGroups(groups);

              List roles = new ArrayList();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

      String prioValue = null;
      int latestPriority = 0;
      Iterator groupsIterator = groups.iterator();
      while(groupsIterator.hasNext())
      {
        InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
       
        Collection groupPropertiesList = GroupPropertiesController.getController().getGroupPropertiesList(group.getName(), languageId, db, true);

        Iterator groupPropertiesListIterator = groupPropertiesList.iterator();
        while(groupPropertiesListIterator.hasNext())
        {
          GroupProperties groupProperties = (GroupProperties)groupPropertiesListIterator.next();
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

    List contentTypeDefinitionVOList = GroupPropertiesController.getController().getContentTypeDefinitionVOList(groupName);
    if(contentTypeDefinitionVOList != null && contentTypeDefinitionVOList.size() > 0)
      this.setContentTypeDefinitionVO((ContentTypeDefinitionVO)contentTypeDefinitionVOList.get(0));
    t.printElapsedTime("initialize 2");
   
    InfoGlueGroup infoGlueGroup = GroupControllerProxy.getController().getGroup(groupName);
    groupPropertiesVOList = GroupPropertiesController.getController().getGroupPropertiesVOList(groupName, this.getLanguageId());
    if(groupPropertiesVOList != null && groupPropertiesVOList.size() > 0)
    {
      this.groupPropertiesVO = (GroupPropertiesVO)groupPropertiesVOList.get(0);
      this.setContentTypeDefinitionId(this.groupPropertiesVO.getContentTypeDefinitionId());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

   * This method returns a certain group
   */
 
  public InfoGlueGroup getGroup(String groupName) throws ConstraintException, SystemException, Exception
  {
    InfoGlueGroup infoGlueGroup = null;
     
    infoGlueGroup = getAuthorizationModule().getAuthorizedInfoGlueGroup(groupName);
     
    return infoGlueGroup;
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

   * This method creates a new group
   */
 
  public InfoGlueGroup createGroup(GroupVO groupVO) throws ConstraintException, SystemException, Exception
  {
    InfoGlueGroup infoGlueGroup = null;
     
    getAuthorizationModule().createInfoGlueGroup(groupVO);
     
    return getGroup(groupVO.getGroupName());
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

        beginTransaction(db);
       
        Iterator allRolesIterator = allGroups.iterator();
        while(allRolesIterator.hasNext())
        {
          InfoGlueGroup group = (InfoGlueGroup)allRolesIterator.next();
          boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(db, infoGluePrincipal, interceptionPointName, "" + group.getName());
          if(hasAccess)
            availableGroups.add(group);
        }     
       
        commitTransaction(db);
      }
      catch (Exception e)
      {
        rollbackTransaction(db);
        throw new SystemException(e);
      }
    }
    else
    {
      Iterator allRolesIterator = allGroups.iterator();
      while(allRolesIterator.hasNext())
      {
        InfoGlueGroup group = (InfoGlueGroup)allRolesIterator.next();
        boolean hasAccess = AccessRightController.getController().getIsPrincipalAuthorized(this.transactionObject, infoGluePrincipal, interceptionPointName, "" + group.getName());
        if(hasAccess)
          availableGroups.add(group);
      }           
    }
   
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.