Package org.jboss.identity.idm.impl.api.model

Examples of org.jboss.identity.idm.impl.api.model.SimpleRoleType


      Set<IdentityObjectRelationship> rels = getRepository().resolveRelationships(getInvocationContext(), createIdentityObject(group), createIdentityObject(identity), ROLE);
      Set<RoleType> types = new HashSet<RoleType>();

      for (IdentityObjectRelationship rel : rels)
      {
         types.add(new SimpleRoleType(rel.getName()));
      }

      return types;

View Full Code Here


      {
         Collection<String> names = getRepository().getRelationshipNames(getInvocationContext(), createIdentityObject(identity), convertSearchControls(controls));

         for (String name : names)
         {
            types.add(new SimpleRoleType(name));
         }

         return types;

      }
View Full Code Here

      {
         Collection<String> names = getRepository().getRelationshipNames(getInvocationContext(), createIdentityObject(group), convertSearchControls(controls));

         for (String name : names)
         {
            types.add(new SimpleRoleType(name));
         }

         return types;

      }
View Full Code Here

      for (IdentityObjectRelationship relationship : relationships)
      {
         if (roleType.getName().equals(relationship.getName()))
         {
            roles.add(new SimpleRole(new SimpleRoleType(relationship.getName()), createUser(relationship.getToIdentityObject()), createGroup(relationship.getFromIdentityObject())));
         }
      }

      return roles;
View Full Code Here

   public Collection<Role> findRoles(String id, String roleTypeName) throws IdentityException
   {
      checkNotNullArgument(id, "Group id or User name");
      checkNotNullArgument(roleTypeName, "RoleType name");

      return findRoles(createIdentityTypeFromId(id), new SimpleRoleType(roleTypeName));
   }
View Full Code Here

   public Map<String, String> getProperties(String roleTypeNamethrows IdentityException
   {
      checkNotNullArgument(roleTypeName, "RoleType name");

      return getProperties(new SimpleRoleType(roleTypeName));
   }
View Full Code Here

   {
      checkNotNullArgument(roleTypeName, "RoleType name");
      checkNotNullArgument(name, "Property name");
      checkNotNullArgument(value, "Property value");

      setProperty(new SimpleRoleType(roleTypeName), name, value);
   }
View Full Code Here

   public void setProperties(String roleTypeName, Map<String, String> properties) throws IdentityException
   {
      checkNotNullArgument(roleTypeName, "RoleType name");

      setProperties(new SimpleRoleType(roleTypeName), properties);
   }
View Full Code Here

   public void removeProperty(String roleTypeName, String name) throws IdentityException
   {
      checkNotNullArgument(roleTypeName, "RoleType name");

      removeProperty(new SimpleRoleType(roleTypeName), name);
   }
View Full Code Here

      catch (OperationNotSupportedException e)
      {
         throw new IdentityException("Role management not supported");
      }

      return new SimpleRoleType(roleType);
   }
View Full Code Here

TOP

Related Classes of org.jboss.identity.idm.impl.api.model.SimpleRoleType

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.