org.kuali.rice.kim.api.role
Class RoleResponsibility.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.role.RoleResponsibility.Builder
All Implemented Interfaces:
Serializable, Inactivatable, Versioned, ModelBuilder, ModelObjectBasic, ModelObjectComplete, RoleResponsibilityContract
Enclosing class:
RoleResponsibility

public static class RoleResponsibility.Builder
extends Object
implements RoleResponsibilityContract, ModelBuilder, ModelObjectComplete

See Also:
Serialized Form

Method Summary
 RoleResponsibility build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RoleResponsibility.Builder create()
           
static RoleResponsibility.Builder create(RoleResponsibilityContract rrContract)
           
static RoleResponsibility.Builder create(String roleId, String responsibilityId)
           
 boolean equals(Object obj)
          All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.
 String getResponsibilityId()
          Returns the String identifier for the Responsibility represented by this Role/Responsibility association.
 String getRoleId()
          Returns the String identifier for the Role represented by this Role/Responsibility association.
 String getRoleResponsibilityId()
          Provides the String identifier for a given RoleResponsibility
 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()
          The active indicator for an object.
 void setActive(boolean active)
           
 void setResponsibilityId(String responsibilityId)
           
 void setRoleId(String roleId)
           
 void setRoleResponsibilityId(String roleResponsibilityId)
           
 void setVersionNumber(Long versionNumber)
           
 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
 

Method Detail

create

public static RoleResponsibility.Builder create()

create

public static RoleResponsibility.Builder create(String roleId,
                                                String responsibilityId)

create

public static RoleResponsibility.Builder create(RoleResponsibilityContract rrContract)

build

public RoleResponsibility build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getRoleResponsibilityId

public String getRoleResponsibilityId()
Description copied from interface: RoleResponsibilityContract
Provides the String identifier for a given RoleResponsibility

Specified by:
getRoleResponsibilityId in interface RoleResponsibilityContract
Returns:
id of the Role/Responsibility contract

setRoleResponsibilityId

public void setRoleResponsibilityId(String roleResponsibilityId)

getRoleId

public String getRoleId()
Description copied from interface: RoleResponsibilityContract
Returns the String identifier for the Role represented by this Role/Responsibility association.

Specified by:
getRoleId in interface RoleResponsibilityContract
Returns:
Role Id

setRoleId

public void setRoleId(String roleId)

getResponsibilityId

public String getResponsibilityId()
Description copied from interface: RoleResponsibilityContract
Returns the String identifier for the Responsibility represented by this Role/Responsibility association.

Specified by:
getResponsibilityId in interface RoleResponsibilityContract
Returns:
Responsibility Id

setResponsibilityId

public void setResponsibilityId(String responsibilityId)

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

setActive

public void setActive(boolean active)

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

setVersionNumber

public void setVersionNumber(Long versionNumber)

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


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.