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

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


   *
   * @param groupId
   * @return
   */
  private String convertIdmGroupId2jbpmGroupId(String groupId) {
  GroupId theGroupId = new GroupId(groupId);
  if (this.DEFAUL_JBPM_GROUP_TYPE.equals(theGroupId.getType()) || theGroupId.getType() == null) {
    return theGroupId.getName();
  }
  return theGroupId.getType() + "." + theGroupId.getName();
  }
View Full Code Here


    if (st.countTokens() > 1) {
      type = st.nextToken();
    }
    String name = st.nextToken();
   
    return new GroupId(name, type).getId();
  }
View Full Code Here

   }

   public RoleQuery setGroup(String id)
   {
      checkNotNullArgument(id, "Group id");
      this.group = new SimpleGroup(new GroupId(id));
      return this;
   }
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

      }
   }

   protected Group createGroupFromId(String id)
   {
      return new SimpleGroup(new GroupId(id));
   }
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

   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.