Uses of Enum Class
org.exoplatform.addons.documents.cleanup.constant.CleanupCampaignState
Packages that use CleanupCampaignState
Package
Description
-
Uses of CleanupCampaignState in org.exoplatform.addons.documents.cleanup.constant
Methods in org.exoplatform.addons.documents.cleanup.constant that return CleanupCampaignStateModifier and TypeMethodDescriptionstatic CleanupCampaignStateReturns the enum constant of this class with the specified name.static CleanupCampaignState[]CleanupCampaignState.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of CleanupCampaignState in org.exoplatform.addons.documents.cleanup.service
Fields in org.exoplatform.addons.documents.cleanup.service with type parameters of type CleanupCampaignStateModifier and TypeFieldDescriptionstatic final Set<CleanupCampaignState> CleanupCampaignService.GRACE_EDITABLE_STATESStates in which the GRACE PERIOD of a campaign may still be edited.Methods in org.exoplatform.addons.documents.cleanup.service with parameters of type CleanupCampaignStateModifier and TypeMethodDescriptionCleanupCampaignLifecycle.transition(CleanupCampaign campaign, CleanupCampaignState targetState) Variant ofCleanupCampaignLifecycle.transition(CleanupCampaign, CleanupCampaignState, BiConsumer)for transitions never entering PUBLISHED.CleanupCampaignLifecycle.transition(CleanupCampaign campaign, CleanupCampaignState targetState, BiConsumer<String, String> refreshCallback) Applies a campaign state transition with all its side effects: guards it against the allowed-transitions map, persists the new state, registers/unregisters the JCR freshness observation listener on entry/exit of PUBLISHED (a campaign leaving PUBLISHED or getting cancelled never leaks the listener) and broadcasts the stateChanged WebSocket event. -
Uses of CleanupCampaignState in org.exoplatform.addons.documents.cleanup.storage
Methods in org.exoplatform.addons.documents.cleanup.storage that return CleanupCampaignStateModifier and TypeMethodDescriptionCleanupCampaignStorage.getCampaignState(long campaignId) The CURRENT persisted state of a campaign, bypassing the persistence context (seeCleanupCampaignDAO.findStateById(long)): what the abort polls and the transition guard must read, an entity load answering a possibly hours-old snapshot inside the workers' long-lived transactions.Method parameters in org.exoplatform.addons.documents.cleanup.storage with type arguments of type CleanupCampaignStateModifier and TypeMethodDescriptionCleanupCampaignStorage.getCampaignsByStates(List<CleanupCampaignState> states)