public class NoneCaseIdGenerator extends Object implements CaseIdGenerator
org.jbpm.cases.generator.caseid.param
Constructor and Description |
---|
NoneCaseIdGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
generate(String prefix,
Map<String,Object> optionalParameters)
Generates next value for given prefix.
|
String |
getIdentifier()
Identifier of the generator so it can be found and registered at runtime
|
void |
register(String prefix)
Should be called only one time per given prefix.
|
void |
unregister(String prefix)
Unregisters given prefix from the generator.
|
public void register(String prefix)
CaseIdGenerator
register
in interface CaseIdGenerator
prefix
- unique prefix that should be used for generating case identifierspublic void unregister(String prefix)
CaseIdGenerator
unregister
in interface CaseIdGenerator
prefix
- unique prefix that should be used for generating case identifierspublic String generate(String prefix, Map<String,Object> optionalParameters) throws CasePrefixNotFoundException
CaseIdGenerator
generate
in interface CaseIdGenerator
prefix
- unique prefix that should be used for generating case identifiersoptionalParameters
- map of optionalParameters that might be helpful for implementationCasePrefixNotFoundException
- in case given prefix was not registeredpublic String getIdentifier()
CaseIdGenerator
getIdentifier
in interface CaseIdGenerator
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.