Package org.infoglue.cms.security

Examples of org.infoglue.cms.security.InfoGlueGroup


            limitOnGroups = true;
 
            Iterator groupsIterator = groups.iterator();
          while(groupsIterator.hasNext())
          {
              InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
            if(enableDebug)
              debugInfo += "\n    group:" + group.getName();

            if(logger.isInfoEnabled())
                logger.info("" + group.getName() + " = " + accessRightGroup.getGroupName());

            if(!group.getIsActive())
            {
              logger.info("skipping checking for match on group:" + group.getName() + " as it was inactive.");
              continue;
            }

              if(accessRightGroup.getGroupName().equals(group.getName()))
              {
                  if(logger.isInfoEnabled())
                  logger.info("Principal " + infoGluePrincipal.getName() + " has group " + accessRightGroup.getGroupName());

              if(enableDebug)
View Full Code Here


          limitOnGroups = true;

          Iterator groupsIterator = groups.iterator();
        while(groupsIterator.hasNext())
        {
            InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
            if(logger.isInfoEnabled())
              logger.info("" + group.getName() + " = " + accessRightGroup.getGroupName());

          if(!group.getIsActive())
          {
            logger.info("skipping checking for match on group:" + group.getName() + " as it was inactive.");
            continue;
          }

            if(accessRightGroup.getGroupName().equals(group.getName()))
            {
                if(logger.isInfoEnabled())
                logger.info("Principal " + infoGluePrincipal.getName() + " has group " + accessRightGroup.getGroupName());
         
                principalHasGroup = true;
View Full Code Here

            limitOnGroups = true;
 
            Iterator groupsIterator = groups.iterator();
          while(groupsIterator.hasNext())
          {
              InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();

              if(!group.getIsActive())
            {
              logger.info("skipping checking for match on group:" + group.getName() + " as it was inactive.");
              continue;
            }

              if(accessRightGroup.getGroupName().equals(group.getName()))
              {
                  principalHasGroup = true;
                  break outer;
              }
          }
View Full Code Here

          limitOnGroups = true;

          Iterator groupsIterator = groups.iterator();
        while(groupsIterator.hasNext())
        {
            InfoGlueGroup group = (InfoGlueGroup)groupsIterator.next();
            if(logger.isInfoEnabled())
              logger.info("" + group.getName() + " = " + accessRightGroup.getGroupName());

          if(!group.getIsActive())
          {
            logger.info("skipping checking for match on group:" + group.getName() + " as it was inactive.");
            continue;
          }

            if(accessRightGroup.getGroupName().equals(group.getName()))
            {
                if(logger.isInfoEnabled())
                logger.info("Principal " + infoGluePrincipal.getName() + " has group " + accessRightGroup.getGroupName());
         
                principalHasGroup = true;
View Full Code Here

    String yesDestination   = URLEncoder.encode("DeleteGroup.action?groupName=" + URLEncoder.encode(this.groupName, URIEncoding), URIEncoding);
    String noDestination    = URLEncoder.encode("ViewListGroup.action?title=Groups", URIEncoding);
    String message        = URLEncoder.encode("Do you really want to delete the group " + URLEncoder.encode(this.groupName, URIEncoding), URIEncoding);
    String encodedGroupName = URLEncoder.encode(URLEncoder.encode(this.groupName, URIEncoding), URIEncoding);

    InfoGlueGroup group = GroupControllerProxy.getController().getGroup(this.groupName);
    if(group.getAutorizationModule().getSupportDelete())
      buttons.add(new ImageButton("Confirm.action?header=tool.managementtool.deleteGroup.header&yesDestination=" + yesDestination + "&noDestination=" + noDestination + "&message=tool.managementtool.deleteGroup.text&extraParameters=" + encodedGroupName, getLocalizedString(getSession().getLocale(), "images.managementtool.buttons.deleteGroup"), "tool.managementtool.deleteGroup.header"));
   
    List contentTypeDefinitionVOList = GroupPropertiesController.getController().getContentTypeDefinitionVOList(this.groupName);
    if(contentTypeDefinitionVOList.size() > 0)
      buttons.add(new ImageButton("ViewGroupProperties.action?groupName=" + encodedGroupName, getLocalizedString(getSession().getLocale(), "images.managementtool.buttons.viewGroupProperties"), "View Group Properties"));
View Full Code Here

  private String[] getGroupNames(final List groups)
  {
    final String[] names = new String[groups.size()];
    for(int i=0; i<groups.size(); ++i)
    {
      final InfoGlueGroup group = (InfoGlueGroup) groups.get(i);
      names[i] = group.getName();
      logger.debug("Adding group [" + group.getName() + "]");
    }
    return names;
  }
View Full Code Here

      {
        setParameter(OWNER_PARAMETER, OwnerFactory.create(role).getIdentifier());
      }
      else
      {
        final InfoGlueGroup group = GroupControllerProxy.getController(getDatabase()).getGroup(groupName);
        setParameter(OWNER_PARAMETER, OwnerFactory.create(role, group).getIdentifier());
      }
    }
    catch(Exception e)
    {
View Full Code Here

                 
                  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

       
        if(this.searchGroups)
        {
          try
          {
            InfoGlueGroup infoGlueGroup = GroupControllerProxy.getController().getGroup(this.sSearch);
            List groupPrincipals  = infoGlueGroup.getAutorizationModule().getGroupUsers(this.sSearch);
 
            this.iTotalRecords = groupPrincipals.size();
            this.iTotalDisplayRecords = groupPrincipals.size();
   
            if(groupPrincipals.size() > end)
View Full Code Here

        logger.info("decodedGroupName existed:" + decodedGroupName);
        groupName = decodedGroupName;
      }
    }

    InfoGlueGroup group = GroupControllerProxy.getController().getGroup(groupName);
    if(group.getAutorizationModule().getSupportDelete())
    {
      //boolean hasAccessToDeleteGroup = hasAccessTo(principal, "Group.Delete", "" + primaryKey);
      //if(hasAccessToDeleteGroup)
      //{
        buttons.add(new ToolbarButton("",
View Full Code Here

TOP

Related Classes of org.infoglue.cms.security.InfoGlueGroup

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.