com.ibm.itim.dataservices.model.domain
Class Group

java.lang.Object
  extended by com.ibm.itim.dataservices.model.DirectoryEntry
      extended by com.ibm.itim.dataservices.model.DirectoryObject
          extended by com.ibm.itim.dataservices.model.domain.Group
All Implemented Interfaces:
ProtectedObject, com.ibm.itim.util.Sortable, com.ibm.itim.util.xml.objectstream.Importable, java.io.Serializable

public class Group
extends DirectoryObject
implements com.ibm.itim.util.xml.objectstream.Importable

This is the value object for the service group.

Since:
Tivoli Identity Manager 5.1
See Also:
Serialized Form

Field Summary
static java.lang.String GROUP_ATTR_DESC
          Constant for the group attribute description.
static java.lang.String GROUP_ATTR_ID
          Constant for the group attribute id.
static java.lang.String GROUP_ATTR_NAME
          Constant for the group attribute name.
 
Fields inherited from class com.ibm.itim.dataservices.model.DirectoryObject
ATTR_ACCESS_RIGHT, ATTR_LIFECYCLE_ENABLE, ATTR_URI, DESCRIPTION, NAME
 
Fields inherited from interface com.ibm.itim.util.Sortable
ATTR_NAME
 
Constructor Summary
Group()
           
Group(Group group)
          Copy Constructor Reference copy is used for Java object except for String and other primary types
Group(java.lang.String profileName, AttributeValues attributes)
          Constructs object with profile and attribute information.
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the group.
 java.lang.String getId()
          Returns the unique identification of the group.
 java.lang.String getName()
          Returns the name of the group.
 DistinguishedName getService()
          Returns the distinguished name of the service.
 void setDescription(java.lang.String desc)
          Sets the group description The value is stored on the attribute that ergroupdescription is mapped to.
 void setId(java.lang.String id)
          Set the unique identification of the group.
 void setName(java.lang.String name)
          Set the name of the group.
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryObject
addAttribute, addAttributeValues, getAccessRights, getAttribute, getAttributes, getAuthorizationOwners, getMapAttributeNames, getMappedAttributes, getNameAttribute, getOldMappedAttributes, getProfileName, getRawAttributes, getSortValue, getTenantDN, isLifecycleDefined, removeAttribute, removeAttribute, setAccessRights, setAttribute, setAttributes, setAuthorizationOwners, setProfileName, setTenantDN, toString
 
Methods inherited from class com.ibm.itim.dataservices.model.DirectoryEntry
clearChange, clearChanges, getChanges, getDistinguishedName, getLastModified, getObjectClasses, getOldAttributes, setDistinguishedName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GROUP_ATTR_ID

public static final java.lang.String GROUP_ATTR_ID
Constant for the group attribute id.

See Also:
Constant Field Values

GROUP_ATTR_NAME

public static final java.lang.String GROUP_ATTR_NAME
Constant for the group attribute name.

See Also:
Constant Field Values

GROUP_ATTR_DESC

public static final java.lang.String GROUP_ATTR_DESC
Constant for the group attribute description.

See Also:
Constant Field Values
Constructor Detail

Group

public Group(java.lang.String profileName,
             AttributeValues attributes)
Constructs object with profile and attribute information.

Warning: the purpose of this constructor is to provide clients with the ability to create value objects for creation in the data store. Do not use this constructor to create value objects that represent existing entities. See the GroupSearch object for achieving that.

Parameters:
profileName - name of the profile for the group. Use ObjectProfileSearch.getProfilesInCategory to get a list of profile names for the group category in the system. Profile name cannot be NULL or empty.

For example, use "PosAixGroupProfile" as profileName to construct a Posix AIX group object.

attributes - list of AttributeValues that hold group information. It cannot be NULL or empty.
See Also:
ObjectProfileSearch.getProfilesInCategory, ObjectProfileCategoryConstant

Group

public Group(Group group)
Copy Constructor Reference copy is used for Java object except for String and other primary types


Group

public Group()
Method Detail

getId

public java.lang.String getId()
Returns the unique identification of the group. The value is stored on the attribute that ergroupid is mapped to.


setId

public void setId(java.lang.String id)
Set the unique identification of the group. The value is stored on the attribute that ergroupid is mapped to.

Parameters:
id - A value that is uniquely identified the group.

getName

public java.lang.String getName()
Returns the name of the group. The value is stored on the attribute that ergroupname is mapped to.

Overrides:
getName in class DirectoryObject
Returns:
String representing logical name of the object or null.

setName

public void setName(java.lang.String name)
Set the name of the group. The value is stored on the attribute that ergroupname is mapped to.

Parameters:
name - the name of the group.

getDescription

public java.lang.String getDescription()
Returns the description of the group. The value is stored on the attribute that ergroupdescription is mapped to.


setDescription

public void setDescription(java.lang.String desc)
Sets the group description The value is stored on the attribute that ergroupdescription is mapped to.

Parameters:
desc - the group description

getService

public DistinguishedName getService()
Returns the distinguished name of the service.



IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.