Package pl.edu.icm.unity.types.bulkops
Class ScheduledProcessingRule
- java.lang.Object
-
- pl.edu.icm.unity.types.translation.TranslationRule
-
- pl.edu.icm.unity.types.bulkops.ScheduledProcessingRuleParam
-
- pl.edu.icm.unity.types.bulkops.ScheduledProcessingRule
-
- All Implemented Interfaces:
NamedObject
public class ScheduledProcessingRule extends ScheduledProcessingRuleParam implements NamedObject
Represents an installed scheduled processing rule. Internally extendsScheduledProcessingRuleParam
by introducing an id, which is assigned by the system and uniquely identifies the rule.- Author:
- K. Benedyczak
-
-
Field Summary
-
Fields inherited from class pl.edu.icm.unity.types.bulkops.ScheduledProcessingRuleParam
cronExpression
-
Fields inherited from class pl.edu.icm.unity.types.translation.TranslationRule
action, condition
-
-
Constructor Summary
Constructors Constructor Description ScheduledProcessingRule(com.fasterxml.jackson.databind.node.ObjectNode json)
ScheduledProcessingRule(String condition, TranslationAction action, String cronExpression, String id)
ScheduledProcessingRule(ScheduledProcessingRule src)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getId()
String
getName()
int
hashCode()
com.fasterxml.jackson.databind.node.ObjectNode
toJson()
String
toString()
-
Methods inherited from class pl.edu.icm.unity.types.bulkops.ScheduledProcessingRuleParam
getCronExpression, setCronExpression
-
Methods inherited from class pl.edu.icm.unity.types.translation.TranslationRule
getAction, getCondition, setCondition, setTranslationAction
-
-
-
-
Constructor Detail
-
ScheduledProcessingRule
public ScheduledProcessingRule(String condition, TranslationAction action, String cronExpression, String id)
-
ScheduledProcessingRule
public ScheduledProcessingRule(ScheduledProcessingRule src)
-
ScheduledProcessingRule
public ScheduledProcessingRule(com.fasterxml.jackson.databind.node.ObjectNode json)
-
-
Method Detail
-
getId
public String getId()
-
getName
public String getName()
- Specified by:
getName
in interfaceNamedObject
- Returns:
- human readable name of the object. Must be unique for the object class.
-
toJson
public com.fasterxml.jackson.databind.node.ObjectNode toJson()
- Overrides:
toJson
in classScheduledProcessingRuleParam
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classScheduledProcessingRuleParam
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classScheduledProcessingRuleParam
-
toString
public String toString()
- Overrides:
toString
in classScheduledProcessingRuleParam
-
-