Examples of InfoGlueRole


Examples of org.infoglue.cms.security.InfoGlueRole

  }

  public InfoGluePrincipal getInfoGluePrincipal()
  {
    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));
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

            List rolesList = RoleControllerProxy.getController().getAllRoles();
           
            Iterator rolesListIterator = rolesList.iterator();
            while(rolesListIterator.hasNext())
            {
              InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
              InfoGlueRoleBean bean = new InfoGlueRoleBean();
              bean.setName(role.getName());
              bean.setDisplayName(role.getDisplayName());
              bean.setDescription(role.getDescription());
              roles.add(bean)
            }
        }
        catch(Exception e)
        {
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

 
            List roles = new ArrayList();
            Iterator rolesListIterator = principal.getRoles().iterator();
              while(rolesListIterator.hasNext())
              {
                InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                roleBean.setName(role.getName());
                roleBean.setDisplayName(role.getDisplayName());
                roleBean.setDescription(role.getDescription());
                roles.add(roleBean)
              }
              bean.setRoles(roles);
            }
            else
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

              List roles = new ArrayList();
              Iterator rolesListIterator = principal.getRoles().iterator();
                while(rolesListIterator.hasNext())
                {
                  InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                  InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                  roleBean.setName(role.getName());
                  roleBean.setDisplayName(role.getDisplayName());
                  roleBean.setDescription(role.getDescription());
                  roles.add(roleBean)
                }
                bean.setRoles(roles);

              users.add(bean)
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

              List roles = new ArrayList();
              Iterator rolesListIterator = principal.getRoles().iterator();
                while(rolesListIterator.hasNext())
                {
                  InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                  InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                  roleBean.setName(role.getName());
                  roleBean.setDisplayName(role.getDisplayName());
                  roleBean.setDescription(role.getDescription());
                  roles.add(roleBean)
                }
                bean.setRoles(roles);

              users.add(bean)
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

              List roles = new ArrayList();
              Iterator rolesListIterator = principal.getRoles().iterator();
                while(rolesListIterator.hasNext())
                {
                  InfoGlueRole role = (InfoGlueRole)rolesListIterator.next();
                  InfoGlueRoleBean roleBean = new InfoGlueRoleBean();
                  roleBean.setName(role.getName());
                  roleBean.setDisplayName(role.getDisplayName());
                  roleBean.setDescription(role.getDescription());
                  roles.add(roleBean)
                }
                bean.setRoles(roles);

              users.add(bean)
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

      String prioValue = null;
      int latestPriority = 0;
      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

   * This method returns a certain role
   */
 
  public InfoGlueRole getRole(String roleName) throws ConstraintException, SystemException, Exception
  {
    InfoGlueRole infoGlueRole = null;
     
    infoGlueRole = getAuthorizationModule().getAuthorizedInfoGlueRole(roleName);
     
    return infoGlueRole;
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

   * This method creates a new role
   */
 
  public InfoGlueRole createRole(RoleVO roleVO) throws ConstraintException, SystemException, Exception
  {
    InfoGlueRole infoGlueRole = null;
     
    getAuthorizationModule().createInfoGlueRole(roleVO);
     
    return getRole(roleVO.getRoleName());
  }
View Full Code Here

Examples of org.infoglue.cms.security.InfoGlueRole

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