Package org.kuali.rice.kew.api.extension
Class ExtensionDefinition.Builder
java.lang.Object
org.kuali.rice.kew.api.extension.ExtensionDefinition.Builder
- All Implemented Interfaces:
Serializable,Identifiable,Versioned,ModelBuilder,ExtensionDefinitionContract
- Enclosing class:
- ExtensionDefinition
public static final class ExtensionDefinition.Builder
extends Object
implements Serializable, ModelBuilder, ExtensionDefinitionContract
A builder which can be used to construct
ExtensionDefinition instances. Enforces the constraints of the
ExtensionDefinitionContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static ExtensionDefinition.Builderstatic ExtensionDefinition.Buildercreate(ExtensionDefinitionContract contract) Returns a list of key/value settings that the extension was statically configured with when defined.getId()getLabel()getName()Retrieves the resource descriptor for this extension.getType()The "type" of extension definition.voidsetApplicationId(String applicationId) voidsetConfiguration(Map<String, String> configuration) voidsetDescription(String description) voidvoidvoidvoidsetResourceDescriptor(String resourceDescriptor) voidvoidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
public static ExtensionDefinition.Builder create(String name, String type, String resourceDescriptor) -
create
-
build
- Specified by:
buildin interfaceModelBuilder
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getName
- Specified by:
getNamein interfaceExtensionDefinitionContract
-
getApplicationId
- Specified by:
getApplicationIdin interfaceExtensionDefinitionContract
-
getLabel
- Specified by:
getLabelin interfaceExtensionDefinitionContract
-
getDescription
- Specified by:
getDescriptionin interfaceExtensionDefinitionContract
-
getType
Description copied from interface:ExtensionDefinitionContractThe "type" of extension definition. For example, attributes types are defined in:KewApiConstants.RULE_ATTRIBUTE_TYPES- Specified by:
getTypein interfaceExtensionDefinitionContract- Returns:
- the extension definition type
- See Also:
-
getResourceDescriptor
Description copied from interface:ExtensionDefinitionContractRetrieves the resource descriptor for this extension. This gives the calling code the information it needs to locate and execute the extension resource if it needs to. In practice this is a fully qualified class name.- Specified by:
getResourceDescriptorin interfaceExtensionDefinitionContract- Returns:
- the resource descriptor for this extension, this value should never be blank or null
-
getConfiguration
Description copied from interface:ExtensionDefinitionContractReturns a list of key/value settings that the extension was statically configured with when defined.- Specified by:
getConfigurationin interfaceExtensionDefinitionContract- Returns:
- a list of key/value settings that the extension was statically configured with when defined.
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setId
-
setName
-
setApplicationId
-
setLabel
-
setDescription
-
setType
-
setResourceDescriptor
-
setConfiguration
-
setVersionNumber
-