Package mc.core.domain.base.aspect
Class AspectWatch<T extends ComplexEntity>
java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.base.dobj.AbstractAspect<T>
mc.core.domain.base.aspect.AspectWatch<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd watch recursivevoidadd(T entity, Principal principal, List<Watch.EventType> eventTypes, Locale locale, boolean recursive) add watch recursive or flatvoidvoiddeleteSync(Watch watch) deletes this watch and sends event for watched entity.
-
Constructor Details
-
AspectWatch
public AspectWatch()
-
-
Method Details
-
add
public void add(T entity, Principal principal, List<Watch.EventType> eventTypes, Locale locale) throws ApplicationException add watch recursive- Parameters:
entity- mandatoryprincipal- mandatoryeventTypes- mandatory, if empty list do nothinglocale- optional, should be given for locale dependent eventTypes- Throws:
ApplicationException
-
add
public void add(T entity, Principal principal, List<Watch.EventType> eventTypes, Locale locale, boolean recursive) throws ApplicationException add watch recursive or flat- Parameters:
entity- mandatoryprincipal- mandatoryeventTypes- mandatory, if empty list do nothinglocale- optional, should be given for locale dependent eventTypesrecursive- optional, set watch only on given entity, or recursive on children (if any)- Throws:
ApplicationException
-
delete
- Throws:
ApplicationException
-
deleteSync
deletes this watch and sends event for watched entity. Does not delete watches on children of entity.
-