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()
Identifiable
getId
in interface Identifiable
public String getNamespaceCode()
PermissionContract
getNamespaceCode
in interface PermissionContract
public void setNamespaceCode(String namespaceCode)
public String getName()
PermissionContract
getName
in interface PermissionContract
public String getDescription()
PermissionContract
getDescription
in interface PermissionContract
public void setDescription(String description)
public Template.Builder getTemplate()
PermissionContract
getTemplate
in interface PermissionContract
public void setTemplate(Template.Builder template)
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public void setActive(boolean active)
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
public String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setObjectId(String objectId)
public Map<String,String> getAttributes()
PermissionContract
getAttributes
in interface PermissionContract
public void setAttributes(Map<String,String> attributes)
public Permission build()
ModelBuilder
build
in interface ModelBuilder
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.