Package org.kuali.rice.kew.api.doctype
Class DocumentType.Builder
java.lang.Object
org.kuali.rice.kew.api.doctype.DocumentType.Builder
- All Implemented Interfaces:
Serializable,GloballyUnique,Identifiable,Versioned,ModelBuilder,DocumentTypeContract
- Enclosing class:
- DocumentType
public static final class DocumentType.Builder
extends Object
implements Serializable, ModelBuilder, DocumentTypeContract
A builder which can be used to construct
DocumentType instances. Enforces the
constraints of the DocumentTypeContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static DocumentType.Builderstatic DocumentType.Buildercreate(DocumentTypeContract contract) getId()getLabel()getName()booleanisActive()booleanvoidsetActive(boolean active) voidsetApplicationId(String applicationId) voidsetAuthorizer(String authorizer) voidsetBlanketApproveGroupId(String blanketApproveGroupId) voidsetCurrent(boolean current) voidsetDescription(String description) voidsetDocSearchHelpUrl(String docSearchHelpUrl) voidsetDocumentTypeAttributes(List<DocumentTypeAttribute.Builder> documentTypeAttributes) voidsetDocumentTypeVersion(Integer documentTypeVersion) voidsetHelpDefinitionUrl(String helpDefinitionUrl) voidvoidvoidvoidsetObjectId(String objectId) voidsetParentId(String parentId) voidsetPolicies(Map<DocumentTypePolicy, String> policies) voidsetPostProcessorName(String postProcessorName) voidsetResolvedDocHandlerUrl(String resolvedDocumentHandlerUrl) voidsetSuperUserGroupId(String superUserGroupId) voidsetUnresolvedDocHandlerUrl(String unresolvedDocHandlerUrl) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
-
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getName
- Specified by:
getNamein interfaceDocumentTypeContract
-
getDocumentTypeVersion
- Specified by:
getDocumentTypeVersionin interfaceDocumentTypeContract
-
getLabel
- Specified by:
getLabelin interfaceDocumentTypeContract
-
getDescription
- Specified by:
getDescriptionin interfaceDocumentTypeContract
-
getParentId
- Specified by:
getParentIdin interfaceDocumentTypeContract
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceDocumentTypeContract
-
getUnresolvedDocHandlerUrl
- Specified by:
getUnresolvedDocHandlerUrlin interfaceDocumentTypeContract
-
getResolvedDocumentHandlerUrl
- Specified by:
getResolvedDocumentHandlerUrlin interfaceDocumentTypeContract
-
getHelpDefinitionUrl
- Specified by:
getHelpDefinitionUrlin interfaceDocumentTypeContract
-
getDocSearchHelpUrl
- Specified by:
getDocSearchHelpUrlin interfaceDocumentTypeContract
-
getPostProcessorName
- Specified by:
getPostProcessorNamein interfaceDocumentTypeContract
-
getApplicationId
- Specified by:
getApplicationIdin interfaceDocumentTypeContract
-
isCurrent
public boolean isCurrent()- Specified by:
isCurrentin interfaceDocumentTypeContract
-
getBlanketApproveGroupId
- Specified by:
getBlanketApproveGroupIdin interfaceDocumentTypeContract
-
getSuperUserGroupId
- Specified by:
getSuperUserGroupIdin interfaceDocumentTypeContract
-
getPolicies
- Specified by:
getPoliciesin interfaceDocumentTypeContract
-
getDocumentTypeAttributes
- Specified by:
getDocumentTypeAttributesin interfaceDocumentTypeContract
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
setObjectId
-
getAuthorizer
- Specified by:
getAuthorizerin interfaceDocumentTypeContract- Returns:
- the custom DocumentTypePermissionService class or service name configured for the doc type
- Since:
- 2.1.3
-
setId
-
setName
-
setDocumentTypeVersion
-
setLabel
-
setDescription
-
setParentId
-
setActive
public void setActive(boolean active) -
setUnresolvedDocHandlerUrl
-
setResolvedDocHandlerUrl
-
setHelpDefinitionUrl
-
setDocSearchHelpUrl
-
setPostProcessorName
-
setApplicationId
-
setCurrent
public void setCurrent(boolean current) -
setBlanketApproveGroupId
-
setSuperUserGroupId
-
setPolicies
-
setDocumentTypeAttributes
-
setVersionNumber
-
setAuthorizer
-