public SimpleGroup(GroupKey groupKey) { this.name = groupKey.getName(); this.groupType = groupKey.getType(); this.id = groupKey.getKey(); }
findGroup(q.groupKey.getName(), q.groupKey.getType());
public Group findGroupByKey(String id) throws IdentityException { checkNotNullArgument(id, "Group id"); if (!GroupKey.validateKey(id)) { throw new IdentityException("Provided group id is not valid: " + id + "; " + "Please use PersistenceManager.createGroupKey() to obtain valid group id"); } GroupKey groupKey = new GroupKey(id); return findGroup(groupKey.getName(), groupKey.getType()); }
protected IdentityObject createIdentityObjectForGroupId(String groupId) { GroupKey key = new GroupKey(groupId); IdentityObjectType iot = getSessionContext().getIdentityObjectTypeMapper().getIdentityObjectType(key.getType()); return new SimpleIdentityObject(key.getName(), null, iot); }