Examples of InfoGlueGroup


Examples of org.infoglue.cms.security.InfoGlueGroup

   
      List groups = infoGluePrincipal.getGroups();
      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 groups = infoGluePrincipal.getGroups();
      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

  {
      boolean isValid = false;
      Iterator groupsIterator = infoGluePrincipal.getGroups().iterator();
      while(groupsIterator.hasNext())
      {
          InfoGlueGroup infoglueGroup = (InfoGlueGroup)groupsIterator.next();
          if(infoglueGroup.getName().equalsIgnoreCase(groupName))
          {
              isValid = true;
          }
      }
     
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

    return categories;
 
   
  public InfoGlueGroup getGroup(String groupName)
  {
    InfoGlueGroup group = null;
   
    try
    {
      group = GroupControllerProxy.getController().getGroup(groupName);
    }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

                 
                  Iterator userIterator = users.iterator();
               
              while(userIterator.hasNext())
                {
                    InfoGlueGroup group = (InfoGlueGroup)userIterator.next();
                    if(group.getName().equalsIgnoreCase(accessRightGroupVO.getGroupName()))
                    {
                      isValid = true;
                      break;
                    }
                }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

        {
          if(groupPropertiesVO.getGroupName() != null)
          {
            try
            {
              InfoGlueGroup group = GroupControllerProxy.getController(db).getGroup(groupPropertiesVO.getGroupName());
              if(group != null)
                groups.add(group);
            }
            catch (Exception e)
            {
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

      {
        Iterator groupsIterator = principal.getGroups().iterator();
       
        while(groupsIterator.hasNext())
        {
          InfoGlueGroup infoGlueGroup = (InfoGlueGroup)groupsIterator.next();
          users = GroupControllerProxy.getController(db).getInfoGluePrincipals(infoGlueGroup.getName());
        }
      }
      else if(recipientFilter.indexOf("groupNameBased_") > -1)
      {
        String groupName = recipientFilter.substring(recipientFilter.indexOf("_") + 1);
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

            List groupsList = GroupControllerProxy.getController().getAllGroups();

            Iterator groupsListIterator = groupsList.iterator();
            while(groupsListIterator.hasNext())
            {
              InfoGlueGroup group = (InfoGlueGroup)groupsListIterator.next();
              InfoGlueGroupBean bean = new InfoGlueGroupBean();
              bean.setName(group.getName());
              bean.setDisplayName(group.getDisplayName());
              bean.setDescription(group.getDescription());
              groups.add(bean)
            }
        }
        catch(Exception e)
        {
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

                           
                            List groups = versionModifierPrincipal.getGroups();
                            Iterator groupsIterator = groups.iterator();
                            while(groupsIterator.hasNext())
                            {
                              InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                              if(principal.getGroups().contains(group))
                                hasGroup = true;
                            }
                           
                            if(!hasGroup)
                              isValid = false;
                          }
                        }
                      }
                      else if(principal != null && filter != null && filter.indexOf("groupNameBased_") > -1)
                      {
                        String versionModifier = contentVersionVO.getVersionModifier();
                        if(versionModifier != null)
                        {
                          InfoGluePrincipal versionModifierPrincipal = UserControllerProxy.getController(db).getUser(versionModifier);
                          if(versionModifierPrincipal != null)
                          {
                            boolean hasGroup = false;
                            String groupName = filter.substring(filter.indexOf("_") + 1);
                           
                            List groups = versionModifierPrincipal.getGroups();
                            Iterator groupsIterator = groups.iterator();
                            while(groupsIterator.hasNext())
                            {
                              InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                              if(groupName.equalsIgnoreCase(group.getName()))
                                hasGroup = true;
                            }
                           
                            if(!hasGroup)
                              isValid = false;
                          }
                        }                   
                      }
                    }
                  }
            else if(event.getEntityClass().equalsIgnoreCase(SiteNodeVersion.class.getName()))
            {
              SiteNodeVersionVO siteNodeVersion = null;
              SiteNodeVO siteNode = null;
              try
                    {
                siteNodeVersion = SiteNodeVersionController.getController().getSiteNodeVersionVOWithId(event.getEntityId(), db);
                //siteNodeVersion = SiteNodeVersionController.getController().getSiteNodeVersionWithIdAsReadOnly(event.getEntityId(), db);
                if(siteNodeVersion.getSiteNodeId() != null)
                  siteNode = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeVersion.getSiteNodeId(), db);
                    }
                    catch(SystemException e)
                    {
                      hasBrokenItems = true;
                      throw e;
                    }
 
              if(siteNodeVersion == null || siteNode == null)
              {
                      hasBrokenItems = true;
                  isValid = false;
              }
              else
                    {
                      if(principal != null && filter != null && filter.equalsIgnoreCase("groupBased"))
                      {
                        String versionModifier = siteNodeVersion.getVersionModifier();
                        if(versionModifier != null)
                        {
                          InfoGluePrincipal versionModifierPrincipal = UserControllerProxy.getController(db).getUser(versionModifier);
                          if(versionModifierPrincipal != null)
                          {
                            boolean hasGroup = false;
                           
                            List groups = versionModifierPrincipal.getGroups();
                            Iterator groupsIterator = groups.iterator();
                            while(groupsIterator.hasNext())
                            {
                              InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                              if(principal.getGroups().contains(group))
                                hasGroup = true;
                            }
                           
                            if(!hasGroup)
                              isValid = false;
                          }
                        }
                }
                      else if(principal != null && filter != null && filter.indexOf("groupNameBased_") > -1)
                      {
                        String versionModifier = siteNodeVersion.getVersionModifier();
                        if(versionModifier != null)
                        {
                          InfoGluePrincipal versionModifierPrincipal = UserControllerProxy.getController(db).getUser(versionModifier);
                          if(versionModifierPrincipal != null)
                          {
                            boolean hasGroup = false;
                            String groupName = filter.substring(filter.indexOf("_") + 1);
                           
                            List groups = versionModifierPrincipal.getGroups();
                            Iterator groupsIterator = groups.iterator();
                            while(groupsIterator.hasNext())
                            {
                              InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                              if(groupName.equalsIgnoreCase(group.getName()))
                                hasGroup = true;
                            }
                           
                            if(!hasGroup)
                              isValid = false;
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueGroup

                         
                          List groups = versionModifierPrincipal.getGroups();
                          Iterator groupsIterator = groups.iterator();
                          while(groupsIterator.hasNext())
                          {
                            InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                            if(principal.getGroups().contains(group))
                              hasGroup = true;
                          }
                         
                          if(!hasGroup)
                            isValid = false;
                        }
                      }
                    }
                    else if(principal != null && filter != null && filter.indexOf("groupNameBased_") > -1)
                    {
                      String versionModifier = contentVersionVO.getVersionModifier();
                      if(versionModifier != null)
                      {
                        InfoGluePrincipal versionModifierPrincipal = UserControllerProxy.getController(db).getUser(versionModifier);
                        if(versionModifierPrincipal != null)
                        {
                          boolean hasGroup = false;
                          String groupName = filter.substring(filter.indexOf("_") + 1);
                         
                          List groups = versionModifierPrincipal.getGroups();
                          Iterator groupsIterator = groups.iterator();
                          while(groupsIterator.hasNext())
                          {
                            InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                            if(groupName.equalsIgnoreCase(group.getName()))
                              hasGroup = true;
                          }
                         
                          if(!hasGroup)
                            isValid = false;
                        }
                      }                   
                    }
                  }
                }
          else if(event.getEntityClass().equalsIgnoreCase(SiteNodeVersion.class.getName()))
          {
            SiteNodeVersionVO siteNodeVersion = null;
            SiteNodeVO siteNode = null;
           
            try
                  {
              siteNodeVersion = SiteNodeVersionController.getController().getSiteNodeVersionVOWithId(event.getEntityId(), db);
              if(siteNodeVersion != null && siteNodeVersion.getSiteNodeId() != null)
                siteNode = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeVersion.getSiteNodeId(), db);
                  }
                  catch(SystemException e)
                  {
                    isBroken = true;
                    throw e;
                  }

            if(siteNodeVersion == null || siteNode == null)
            {
                isBroken = true;
                isValid = false;
                SiteNodeVersionController.getController().delete(siteNodeVersion.getId(), db);
            }
            else
                  {
                    if(principal != null && filter != null && filter.equalsIgnoreCase("groupBased"))
                    {
                      String versionModifier = siteNodeVersion.getVersionModifier();
                      if(versionModifier != null)
                      {
                        InfoGluePrincipal versionModifierPrincipal = UserControllerProxy.getController(db).getUser(versionModifier);
                        if(versionModifierPrincipal != null)
                        {
                          boolean hasGroup = false;
                         
                          List groups = versionModifierPrincipal.getGroups();
                          Iterator groupsIterator = groups.iterator();
                          while(groupsIterator.hasNext())
                          {
                            InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                            if(principal.getGroups().contains(group))
                              hasGroup = true;
                          }
                         
                          if(!hasGroup)
                            isValid = false;
                        }
                      }
              }
                    else if(principal != null && filter != null && filter.indexOf("groupNameBased_") > -1)
                    {
                      String versionModifier = siteNodeVersion.getVersionModifier();
                      if(versionModifier != null)
                      {
                        InfoGluePrincipal versionModifierPrincipal = UserControllerProxy.getController(db).getUser(versionModifier);
                        if(versionModifierPrincipal != null)
                        {
                          boolean hasGroup = false;
                          String groupName = filter.substring(filter.indexOf("_") + 1);
                         
                          List groups = versionModifierPrincipal.getGroups();
                          Iterator groupsIterator = groups.iterator();
                          while(groupsIterator.hasNext())
                          {
                            InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
                            if(groupName.equalsIgnoreCase(group.getName()))
                              hasGroup = true;
                          }
                         
                          if(!hasGroup)
                            isValid = false;
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.