Package es.bsc.dataclay.util.events.type
Class UpdatedObjEventType
- java.lang.Object
-
- es.bsc.dataclay.util.events.type.EventType
-
- es.bsc.dataclay.util.events.type.UpdatedObjEventType
-
public final class UpdatedObjEventType extends EventType
This class represents an event type an object was updated.
-
-
Field Summary
-
Fields inherited from class es.bsc.dataclay.util.events.type.EventType
eventTypeEnum
-
-
Constructor Summary
Constructors Constructor Description UpdatedObjEventType()
Constructor used for deserialization.UpdatedObjEventType(MetaClassID newclassID)
ConstructorUpdatedObjEventType(Class<?> stubClazz)
ConstructorUpdatedObjEventType(String newnamespace, String newclassName)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkIsEventType(EventMessage message)
Checks if event received belongs to this event type.boolean
equals(Object obj)
MetaClassID
getClassID()
Get the DeletedObjEventCondition::classIDString
getClassName()
String
getNamespace()
int
hashCode()
void
init(AccountID accountID, PasswordCredential credential, String newnamespace, LogicModuleAPI lm)
Initialize (if needed) IDs from specifications (example: className -> class ID)void
setClassID(MetaClassID newclassID)
Set the DeletedObjEventCondition::classIDvoid
setClassName(String newclassName)
void
setNamespace(String newnamespace)
-
Methods inherited from class es.bsc.dataclay.util.events.type.EventType
getEventTypeEnum, getPriority, setEventTypeEnum
-
-
-
-
Constructor Detail
-
UpdatedObjEventType
public UpdatedObjEventType()
Constructor used for deserialization.
-
UpdatedObjEventType
public UpdatedObjEventType(String newnamespace, String newclassName)
Constructor- Parameters:
newnamespace
- Namespace of classnewclassName
- Class name of class
-
UpdatedObjEventType
public UpdatedObjEventType(MetaClassID newclassID)
Constructor- Parameters:
newclassID
- Class ID of condition.
-
UpdatedObjEventType
public UpdatedObjEventType(Class<?> stubClazz)
Constructor- Parameters:
stubClazz
- Stub of class being used. If it is a class being registered, only the name will be set.
-
-
Method Detail
-
init
public void init(AccountID accountID, PasswordCredential credential, String newnamespace, LogicModuleAPI lm)
Description copied from class:EventType
Initialize (if needed) IDs from specifications (example: className -> class ID)- Specified by:
init
in classEventType
- Parameters:
accountID
- ID of account registering the Event Typecredential
- Credentials of account registering the Event Typenewnamespace
- Namespace being used to register events. Used for registration of classes and ECAs at once.lm
- Reference to LogicModule to seek for IDs and so on.
-
getClassID
public MetaClassID getClassID()
Get the DeletedObjEventCondition::classID- Returns:
- the classID
-
setClassID
public void setClassID(MetaClassID newclassID)
Set the DeletedObjEventCondition::classID- Parameters:
newclassID
- the classID to set
-
checkIsEventType
public boolean checkIsEventType(EventMessage message)
Description copied from class:EventType
Checks if event received belongs to this event type.- Specified by:
checkIsEventType
in classEventType
- Parameters:
message
- Event message- Returns:
- TRUE if message belongs to this event type. FALSE otherwise.
-
getNamespace
public String getNamespace()
- Returns:
- the namespace
-
setNamespace
public void setNamespace(String newnamespace)
- Parameters:
newnamespace
- the namespace to set
-
getClassName
public String getClassName()
- Returns:
- the className
-
setClassName
public void setClassName(String newclassName)
- Parameters:
newclassName
- the className to set
-
-