public class PublishContentActionExecuter extends ActionExecuterAbstractBase
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static String |
PARAM_COMMENT
A single-valued, optional text parameter that is stored on the publishing
event that is created by this action.
|
static 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 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 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 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 String |
PARAM_SCHEDULED_TIME
A single-valued, optional datetime parameter that specifies when the
publish should happen.
|
static 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 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 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 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, publicAction
adhocPropertiesAllowed, DISPLAY_LABEL, runtimeActionService
name
PARAM_RESULT
Constructor and Description |
---|
PublishContentActionExecuter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addParameterDefinitions(List<ParameterDefinition> 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, onLogException, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setMlAwareNodeService, setPublicAction, setQueueName, setTrackStatus
getAdhocPropertiesAllowed, getDescriptionKey, getLocalizedParameterDefinitions, getParamDisplayLabel, getParamDisplayLabel, getParameterDefintions, getTitleKey, setAdhocPropertiesAllowed, setLocales, setRuntimeActionService, toString
setBeanName
public static final String NAME
public static final String PARAM_PUBLISH_CHANNEL_NAME
PARAM_PUBLISH_CHANNEL_ID
,
Constant Field Valuespublic static final String PARAM_PUBLISH_CHANNEL_ID
PARAM_PUBLISH_CHANNEL_NAME
,
Constant Field Valuespublic static final String PARAM_UNPUBLISH
public static final String PARAM_STATUS_UPDATE
public static final String PARAM_INCLUDE_LINK_IN_STATUS_UPDATE
public static final String PARAM_NODE_TO_LINK_STATUS_UPDATE_TO
public static final String PARAM_STATUS_UPDATE_CHANNEL_NAMES
public static final String PARAM_STATUS_UPDATE_CHANNEL_IDS
public static final String PARAM_SCHEDULED_TIME
public static final 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)
ActionExecuterAbstractBase
setDictionaryService
in class ActionExecuterAbstractBase
dictionaryService
- the dictionary serviceprotected void executeImpl(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBase
executeImpl
in class ActionExecuterAbstractBase
action
- the actionactionedUponNodeRef
- the actioned upon nodeprotected void addParameterDefinitions(List<ParameterDefinition> paramList)
ParameterizedItemAbstractBase
addParameterDefinitions
in class ParameterizedItemAbstractBase
paramList
- the parameter definitions listprotected void checkMandatoryProperties(ParameterizedItem ruleItem, ParameterizedItemDefinition ruleItemDefinition)
ParameterizedItemAbstractBase
checkMandatoryProperties
in class ParameterizedItemAbstractBase
ruleItem
- the rule itemruleItemDefinition
- the rule item definitionCopyright © 2005–2017 Alfresco Software. All rights reserved.