Class Permission.Builder
java.lang.Object
org.kuali.rice.kim.api.permission.Permission.Builder
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.common.active.Inactivatable,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Identifiable,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.core.api.mo.ModelBuilder,PermissionContract
- Enclosing class:
Permission
public static final class Permission.Builder
extends Object
implements PermissionContract, org.kuali.rice.core.api.mo.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 interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
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 interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
setActive
public void setActive(boolean active) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setVersionNumber
-
getObjectId
- Specified by:
getObjectIdin interfaceorg.kuali.rice.core.api.mo.common.GloballyUnique
-
setObjectId
-
getAttributes
Description copied from interface:PermissionContractAttributes for a Permission.- Specified by:
getAttributesin interfacePermissionContract- Returns:
- attributes
-
setAttributes
-
build
- Specified by:
buildin interfaceorg.kuali.rice.core.api.mo.ModelBuilder
-