|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kim.api.permission.Permission.Builder
public static final class Permission.Builder
This builder constructs a Permission enforcing the constraints of the PermissionContract.
| Method Summary | |
|---|---|
Permission |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static Permission.Builder |
create(PermissionContract contract)
Creates a Permission from an existing PermissionContract. |
static Permission.Builder |
create(String namespaceCode,
String name)
Creates a Permission with the required fields. |
Map<String,String> |
getAttributes()
Attributes for a Permission. |
String |
getDescription()
The description of the Permission. |
String |
getId()
The unique identifier for an object. |
String |
getName()
The name of the Permission. |
String |
getNamespaceCode()
The namespace code that this Permission belongs too. |
String |
getObjectId()
Return the globally unique object id of this object. |
Template.Builder |
getTemplate()
The Template referenced by the Permission. |
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
void |
setActive(boolean active)
|
void |
setAttributes(Map<String,String> attributes)
|
void |
setDescription(String description)
|
void |
setId(String id)
|
void |
setName(String name)
|
void |
setNamespaceCode(String namespaceCode)
|
void |
setObjectId(String objectId)
|
void |
setTemplate(Template.Builder template)
|
void |
setVersionNumber(Long versionNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Permission.Builder create(String namespaceCode,
String name)
public static Permission.Builder create(PermissionContract contract)
PermissionContract.
public String getId()
Identifiable
getId in interface Identifiablepublic void setId(String id)
public String getNamespaceCode()
PermissionContract
getNamespaceCode in interface PermissionContractpublic void setNamespaceCode(String namespaceCode)
public String getName()
PermissionContract
getName in interface PermissionContractpublic void setName(String name)
public String getDescription()
PermissionContract
getDescription in interface PermissionContractpublic void setDescription(String description)
public Template.Builder getTemplate()
PermissionContract
getTemplate in interface PermissionContractpublic void setTemplate(Template.Builder template)
public boolean isActive()
Inactivatable
isActive in interface Inactivatablepublic void setActive(boolean active)
public Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUnique
getObjectId in interface GloballyUniquepublic void setObjectId(String objectId)
public Map<String,String> getAttributes()
PermissionContract
getAttributes in interface PermissionContractpublic void setAttributes(Map<String,String> attributes)
public Permission build()
ModelBuilder
build in interface ModelBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||