Class Activity
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<ActivityFactory>
org.ametys.plugins.repository.activities.Activity
- All Implemented Interfaces:
AmetysObject,DataHolder,ModifiableDataHolder,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableAmetysObject,RemovableAmetysObject
Object representing an activity (such as the creation of content)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActivity(javax.jcr.Node node, String parentPath, ActivityFactory factory) Creates anActivity. -
Method Summary
Modifier and TypeMethodDescriptionGet the type of the activityGet the author of the activitygetDate()Get the date of the activityGet the event type that generated this activitySerialize the activity as a JSONvoidtoSAX(ContentHandler contentHandler) Generate SAX event to represent all the activityMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getComposite, getComposite, getDataHolder, getId, getMetadataHolder, getName, getNode, getParent, getParentDataHolder, getParentPath, getPath, getRepositoryData, getRootDataHolder, needsSave, remove, removeValue, rename, revertChanges, saveChanges, setValue, setValue, synchronizeValuesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
dataToJSON, dataToJSON, dataToSAX, dataToSAX, equals, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hashCode, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, hashCodeMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToSAX, dataToSAX, dataToSAX, dataToSAX, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
-
Field Details
-
ACTIVITY_ID_KEY
key used to store the activity id when serialized- See Also:
-
ACTIVITY_NAME_KEY
key used to store the activity name when serialized- See Also:
-
-
Constructor Details
-
Method Details
-
getActivityType
Get the type of the activity- Returns:
- the activity type
-
getEventType
Get the event type that generated this activity- Returns:
- the event id
-
getDate
Get the date of the activity- Returns:
- the date time
-
getAuthor
Get the author of the activity- Returns:
- the author identity
-
toSAX
Generate SAX event to represent all the activity- Parameters:
contentHandler- the targeted contentHandler- Throws:
SAXException- if an error occurred
-
toJSONForClient
Serialize the activity as a JSON- Returns:
- the JSON
-