public abstract class Condition extends java.lang.Object implements ConditionTypes
CONDITION_TYPE_CATALOG_SETTINGS_CHANGED, CONDITION_TYPE_FIELD_VALUE_CHANGED, CONDITION_TYPE_RECORD_CATEGORY_ADDED, CONDITION_TYPE_RECORD_CATEGORY_DELETED
Modifier and Type | Method and Description |
---|---|
void |
bind(Binding binding)
Binds this condition to the given binding.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCatalogItemEventsTable()
Returns the sub table which should be watched for the condition.
|
ConditionConfigurator |
getConfigurator()
Returns the configurator for this condition.
|
java.lang.String |
getFireHostItemInTable()
Returns the table name of the host item to fire instead of the current item.
|
abstract int[] |
getSupportedSourceTypes()
Returns the source types this condition supports.
|
int |
getType()
Returns this conditions type.
|
int |
hashCode() |
boolean |
isFireHostItem()
Returns whether this condition should fire for one of its host items instead of the actual item.
|
void |
setCatalogItemEventsTable(java.lang.String catalogItemEventsTable)
Configures the sub table which should be watched for the condition.
|
void |
setFireHostItem(boolean fireHostItem)
Configures whether this condition should fire for one of its host items instead of the actual item.
|
void |
setFireHostItemInTable(java.lang.String fireHostItemInTable)
Configures the table for which this condition should fire for.
|
boolean |
supportsSourceTypes(int sourceType)
Returns whether this condition supports the given source type.
|
public java.lang.String getCatalogItemEventsTable()
public void setCatalogItemEventsTable(java.lang.String catalogItemEventsTable)
catalogItemEventsTable
- table to watchpublic void setFireHostItem(boolean fireHostItem)
fireHostItem
- whether this condition should fire for one of its host items instead of the actual itempublic void setFireHostItemInTable(java.lang.String fireHostItemInTable)
fireHostItemInTable
- table for which this condition should fire forpublic boolean isFireHostItem()
public java.lang.String getFireHostItemInTable()
public void bind(Binding binding)
binding
- binding to bind topublic int getType()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public abstract int[] getSupportedSourceTypes()
TriggerManager.SOURCE_TYPE_CATALOG
,
TriggerManager.SOURCE_TYPE_CATEGORIES
, TriggerManager.SOURCE_TYPE_CATEGORY
,
TriggerManager.SOURCE_TYPE_RECORD
, TriggerManager.SOURCE_TYPE_RECORDS
and
TriggerManager.SOURCE_TYPE_SERVER
.public boolean supportsSourceTypes(int sourceType)
sourceType
- source type to supportpublic ConditionConfigurator getConfigurator()
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.