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.
-
-
Field Summary
Fields Modifier and Type Field Description private static String__SEPARATORThe separator between the id and the group directory id for the string representation of a group identityprivate String_directoryIdThe id of the group directory the group belongs toprivate String_idThe id of the group
-
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()
-
-
-
Field Detail
-
__SEPARATOR
private static final String __SEPARATOR
The separator between the id and the group directory id for the string representation of a group identity- See Also:
- Constant Field Values
-
_directoryId
private String _directoryId
The id of the group directory the group belongs to
-
-
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
-
-