public static final class Role.Builder extends Object implements RoleContract, ModelBuilder, ModelObjectComplete
Modifier and Type | Method and Description |
---|---|
Role |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static Role.Builder |
create() |
static Role.Builder |
create(RoleContract roleContract) |
static Role.Builder |
create(String id,
String name,
String namespaceCode,
String description,
String kimTypeId) |
boolean |
equals(Object obj)
All "Complete" model object's should adhere to the
ModelObjectComplete.equals(Object) contract. |
String |
getDescription()
A full textual description of this role.
|
String |
getId()
The unique identifier for an object.
|
String |
getKimTypeId()
Provides the associated KimType identifier for this role.
|
String |
getName()
The human readable name for this role.
|
String |
getNamespaceCode()
A namespace for this role.
|
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()
The active indicator for an object.
|
void |
setActive(boolean active) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setKimTypeId(String kimTypeId) |
void |
setName(String name) |
void |
setNamespaceCode(String namespaceCode) |
void |
setObjectId(String objectId) |
void |
setVersionNumber(Long versionNumber) |
String |
toString()
This will return a proper string representation of the Model Object.
|
public static Role.Builder create()
public static Role.Builder create(String id, String name, String namespaceCode, String description, String kimTypeId)
public static Role.Builder create(RoleContract roleContract)
public Role build()
ModelBuilder
build
in interface ModelBuilder
public String getId()
Identifiable
getId
in interface Identifiable
public void setNamespaceCode(String namespaceCode)
public String getNamespaceCode()
RoleContract
getNamespaceCode
in interface RoleContract
public String getName()
RoleContract
getName
in interface RoleContract
public void setDescription(String description)
public String getDescription()
RoleContract
getDescription
in interface RoleContract
public void setKimTypeId(String kimTypeId)
public String getKimTypeId()
RoleContract
getKimTypeId
in interface RoleContract
public void setActive(boolean active)
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setVersionNumber(Long versionNumber)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setObjectId(String objectId)
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public int hashCode()
ModelObjectComplete
ModelObjectComplete.hashCode()
contract.hashCode
in interface ModelObjectComplete
hashCode
in class Object
public boolean equals(Object obj)
ModelObjectComplete
ModelObjectComplete.equals(Object)
contract.equals
in interface ModelObjectComplete
equals
in class Object
obj
- to object to compare for equalitypublic String toString()
ModelObjectBasic
toString
in interface ModelObjectBasic
toString
in class Object
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.