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>

public class AspectVersion<T extends ComplexEntity> extends AbstractAspect<T>
  • Constructor Details

    • AspectVersion

      public AspectVersion()
  • Method Details

    • setModified

      public void setModified(ComplexEntity object, Watch.EventType eventType, String... args)
      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, mandatory
      eventType - mandatory
      args - optional, additional arguments to be added to notification and VersionChangeInfo
      See Also: