public class CmsPublishItemStatus
extends java.lang.Object
An item can be enabled or disabled (because of an error). If it is enabled, it can change between the states "normal", "publish", and "remove", but if it is disabled, it can only change between "normal" and "remove".
The state will be changed depending on various signals which are passed as parameters to the handleSignal() method.
If the item is enabled, the only possible state transitions are as follows: publish to normal publish to remove normal to publish normal to remove remove to normal
限定符和类型 | 类和说明 |
---|---|
static class |
CmsPublishItemStatus.State
The enum for the publish item state.
|
构造器和说明 |
---|
CmsPublishItemStatus(CmsUUID id,
CmsPublishItemStatus.State state,
boolean disabled,
I_CmsPublishItemStatusUpdateHandler handler)
Creates a new publish item status bean.
|
限定符和类型 | 方法和说明 |
---|---|
CmsPublishItemStatus.State |
getState()
Gets the current state of the publish item.
|
void |
handleSignal(org.opencms.ade.publish.client.CmsPublishItemStatus.Signal signal)
Handles a signal which may change the current state.
|
boolean |
isDisabled()
Checks whether this publish item is disabled.
|
protected void |
signalPublish()
Executes a publish signal.
|
protected void |
signalRemove()
Executes a remove signal.
|
protected void |
signalUnpublish()
Executes an unpublish signal.
|
protected void |
signalUnremove()
Executes an unremove signal.
|
public CmsPublishItemStatus(CmsUUID id, CmsPublishItemStatus.State state, boolean disabled, I_CmsPublishItemStatusUpdateHandler handler)
id
- the publish item idstate
- the publish item statedisabled
- true if this item is disabledhandler
- the handler which should be notified of state changespublic CmsPublishItemStatus.State getState()
public void handleSignal(org.opencms.ade.publish.client.CmsPublishItemStatus.Signal signal)
signal
- the signalpublic boolean isDisabled()
protected void signalPublish()
protected void signalRemove()
protected void signalUnpublish()
protected void signalUnremove()