Class Permission.Builder
java.lang.Object
org.kuali.rice.kim.api.permission.Permission.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,GloballyUnique,Identifiable,Versioned,ModelBuilder,PermissionContract
- Enclosing class:
- Permission
public static final class Permission.Builder
extends Object
implements PermissionContract, ModelBuilder, Serializable
This builder constructs a Permission enforcing the constraints of the
PermissionContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static Permission.BuilderCreates a Permission with the required fields.static Permission.Buildercreate(PermissionContract contract) Creates a Permission from an existingPermissionContract.Attributes for a Permission.The description of the Permission.getId()getName()The name of the Permission.The namespace code that this Permission belongs too.The Template referenced by the Permission.booleanisActive()voidsetActive(boolean active) voidsetAttributes(Map<String, String> attributes) voidsetDescription(String description) voidvoidvoidsetNamespaceCode(String namespaceCode) voidsetObjectId(String objectId) voidsetTemplate(Template.Builder template) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
Creates a Permission with the required fields. -
create
Creates a Permission from an existingPermissionContract. -
getId
- Specified by:
getIdin interfaceIdentifiable
-
setId
-
getNamespaceCode
Description copied from interface:PermissionContractThe namespace code that this Permission belongs too.- Specified by:
getNamespaceCodein interfacePermissionContract- Returns:
- namespaceCode
-
setNamespaceCode
-
getName
Description copied from interface:PermissionContractThe name of the Permission.- Specified by:
getNamein interfacePermissionContract- Returns:
- name
-
setName
-
getDescription
Description copied from interface:PermissionContractThe description of the Permission.- Specified by:
getDescriptionin interfacePermissionContract- Returns:
- description
-
setDescription
-
getTemplate
Description copied from interface:PermissionContractThe Template referenced by the Permission.- Specified by:
getTemplatein interfacePermissionContract- Returns:
- templateId
-
setTemplate
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
setActive
public void setActive(boolean active) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setVersionNumber
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
setObjectId
-
getAttributes
Description copied from interface:PermissionContractAttributes for a Permission.- Specified by:
getAttributesin interfacePermissionContract- Returns:
- attributes
-
setAttributes
-
build
- Specified by:
buildin interfaceModelBuilder
-