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
__SEPARATOR
The separator between the id and the group directory id for the string representation of a group identityprivate String
_directoryId
The id of the group directory the group belongs toprivate String
_id
The 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 boolean
equals(Object obj)
String
getDirectoryId()
GetGet the group directory the group belongs toString
getId()
Get the if of the groupstatic String
groupIdentityToString(GroupIdentity groupIdentity)
Gets a string representation of aGroupIdentity
int
hashCode()
static GroupIdentity
stringToGroupIdentity(String string)
Returns theGroupIdentity
from its string representationString
toString()
-
-
-
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 theGroupIdentity
from 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
-
-