|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.action.CommonResourceAbstractBase
org.alfresco.repo.action.ParameterizedItemAbstractBase
org.alfresco.repo.action.executer.ActionExecuterAbstractBase
org.alfresco.repo.publishing.PublishContentActionExecuter
public class PublishContentActionExecuter
This class defines an action that publishes or unpublishes the acted-upon node to a specified publishing channel.
| Field Summary | |
|---|---|
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). |
| Fields inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase |
|---|
actionDefinition, applicableTypes, publicAction |
| Fields inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase |
|---|
DISPLAY_LABEL, runtimeActionService |
| Fields inherited from class org.alfresco.repo.action.CommonResourceAbstractBase |
|---|
name |
| Fields inherited from interface org.alfresco.repo.action.executer.ActionExecuter |
|---|
PARAM_RESULT |
| Constructor Summary | |
|---|---|
PublishContentActionExecuter()
|
|
| Method Summary | |
|---|---|
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)
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setPublishingService(PublishingService publishingService)
|
| Methods inherited from class org.alfresco.repo.action.executer.ActionExecuterAbstractBase |
|---|
createActionDefinition, execute, getActionDefinition, getIgnoreLock, getQueueName, getTrackStatus, init, setApplicableTypes, setBaseNodeService, setIgnoreLock, setLockService, setPublicAction, setQueueName, setTrackStatus |
| Methods inherited from class org.alfresco.repo.action.ParameterizedItemAbstractBase |
|---|
getAdhocPropertiesAllowed, getDescriptionKey, getParamDisplayLabel, getParameterDefintions, getTitleKey, setRuntimeActionService, toString |
| Methods inherited from class org.alfresco.repo.action.CommonResourceAbstractBase |
|---|
setBeanName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
public static final java.lang.String PARAM_PUBLISH_CHANNEL_NAME
PublishContentActionExecuter.PARAM_PUBLISH_CHANNEL_ID,
Constant Field Valuespublic static final java.lang.String PARAM_PUBLISH_CHANNEL_ID
PublishContentActionExecuter.PARAM_PUBLISH_CHANNEL_NAME,
Constant Field Valuespublic static final java.lang.String PARAM_UNPUBLISH
public static final java.lang.String PARAM_STATUS_UPDATE
PublishContentActionExecuter.PARAM_STATUS_UPDATE_CHANNEL_NAMES,
Constant Field Valuespublic static final java.lang.String PARAM_INCLUDE_LINK_IN_STATUS_UPDATE
PublishContentActionExecuter.PARAM_STATUS_UPDATE_CHANNEL_NAMES,
PublishContentActionExecuter.PARAM_STATUS_UPDATE,
Constant Field Valuespublic static final java.lang.String PARAM_NODE_TO_LINK_STATUS_UPDATE_TO
PublishContentActionExecuter.PARAM_INCLUDE_LINK_IN_STATUS_UPDATE,
PublishContentActionExecuter.PARAM_UNPUBLISH,
Constant Field Valuespublic static final java.lang.String PARAM_STATUS_UPDATE_CHANNEL_NAMES
PublishContentActionExecuter.PARAM_STATUS_UPDATE,
PublishContentActionExecuter.PARAM_STATUS_UPDATE_CHANNEL_IDS,
Constant Field Valuespublic static final java.lang.String PARAM_STATUS_UPDATE_CHANNEL_IDS
PublishContentActionExecuter.PARAM_STATUS_UPDATE,
PublishContentActionExecuter.PARAM_STATUS_UPDATE_CHANNEL_NAMES,
Constant Field Valuespublic static final java.lang.String PARAM_SCHEDULED_TIME
public static final java.lang.String PARAM_COMMENT
| Constructor Detail |
|---|
public PublishContentActionExecuter()
| Method Detail |
|---|
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)
protected void executeImpl(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
ActionExecuterAbstractBase
executeImpl in class ActionExecuterAbstractBaseaction - the actionactionedUponNodeRef - the actioned upon nodeprotected void addParameterDefinitions(java.util.List paramList)
ParameterizedItemAbstractBase
addParameterDefinitions in class ParameterizedItemAbstractBaseparamList - the parameter definitions list
protected void checkMandatoryProperties(ParameterizedItem ruleItem,
ParameterizedItemDefinition ruleItemDefinition)
ParameterizedItemAbstractBase
checkMandatoryProperties in class ParameterizedItemAbstractBaseruleItem - the rule itemruleItemDefinition - the rule item definition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||