public class PublishContentActionExecuter extends ActionExecuterAbstractBase
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
static java.lang.String |
PARAM_COMMENT
A single-valued, optional text parameter that is stored on the publishing
event that is created by this action.
|
static java.lang.String |
PARAM_INCLUDE_LINK_IN_STATUS_UPDATE
A single-valued, optional boolean parameter that specifies whether a link
to the published content should be appended (in shortened form) to the
status update.
|
static java.lang.String |
PARAM_NODE_TO_LINK_STATUS_UPDATE_TO
A single-valued, optional NodeRef parameter that specifies which published node should be
referenced by the status update.
|
static java.lang.String |
PARAM_PUBLISH_CHANNEL_ID
A single-valued, optional text parameter that identifies the publishing
channel to which the specified content is to be published.
|
static java.lang.String |
PARAM_PUBLISH_CHANNEL_NAME
A single-valued, optional text parameter that names the publishing
channel to which the specified content is to be published.
|
static java.lang.String |
PARAM_SCHEDULED_TIME
A single-valued, optional datetime parameter that specifies when the
publish should happen.
|
static java.lang.String |
PARAM_STATUS_UPDATE
A single-valued, optional text parameter that specifies the text of a
status update that is to be sent to the specified channels upon
successful publication
|
static java.lang.String |
PARAM_STATUS_UPDATE_CHANNEL_IDS
A multi-valued, optional text parameter that identifies the publishing
channels to which the status update (if any) should be sent.
|
static java.lang.String |
PARAM_STATUS_UPDATE_CHANNEL_NAMES
A multi-valued, optional text parameter that identifies by name the
publishing channels to which the status update (if any) should be sent.
|
static java.lang.String |
PARAM_UNPUBLISH
A single-valued, optional boolean parameter that indicates whether the
node being acted on should be unpublished (true) or published (false, the
default).
|
actionDefinition, applicableTypes, publicActionDISPLAY_LABEL, runtimeActionServicenamePARAM_RESULT| Constructor and Description |
|---|
PublishContentActionExecuter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParameterDefinitions(java.util.List paramList)
Adds the parameter definitions to the list
|
protected void |
checkMandatoryProperties(ParameterizedItem ruleItem,
ParameterizedItemDefinition ruleItemDefinition)
Checked whether all the mandatory parameters for the rule item have been assigned.
|
protected void |
executeImpl(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Execute the action implementation
|
void |
setChannelService(ChannelService channelService) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPublishingService(PublishingService publishingService) |
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, isApplicableType, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatusgetAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toStringsetBeanNamepublic static final java.lang.String NAME
public static final java.lang.String PARAM_PUBLISH_CHANNEL_NAME
public static final java.lang.String PARAM_PUBLISH_CHANNEL_ID
public static final java.lang.String PARAM_UNPUBLISH
public static final java.lang.String PARAM_STATUS_UPDATE
public static final java.lang.String PARAM_INCLUDE_LINK_IN_STATUS_UPDATE
public static final java.lang.String PARAM_NODE_TO_LINK_STATUS_UPDATE_TO
public static final java.lang.String PARAM_STATUS_UPDATE_CHANNEL_NAMES
public static final java.lang.String PARAM_STATUS_UPDATE_CHANNEL_IDS
public static final java.lang.String PARAM_SCHEDULED_TIME
public static final java.lang.String PARAM_COMMENT
public void setPublishingService(PublishingService publishingService)
public void setChannelService(ChannelService channelService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
ActionExecuterAbstractBasesetDictionaryService in class ActionExecuterAbstractBasedictionaryService - the dictionary serviceprotected void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBaseexecuteImpl in class ActionExecuterAbstractBaseaction - the actionactionedUponNodeRef - the actioned upon nodeprotected void addParameterDefinitions(java.util.List paramList)
ParameterizedItemAbstractBaseaddParameterDefinitions in class ParameterizedItemAbstractBaseparamList - the parameter definitions listprotected void checkMandatoryProperties(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition)
ParameterizedItemAbstractBasecheckMandatoryProperties in class ParameterizedItemAbstractBaseruleItem - the rule itemruleItemDefinition - the rule item definitionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.