org.kuali.rice.kim.api.group
Class Group

java.lang.Object
  extended by org.kuali.rice.kim.api.group.Group
All Implemented Interfaces:
Serializable, Inactivatable, GloballyUnique, Identifiable, Versioned, ModelObjectBasic, ModelObjectComplete, GroupContract

public final class Group
extends Object
implements GroupContract, ModelObjectComplete

See Also:
Serialized Form

Nested Class Summary
static class Group.Builder
          This builder constructs an Group enforcing the constraints of the GroupContract.
(package private) static class Group.Constants
          Defines some internal constants used on this class.
(package private) static class Group.Elements
          A private class which exposes constants which define the XML element names to use when this object is marshalled to XML.
 
Field Summary
private  Collection<Element> _futureElements
           
private  boolean active
           
private  Attributes attributes
           
private  String description
           
private  String id
           
private  String kimTypeId
           
private  String name
           
private  String namespaceCode
           
private  String objectId
           
private  Long versionNumber
           
 
Constructor Summary
private Group()
           
  Group(Group.Builder builder)
           
 
Method Summary
 boolean equals(Object obj)
          All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.
 Attributes getAttributes()
          This is a set of Attributes for a Group.
 String getDescription()
          This a description for the Group.
 String getId()
          The unique identifier for an object.
 String getKimTypeId()
          This a Kim Type Id for the Group.
 String getName()
          This is the name for the Group.
 String getNamespaceCode()
          This is the namespace code for the Group.
 String getObjectId()
          Return the globally unique object id of this object.
 Long getVersionNumber()
          Returns the version number for this object.
 int hashCode()
          All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.
 boolean isActive()
          Returns a boolean value determining if the Object is Active or not.
 String toString()
          This will return a proper string representation of the Model Object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private final String id

namespaceCode

private final String namespaceCode

name

private final String name

description

private final String description

kimTypeId

private final String kimTypeId

attributes

private final Attributes attributes

active

private final boolean active

versionNumber

private final Long versionNumber

objectId

private final String objectId

_futureElements

private final Collection<Element> _futureElements
Constructor Detail

Group

private Group()

Group

public Group(Group.Builder builder)
Method Detail

hashCode

public int hashCode()
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.

Specified by:
hashCode in interface ModelObjectComplete
Overrides:
hashCode in class Object
Returns:
the hashCode value

equals

public boolean equals(Object obj)
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.

Specified by:
equals in interface ModelObjectComplete
Overrides:
equals in class Object
Parameters:
obj - to object to compare for equality
Returns:
if equal

toString

public String toString()
Description copied from interface: ModelObjectBasic
This will return a proper string representation of the Model Object. All of the fields comprising the "public" api should be represented in the return value.

Specified by:
toString in interface ModelObjectBasic
Overrides:
toString in class Object
Returns:
the string representation

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

getNamespaceCode

public String getNamespaceCode()
Description copied from interface: GroupContract
This is the namespace code for the Group.

This is a namespace code assigned to a Group. Together with name, it makes up another unique identifier for Group

Specified by:
getNamespaceCode in interface GroupContract
Returns:
namespaceCode

getName

public String getName()
Description copied from interface: GroupContract
This is the name for the Group.

This is a name assigned to a Group. Together with NamespaceCode, it makes up another unique identifier for Group

Specified by:
getName in interface GroupContract
Returns:
name

getDescription

public String getDescription()
Description copied from interface: GroupContract
This a description for the Group.

This is a description assigned to a Group.

Specified by:
getDescription in interface GroupContract
Returns:
description

getKimTypeId

public String getKimTypeId()
Description copied from interface: GroupContract
This a Kim Type Id for the Group.

This links a Kim Type to the Group to allow custom types of Groups.

Specified by:
getKimTypeId in interface GroupContract
Returns:
description

getAttributes

public Attributes getAttributes()
Description copied from interface: GroupContract
This is a set of Attributes for a Group.

This is a set of attributes which are key-label pairs that are defined by the Group's Kim Type.

Specified by:
getAttributes in interface GroupContract
Returns:
attributes

isActive

public boolean isActive()
Description copied from interface: Inactivatable
Returns a boolean value determining if the Object is Active or not.

Specified by:
isActive in interface Inactivatable
Returns:
the active indicator

getVersionNumber

public Long getVersionNumber()
Description copied from interface: Versioned
Returns the version number for this object. In general, this value should only be null if the object has not yet been stored to a persistent data store. This version number is generally used for the purposes of optimistic locking.

Specified by:
getVersionNumber in interface Versioned
Returns:
the version number, or null if one has not been assigned yet

getObjectId

public String getObjectId()
Description copied from interface: GloballyUnique
Return the globally unique object id of this object. In general, this value should only be null if the object has not yet been stored to a persistent data store.

Specified by:
getObjectId in interface GloballyUnique
Returns:
the objectId of this object, or null if it has not been set yet


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.