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 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()
-
-
-
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
-
-