Package org.ametys.core.group
Class GroupIdentity
- java.lang.Object
-
- org.ametys.core.group.GroupIdentity
-
public class GroupIdentity extends Object
Class containing a group identity, i.e. the id of the group and the id of its group directory.
-
-
Constructor Summary
Constructors Constructor Description GroupIdentity(String id, String directoryId)Constructs a group identity
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDirectoryId()GetGet the group directory the group belongs toStringgetId()Get the if of the groupstatic StringgroupIdentityToString(GroupIdentity groupIdentity)Gets a string representation of aGroupIdentityinthashCode()static GroupIdentitystringToGroupIdentity(String string)Returns theGroupIdentityfrom its string representationStringtoString()
-
-
-
Constructor Detail
-
GroupIdentity
public GroupIdentity(String id, String directoryId)
Constructs a group identity- Parameters:
id- The id of the groupdirectoryId- The id of the group directory the group belongs to
-
-
Method Detail
-
groupIdentityToString
public static String groupIdentityToString(GroupIdentity groupIdentity)
Gets a string representation of aGroupIdentity- Parameters:
groupIdentity- The group identity- Returns:
- The string representation of the group identity.
-
stringToGroupIdentity
public static GroupIdentity stringToGroupIdentity(String string)
Returns theGroupIdentityfrom its string representation- Parameters:
string- The string representation of the group identity- Returns:
- The group identity from its string representation
-
getDirectoryId
public String getDirectoryId()
GetGet the group directory the group belongs to- Returns:
- The id of the group directory the group belongs to
-
-