|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.controller.security.objects.DIFGroupImpl
public class DIFGroupImpl
Default implementation for DIF group.
Constructor Summary | |
---|---|
DIFGroupImpl()
Default constructor. |
|
DIFGroupImpl(IDIFGroup group)
Creates a new group based on a given one |
Method Summary | |
---|---|
protected Object |
clone()
|
IDIFGroup |
cloneGroup()
Returns a new clone of the current group |
boolean |
equals(Object obj)
|
String |
getDescription()
Returns the group description. |
String |
getID()
Returns the group id. |
String |
getName()
Returns the group name. |
IDIFGroup |
getParentGroup()
Returns the parent group. |
String |
getParentGroupID()
Returns the parent group ID. |
Set<String> |
getUserIDs()
Retrieves the list of user IDs associated with this group |
Map<String,IDIFUser> |
getUsers()
Retrieves the list of users associated with this group |
int |
hashCode()
|
boolean |
isDefault()
A default group is a group that is created by the default configuration of the application. |
void |
setDefault(boolean isDefault)
Sets the group as a 'default group'. |
void |
setDescription(String newDescription)
Sets a new description for the group. |
void |
setID(String newGroupId)
Sets a new id for the group. |
void |
setName(String newName)
Sets a new name for the group. |
void |
setParentGroupID(String newParent)
Sets a new parent for the group. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DIFGroupImpl()
public DIFGroupImpl(IDIFGroup group)
group
- the group to copy data fromMethod Detail |
---|
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Object.clone()
public IDIFGroup cloneGroup()
IDIFGroup
cloneGroup
in interface IDIFGroup
IDIFGroup.cloneGroup()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String getDescription()
IDIFGroup
getDescription
in interface IDIFGroup
IDIFGroup.getDescription()
public String getID()
IDIFGroup
getID
in interface IDIFGroup
IDIFGroup.getID()
public String getName()
IDIFGroup
getName
in interface IDIFGroup
IDIFGroup.getName()
public IDIFGroup getParentGroup() throws IdentityManagerException
IDIFGroup
getParentGroup
in interface IDIFGroup
IdentityManagerException
- if the parent group can't be found on the identity managerIDIFGroup.getParentGroup()
public String getParentGroupID()
IDIFGroup
getParentGroupID
in interface IDIFGroup
IDIFGroup.getParentGroupID()
public Set<String> getUserIDs() throws IdentityManagerException
IDIFGroup
getUserIDs
in interface IDIFGroup
IdentityManagerException
- if the users can't be found on the identity managerIDIFGroup.getUserIDs()
public Map<String,IDIFUser> getUsers() throws IdentityManagerException
IDIFGroup
getUsers
in interface IDIFGroup
IdentityManagerException
- if the users can't be found on the identity managerIDIFGroup.getUsers()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean isDefault()
IDIFGroup
isDefault
in interface IDIFGroup
IDIFGroup.isDefault()
public void setDefault(boolean isDefault)
IDIFGroup
setDefault
in interface IDIFGroup
isDefault
- T if the group must be set as a default group, F otherwiseIDIFGroup.setDefault(boolean)
public void setDescription(String newDescription)
IDIFGroup
setDescription
in interface IDIFGroup
newDescription
- the new group descriptionIDIFGroup.setDescription(String)
public void setID(String newGroupId)
IDIFGroup
setID
in interface IDIFGroup
newGroupId
- the new group idIDIFGroup.setID(String)
public void setName(String newName)
IDIFGroup
setName
in interface IDIFGroup
newName
- the new group nameIDIFGroup.setName(String)
public void setParentGroupID(String newParent)
IDIFGroup
setParentGroupID
in interface IDIFGroup
newParent
- the new parent groupIDIFGroup.setParentGroupID(String)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |