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 TypeMethodDescriptionvoid
addConditions
(Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> conditions) Add new conditions.void
addFunctions
(Map<String, com.polarion.alm.tracker.internal.workflow.ContributionHolder> functions) Add new functions.void
addSignaturePolicies
(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) boolean
isConditionDefined
(String name) Deprecated.boolean
isConditionDefined
(String prototype, String name) Determines if a condition with the specifiedname
existsboolean
isFunctionDefined
(String name) Deprecated.boolean
isFunctionDefined
(String prototype, String name) boolean
Deprecated.boolean
isNotRecognizedCondition
(String prototype, String name) Determines if a condition with the specifiedname
is stored asNotRecognizedCondition
boolean
Deprecated.boolean
isNotRecognizedFunction
(String prototype, String name) Determines if a function with the specifiedname
is stored asNotRecognizedFunction
boolean
isNotRecognizedSignaturePolicy
(String prototype, String name) Determines if a signature policy with the specifiedname
is registered as not recognized signature policy.boolean
isSignaturePolicyDefined
(String prototype, String name) Determines if a signature policy with the specifiedname
exists.boolean
isValidatorDefined
(String name) Deprecated.boolean
isValidatorDefined
(String prototype, String name)
-
Method Details
-
isConditionDefined
Determines if a condition with the specifiedname
exists- Parameters:
name
-- Returns:
true
if the given condition exists,false
otherwise.true
is returned also for the hidden conditions which are not listed bygetConditions()
.- Since:
- 3.8.1
-
isFunctionDefined
- Parameters:
name
-- Returns:
true
if the given function exists,false
otherwise.true
is returned also for the hidden functions which are not listed bygetFunctions()
.- Since:
- 3.8.1
-
isValidatorDefined
- Parameters:
name
-- Returns:
true
if the given validator exists,false
otherwise.true
is returned also for the hidden validators which are not listed bygetValidators()
.- Since:
- 3.8.1
-
isSignaturePolicyDefined
Determines if a signature policy with the specifiedname
exists.- Parameters:
name
-- Returns:
true
if the given policy exists,false
otherwise.- Since:
- 3.9.0
-
getConditions
- Returns:
- The map Name ->
IContribution
describing 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 ->
IContribution
describing 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 ->
IContribution
describing 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 ->
IContribution
describing existing signature policies. - Since:
- 3.9.0
-
isNotRecognizedCondition
Determines if a condition with the specifiedname
is stored asNotRecognizedCondition
- Parameters:
name
-- Returns:
true
if the given condition is stored asNotRecognizedCondition
,false
otherwise.- Since:
- 3.8.1
-
isNotRecognizedFunction
Determines if a function with the specifiedname
is stored asNotRecognizedFunction
- Parameters:
name
-- Returns:
true
if the given condition is stored asNotRecognizedFunction
,false
otherwise.- Since:
- 3.8.1
-
isNotRecognizedSignaturePolicy
Determines if a signature policy with the specifiedname
is 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).
-