|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.subscribe.util.SubscriptionManagementContext
public class SubscriptionManagementContext
This class permits to specify a context into which the subscriptions have to be managed. For example, it permits to define the context on the save action of a WYSIWYG of contribution from kmelia component.
Method Summary | |
---|---|
SubscriptionManagementContext |
forPersistenceAction(ContributionStatus entityStatusBeforePersistenceAction,
ActionType entityPersistenceAction,
ContributionStatus entityStatusAfterPersistenceAction)
Sets the context of persistence action performed on the entity. |
String |
getEntityId()
Gets the identifier of the entity on which the persistence (or validation) action is performed. |
ActionType |
getEntityPersistenceAction()
Gets the persistence (or validation) action that is performed on the entity. |
ContributionStatus |
getEntityStatusAfterPersistAction()
Gets the status of the entity after the persistence (or validation) action is performed. |
ContributionStatus |
getEntityStatusBeforePersistAction()
Gets the status of the entity before the persistence (or validation) action is performed. |
SubscriptionResource |
getLinkedSubscriptionResource()
Gets the finest subscription resource linked to the current managed entity. |
static SubscriptionManagementContext |
on(SubscriptionResource linkedSubscriptionResource,
String andEntityId)
Initializes a context by specifying the finest subscription resource linked to the entity that is handled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SubscriptionManagementContext on(SubscriptionResource linkedSubscriptionResource, String andEntityId)
linkedSubscriptionResource
- the finest subscription resource (the resource on which
subscriptions are registered) linked to the entity that is handled.andEntityId
- the identifier of the entity on which the persistence (or validation)
action
is performed.
SubscriptionManagementContext
initialized with the given subscription resource.public SubscriptionResource getLinkedSubscriptionResource()
public SubscriptionManagementContext forPersistenceAction(ContributionStatus entityStatusBeforePersistenceAction, ActionType entityPersistenceAction, ContributionStatus entityStatusAfterPersistenceAction)
entityStatusBeforePersistenceAction
- the status of the entity before its persistence (or
validation).entityPersistenceAction
- the type of persistence action performed on the persisted
entity.entityStatusAfterPersistenceAction
- the status of the entity after a successful persist
operation (or validation).
public String getEntityId()
public ActionType getEntityPersistenceAction()
public ContributionStatus getEntityStatusBeforePersistAction()
public ContributionStatus getEntityStatusAfterPersistAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |