Class RepoBasedEnumeration
java.lang.Object
com.polarion.platform.persistence.spi.AbstractEnumeration
com.polarion.platform.persistence.spi.RepoBasedEnumeration
- All Implemented Interfaces:
IConfigurableEnumeration,IEnumeration
- Direct Known Subclasses:
TypedEnumeration
Generic implementation of an enum factory. Works with a default configuration
data handler (data handler must return
Document), and predefined XML
structure. The sample configuration looks like this:
<?xml version="1.0" encoding="UTF-8"?>
The attributes id, name, sortOrder and default are processed, all the
others are passed as enum option properties.
- Author:
- POLARION SOFTWARE
-
Constructor Summary
ConstructorsConstructorDescriptionRepoBasedEnumeration(IRepositoryConfigService rcs, String cfgPath, String enumerationId, IContextId contextId) -
Method Summary
Modifier and TypeMethodDescriptionConfiguration id to be used as parameter of methods onIRepositoryConfigService.getDefaultOption(String controlValue) static StringgetEnumerationFileName(String enumerationId) static StringgetEnumerationFolder(String enumerationId) Methods inherited from class com.polarion.platform.persistence.spi.AbstractEnumeration
getAllOptions, getAvailableOptions, getAvailableOptions, getControlKey, getDefaultOption, wrapOption, wrapOption, wrapOptionMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.polarion.platform.persistence.IEnumeration
getAllOptions, getAvailableOptions, getAvailableOptions, getControlKey, getDefaultOption, wrapOption, wrapOption, wrapOption
-
Constructor Details
-
RepoBasedEnumeration
public RepoBasedEnumeration(@Nullable IRepositoryConfigService rcs, @NotNull String cfgPath, @NotNull String enumerationId, @Nullable IContextId contextId)
-
-
Method Details
-
getConfigurationId
Description copied from interface:IConfigurableEnumerationConfiguration id to be used as parameter of methods onIRepositoryConfigService.- Specified by:
getConfigurationIdin interfaceIConfigurableEnumeration- Since:
- 3.8.1
-
getDefaultOption
- Specified by:
getDefaultOptionin classAbstractEnumeration
-
getEnumerationFolder
- Since:
- 3.6.0
-
getEnumerationFileName
- Since:
- 3.6.0
-