Package com.sas.lsaf.security.group
Class GroupDescriptor
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.security.group.GroupDescriptor
- All Implemented Interfaces:
Identifiable,Principal,Serializable
- Direct Known Subclasses:
Group
A lightweight representation of a group.
- Since:
- 1.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGroupDescriptor(String id, ObjectIdentity context, String name, String description) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the context in which the group was defined.Gets the description of the group.getName()Gets the name of the group.Returns the principal identifier of a user or group.Returns the principal name of a user or group.inthashCode()voidsetDescription(String description) Sets the description of the group.voidSets the name of the group.toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.lsaf.core.Identifiable
getId, getTypeId
-
Constructor Details
-
GroupDescriptor
It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the group descriptors returned by the API.- Parameters:
id- the unique identifier of the group.context- the context in which the group was defined.name- the name of the group.description- the description of the group.
-
-
Method Details
-
getContext
Gets the context in which the group was defined.- Returns:
- The context in which the group was defined.
-
getName
Gets the name of the group.- Returns:
- The name of the group.
-
setName
Sets the name of the group.- Parameters:
name- the name of the group.
-
getDescription
Gets the description of the group.- Returns:
- The description of the group.
-
setDescription
Sets the description of the group.- Parameters:
description- the description of the group.
-
getPrincipalId
Description copied from interface:PrincipalReturns the principal identifier of a user or group. This uniquely identifies the principal within the system.- Specified by:
getPrincipalIdin interfacePrincipal- Returns:
- The principal identifier of a user or group.
-
getPrincipalName
Description copied from interface:PrincipalReturns the principal name of a user or group. This may not uniquely identify the principal and should only be used for display purposes.- Specified by:
getPrincipalNamein interfacePrincipal- Returns:
- The principal name of a user or group.
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacePrincipal- Overrides:
hashCodein classAbstractIdentifiable
-
equals
- Specified by:
equalsin interfacePrincipal- Overrides:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-