Package com.aquima.interactions.process
Class IgnoreMode
java.lang.Object
com.aquima.interactions.process.IgnoreMode
- All Implemented Interfaces:
Serializable
Represents the process case application id ignore mode.
Normally, cases and tasks created in an application cannot be used in another application or in another version of the same application. Depending on this setting, the version or the entire application id of a case may be ignored so they may be used in different applications or different application versions,
To be used with caution and only when it is certain that the case model in two different applications or application versions are compatible.
- Since:
- 9.6
- Author:
- Petru Galanton
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IgnoreMode
When this setting is used, the entire application ID is ignored, making it possible to access cases created in an application from a completely different application.static final IgnoreMode
The default ignore mode (when no configuration is set).static final IgnoreMode
When this setting is used, nothing is ignored (default behaviour prior to 9.6).static final IgnoreMode
When this setting is used, the application name is ignored, making it possible to access cases created by other projects in the same version (branch).static final IgnoreMode
When this setting is used, the application version is ignored, making it possible to access cases created in an older version of an application from a newer version of the same application. -
Method Summary
Modifier and TypeMethodDescriptionapply
(ApplicationID appId) Returns a PropertyFilter suitable to filter cases and tasks by application id using this ignore mode.apply
(ApplicationID appId, IPropertyFilter filter) void
apply
(ApplicationID appId, CaseViewCriteria criteria) void
apply
(ApplicationID appId, TaskViewCriteria criteria) boolean
getName()
Returns the name of this ignore mode.int
hashCode()
boolean
Indicates whether with this ignore mode the application name is ignored.boolean
Indicates wheter with this ignore mode the application version is ignored.toString()
static IgnoreMode
Returns the IgnoreMode corresponding to the given name.static IgnoreMode[]
values()
-
Field Details
-
DEFAULT
The default ignore mode (when no configuration is set). For global ignore mode, the default ignore mode is interpreted as "nothing is ignored". For application ignore mode, the default is interpreted as a "fallback to the global setting". -
NONE
When this setting is used, nothing is ignored (default behaviour prior to 9.6). -
PROJECT
When this setting is used, the application name is ignored, making it possible to access cases created by other projects in the same version (branch). -
VERSION
When this setting is used, the application version is ignored, making it possible to access cases created in an older version of an application from a newer version of the same application. -
ALL
When this setting is used, the entire application ID is ignored, making it possible to access cases created in an application from a completely different application.
-
-
Method Details
-
valueOf
Returns the IgnoreMode corresponding to the given name.- Parameters:
name
- the ignore mode name- Returns:
- the corresponding IgnoreMode instance
- Throws:
IllegalArgumentException
- if no ignore mode exists for the given name
-
values
- Returns:
- all possible ignore modes
-
getName
Returns the name of this ignore mode. This name may be used in configuration files.- Returns:
- the name of this ignore mode
-
isNameIgnored
public boolean isNameIgnored()Indicates whether with this ignore mode the application name is ignored.- Returns:
- true if the application name is ignored, false otherwise
-
isVersionIgnored
public boolean isVersionIgnored()Indicates wheter with this ignore mode the application version is ignored.- Returns:
- true if the application version is ignored, false otherwise
-
apply
Returns a PropertyFilter suitable to filter cases and tasks by application id using this ignore mode.- Parameters:
appId
- the application id for which a property filter should be created- Returns:
- the property filter or null if this ignore mode requires no filtering on application id
-
apply
-
apply
-
apply
-
toString
-
hashCode
public int hashCode() -
equals
-