public static final class Permission.Builder extends Object implements PermissionContract, ModelBuilder, Serializable
PermissionContract.| Modifier and Type | Method and Description |
|---|---|
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) |
public static Permission.Builder create(String namespaceCode, String name)
public static Permission.Builder create(PermissionContract contract)
PermissionContract.public String getId()
IdentifiablegetId in interface Identifiablepublic String getNamespaceCode()
PermissionContractgetNamespaceCode in interface PermissionContractpublic void setNamespaceCode(String namespaceCode)
public String getName()
PermissionContractgetName in interface PermissionContractpublic String getDescription()
PermissionContractgetDescription in interface PermissionContractpublic void setDescription(String description)
public Template.Builder getTemplate()
PermissionContractgetTemplate in interface PermissionContractpublic void setTemplate(Template.Builder template)
public boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setActive(boolean active)
public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniquepublic void setObjectId(String objectId)
public Map<String,String> getAttributes()
PermissionContractgetAttributes in interface PermissionContractpublic void setAttributes(Map<String,String> attributes)
public Permission build()
ModelBuilderbuild in interface ModelBuilderCopyright © 2005–2014 The Kuali Foundation. All rights reserved.