Examples of InfoGlueRole


Examples of org.infoglue.cms.security.InfoGlueRole

   
      List roles = infoGluePrincipal.getRoles();
      Iterator rolesIterator = roles.iterator();
      while(rolesIterator.hasNext())
      {
        InfoGlueRole role = (InfoGlueRole)rolesIterator.next();
       
        Collection rolePropertiesList = RolePropertiesController.getController().getRolePropertiesList(role.getName(), languageId, db, true);
        Iterator rolePropertiesListIterator = rolePropertiesList.iterator();
        while(rolePropertiesListIterator.hasNext())
        {
          RoleProperties roleProperties = (RoleProperties)rolePropertiesListIterator.next();
         
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

   
      List roles = infoGluePrincipal.getRoles();
      Iterator rolesIterator = roles.iterator();
      while(rolesIterator.hasNext())
      {
        InfoGlueRole role = (InfoGlueRole)rolesIterator.next();
       
        Collection rolePropertiesList = RolePropertiesController.getController().getRolePropertiesList(role.getName(), languageId, db, true);
        Iterator rolePropertiesListIterator = rolePropertiesList.iterator();
        while(rolePropertiesListIterator.hasNext())
        {
          RoleProperties roleProperties = (RoleProperties)rolePropertiesListIterator.next();
         
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

  {
      boolean isValid = false;
      Iterator rolesIterator = infoGluePrincipal.getRoles().iterator();
      while(rolesIterator.hasNext())
      {
          InfoGlueRole infoglueRole = (InfoGlueRole)rolesIterator.next();
          if(infoglueRole.getName().equalsIgnoreCase(roleName))
          {
              isValid = true;
          }
      }
     
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

    return groups;
 

  public InfoGlueRole getRole(String roleName)
  {
    InfoGlueRole role = null;
   
    try
    {
      role = RoleControllerProxy.getController().getRole(roleName);
    }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

          List roles = ((InfoGluePrincipal)this.principal).getRoles();
          Iterator i = roles.iterator();
         
          while(i.hasNext())
          {
            InfoGlueRole currentRole = (InfoGlueRole)i.next();
            if(currentRole.getName().equals(role))
            {
              isUserInRole = true;
              break;
            }
          }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

          fail(e.getMessage());
      }

      try
      {
          RepositoryController.getController().delete(this.newRepositoryVO, new InfoGluePrincipal("test-user", "first", "last", "email", Collections.singletonList(new InfoGlueRole("cmsUser", "test description", null)), new ArrayList(), false, null));
    }
      catch(Exception e)
      {
          e.printStackTrace();
          fail(e.getMessage());
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

   * @param name the name of the role
   * @return a list containing only the desired role.
   */
  protected static List createRole(String name)
  {
    return Collections.singletonList(new InfoGlueRole(name, "test description", null));
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

                 
                  Iterator userIterator = users.iterator();
               
              while(userIterator.hasNext())
                {
                InfoGlueRole role = (InfoGlueRole)userIterator.next();
                    if(role.getName().equalsIgnoreCase(accessRightRoleVO.getRoleName()))
                    {
                      isValid = true;
                      break;
                    }
                }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

        {
          if(rolePropertiesVO.getRoleName() != null)
          {
            try
            {
              InfoGlueRole role = RoleControllerProxy.getController(db).getRole(rolePropertiesVO.getRoleName());
              if(role != null)
                roles.add(role);
            }
            catch (Exception e)
            {
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

      beginTransaction(db);

      // Verify that the role exists in the system.
      try
      {
          InfoGlueRole role = RoleControllerProxy.getController(db).getRole(roleName);
          if(role == null)
              throw new SystemException("The role named " + roleName + " does not exist in the system.");
      }
      catch(Exception e)
      {
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.