Package mc.core.domain.base.aspect
Class AspectVersion<T extends ComplexEntity>
java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.base.dobj.AbstractAspect<T>
mc.core.domain.base.aspect.AspectVersion<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetModified(ComplexEntity object, Watch.EventType eventType, String... args) Central method to call when a ComplexEntity has been modified and the change should be recorded.
-
Constructor Details
-
AspectVersion
public AspectVersion()
-
-
Method Details
-
setModified
Central method to call when a ComplexEntity has been modified and the change should be recorded. Sets date modified to current date. Creates a Notification with entity name in master locale, entity id and the EventType and sends it to all Users (direct or via UserGroup) who have a Watch on this entity.
For IVersionManaged entities insert new version with version change info containing the same data as the notification.- Parameters:
object- ComplexEntity, mandatoryeventType- mandatoryargs- optional, additional arguments to be added to notification and VersionChangeInfo- See Also:
-