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

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


   protected IdentityType createIdentityTypeFromId(String id)
   {
      if (GroupId.validateId(id))
      {
         GroupId groupId = new GroupId(id);

         return new SimpleGroup(groupId);
      }
      else
      {
View Full Code Here


      return new SimpleIdentityObject(group.getName(), group.getId(), iot);
   }

   protected IdentityObject createIdentityObjectForGroupId(String groupId)
   {
      GroupId id = new GroupId(groupId);

      IdentityObjectType iot = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(id.getType());

      return new SimpleIdentityObject(id.getName(), null, iot);
   }
View Full Code Here

   protected IdentityObject createIdentityObject(String id)
   {
      if (GroupId.validateId(id))
      {
         GroupId groupId = new GroupId(id);

         return createIdentityObjectForGroupId(id);
      }
      else
      {
View Full Code Here



   protected Group createGroupFromId(String id)
   {
      return new SimpleGroup(new GroupId(id));
   }
View Full Code Here

      checkNotNullArgument(groupName, "Group name");
      checkNotNullArgument(groupType, "Group type");
      checkObjectName(groupName);
      checkObjectName(groupType);

      return new GroupId(groupName, groupType).getId();
   }
View Full Code Here

      {
         throw new IdentityException("Provided group id is not valid: " + id + "; " +
            "Please use PersistenceManager.createGroupId() to obtain valid group id");
      }

      GroupId groupId = new GroupId(id);

      return findGroup(groupId.getName(), groupId.getType());

   }
View Full Code Here

   protected IdentityType createIdentityTypeFromId(String id)
   {
      if (GroupId.validateId(id))
      {
         GroupId groupId = new GroupId(id);

         return new SimpleGroup(groupId);
      }
      else
      {
View Full Code Here

      return new SimpleIdentityObject(group.getName(), group.getId(), iot);
   }

   protected IdentityObject createIdentityObjectForGroupId(String groupId)
   {
      GroupId id = new GroupId(groupId);

      IdentityObjectType iot = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(id.getType());

      return new SimpleIdentityObject(id.getName(), null, iot);
   }
View Full Code Here

   protected IdentityObject createIdentityObject(String id)
   {
      if (GroupId.validateId(id))
      {
         GroupId groupId = new GroupId(id);

         return createIdentityObjectForGroupId(id);
      }
      else
      {
View Full Code Here

      }
   }

   protected Group createGroupFromId(String id)
   {
      return new SimpleGroup(new GroupId(id));
   }
View Full Code Here

TOP

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

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.