Interface IContributionsManager
public interface IContributionsManager
This interface serves for discovery of existing workflow conditions,
functions and validators and for instantiations of these.
It can be used by clients, who need to know, which conditions/functions/validators are available (e.g. workflow editor).
- Author:
- dobisekm
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConditions(Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> conditions) Add new conditions.voidaddFunctions(Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> functions) Add new functions.voidaddSignaturePolicies(Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> signaturePolicies) Add new signature policies.createObject(String prototype, String contributionName) Instantiates the object with given name.Deprecated.getConditions(String prototype) Deprecated.getFunctions(String prototype) getSignaturePolicies(String prototype) Deprecated.getValidators(String prototype) booleanisConditionDefined(String name) Deprecated.booleanisConditionDefined(String prototype, String name) Determines if a condition with the specifiednameexistsbooleanisFunctionDefined(String name) Deprecated.booleanisFunctionDefined(String prototype, String name) booleanDeprecated.booleanisNotRecognizedCondition(String prototype, String name) Determines if a condition with the specifiednameis stored asNotRecognizedConditionbooleanDeprecated.booleanisNotRecognizedFunction(String prototype, String name) Determines if a function with the specifiednameis stored asNotRecognizedFunctionbooleanisNotRecognizedSignaturePolicy(String prototype, String name) Determines if a signature policy with the specifiednameis registered as not recognized signature policy.booleanisSignaturePolicyDefined(String prototype, String name) Determines if a signature policy with the specifiednameexists.booleanisValidatorDefined(String name) Deprecated.booleanisValidatorDefined(String prototype, String name)
-
Method Details
-
isConditionDefined
Determines if a condition with the specifiednameexists- Parameters:
name-- Returns:
trueif the given condition exists,falseotherwise.trueis returned also for the hidden conditions which are not listed bygetConditions().- Since:
- 3.8.1
-
isFunctionDefined
- Parameters:
name-- Returns:
trueif the given function exists,falseotherwise.trueis returned also for the hidden functions which are not listed bygetFunctions().- Since:
- 3.8.1
-
isValidatorDefined
- Parameters:
name-- Returns:
trueif the given validator exists,falseotherwise.trueis returned also for the hidden validators which are not listed bygetValidators().- Since:
- 3.8.1
-
isSignaturePolicyDefined
Determines if a signature policy with the specifiednameexists.- Parameters:
name-- Returns:
trueif the given policy exists,falseotherwise.- Since:
- 3.9.0
-
getConditions
- Returns:
- The map Name ->
IContributiondescribing existing user-visible conditions. Note, that the hidden conditions are not listed in the map. - Since:
- 3.8.1
- See Also:
-
getFunctions
- Returns:
- The map Name ->
IContributiondescribing existing user-visible functions. Note, that the hidden functions are not listed in the map. - Since:
- 3.8.1
- See Also:
-
getValidators
- Returns:
- The map Name ->
IContributiondescribing existing user-visible validators. Note, that the hidden validators are not listed in the map. - Since:
- 3.8.1
- See Also:
-
getSignaturePolicies
- Returns:
- The map Id ->
IContributiondescribing existing signature policies. - Since:
- 3.9.0
-
isNotRecognizedCondition
Determines if a condition with the specifiednameis stored asNotRecognizedCondition- Parameters:
name-- Returns:
trueif the given condition is stored asNotRecognizedCondition,falseotherwise.- Since:
- 3.8.1
-
isNotRecognizedFunction
Determines if a function with the specifiednameis stored asNotRecognizedFunction- Parameters:
name-- Returns:
trueif the given condition is stored asNotRecognizedFunction,falseotherwise.- Since:
- 3.8.1
-
isNotRecognizedSignaturePolicy
Determines if a signature policy with the specifiednameis registered as not recognized signature policy.- Since:
- 3.9.0
-
createObject
@NotNull Object createObject(@NotNull String prototype, @Nullable String contributionName) throws ClassNotFoundException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException Instantiates the object with given name. WARNING: This method is for internal use only. -
addConditions
void addConditions(@NotNull Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> conditions) Add new conditions. WARNING: This method is for internal use only.- Since:
- 3.6.1
-
addFunctions
void addFunctions(@NotNull Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> functions) Add new functions. WARNING: This method is for internal use only.- Since:
- 3.6.1
-
addSignaturePolicies
void addSignaturePolicies(@NotNull Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> signaturePolicies) Add new signature policies. WARNING: This method is for internal use only.- Since:
- 3.9.0
-
isConditionDefined
Deprecated.Shortcut for isConditionDefined(IWorkItem.PROTO, name).- Parameters:
name-
-
isFunctionDefined
Deprecated.Shortcut for isFunctionDefined(IWorkItem.PROTO, name).- Parameters:
name-
-
isValidatorDefined
Deprecated.Shortcut for isValidatorDefined(IWorkItem.PROTO, name).- Parameters:
name-
-
isNotRecognizedCondition
Deprecated.Shortcut for isNotRecognizedCondition(IWorkItem.PROTO, name).- Since:
- 3.6.1
-
isNotRecognizedFunction
Deprecated.Shortcut for isNotRecognizedFunction(IWorkItem.PROTO, name).- Since:
- 3.6.1
-
getConditions
Deprecated.Shortcut for getConditions(IWorkItem.PROTO). -
getFunctions
Deprecated.Shortcut for getFunctions(IWorkItem.PROTO). -
getValidators
Deprecated.Shortcut for getValidators(IWorkItem.PROTO).
-