Class CreateNewsletterFunction
java.lang.Object
org.ametys.plugins.workflow.AbstractWorkflowComponent
org.ametys.cms.workflow.AbstractContentWorkflowComponent
org.ametys.cms.workflow.CreateContentFunction
org.ametys.web.workflow.CreateContentFunction
org.ametys.plugins.newsletter.workflow.CreateNewsletterFunction
- All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider,EnhancedFunction,Initializable,Contextualizable,LogEnabled,Serviceable
public class CreateNewsletterFunction
extends CreateContentFunction
implements Initializable, Contextualizable
OSWorkflow function for creating a content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classIgnore the root tag.protected classAutomatic newsletter filter.Nested classes/interfaces inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
AbstractWorkflowComponent.ConditionFailureNested classes/interfaces inherited from interface org.ametys.plugins.workflow.EnhancedFunction
EnhancedFunction.FunctionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContextThe Avalon contextprotected static final StringThe defaut content insertion level.The list of attributes to ignore.static final StringNewsletter category key.static final StringKey for content ID map when processing auto sections.static final DateFormatThe date format.static final StringNewsletter date key.static final StringNewsletter automatic property key.static final StringNewsletter number key.static final StringKey for "process auto sections".Fields inherited from class org.ametys.web.workflow.CreateContentFunction
_currentUserProvider, _siteManager, PAGE_KEY, PAGE_ZONE_KEY, SITE_KEYFields inherited from class org.ametys.cms.workflow.CreateContentFunction
_contentTypeEP, _contentTypeHelper, _observationManager, _resolver, CONTENT_LANGUAGE_KEY, CONTENT_MIXINS_KEY, CONTENT_NAME_KEY, CONTENT_TITLE_KEY, CONTENT_TITLE_VARIANTS_KEY, CONTENT_TYPES_KEY, INITIAL_VALUE_SUPPLIER, PARENT_CONTEXT_VALUE, ROOT_CONTENT_PATH_KEYFields inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
_contentHelper, CONTENT_KEY, HAS_CHANGED_KEYFields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_VALIDATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_populateContent(Map transientVars, ModifiableContent content) Populate the content.voidcontextualize(Context context) getLabel()Get the label for this functionvoidvoidservice(ServiceManager manager) Methods inherited from class org.ametys.web.workflow.CreateContentFunction
_getContentRoot, _getObjectType, _notifyContentAdded, _populateAdditionalDataMethods inherited from class org.ametys.cms.workflow.CreateContentFunction
_createContent, _eventParamsForContentAdded, _getDefaultNameComputationMode, _getNameComputationMode, _getNonNullVar, _initWorkflow, _isMultilingual, _setTitle, execute, getFunctionExecType, getSystemUserMethods inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
getContentMethods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUserMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.plugins.workflow.EnhancedFunction
getArguments, getFullLabel, getVisibilities
-
Field Details
-
NEWSLETTER_CATEGORY_KEY
Newsletter category key. -
NEWSLETTER_NUMBER_KEY
Newsletter number key. -
NEWSLETTER_DATE_KEY
Newsletter date key. -
NEWSLETTER_IS_AUTOMATIC_KEY
Newsletter automatic property key. -
NEWSLETTER_PROCESS_AUTO_SECTIONS_KEY
Key for "process auto sections". -
NEWSLETTER_CONTENT_ID_MAP_KEY
Key for content ID map when processing auto sections. -
NEWSLETTER_DATE_FORMAT
The date format. -
_IGNORE_ATTRS
The list of attributes to ignore. -
_DEFAULT_LEVEL
The defaut content insertion level.- See Also:
-
_context
The Avalon context
-
-
Constructor Details
-
CreateNewsletterFunction
public CreateNewsletterFunction()
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classCreateContentFunction- Throws:
ServiceException
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
getLabel
Description copied from interface:EnhancedFunctionGet the label for this function- Specified by:
getLabelin interfaceEnhancedFunction- Overrides:
getLabelin classCreateContentFunction- Returns:
- the label
-
_populateContent
protected void _populateContent(Map transientVars, ModifiableContent content) throws com.opensymphony.workflow.WorkflowException Description copied from class:CreateContentFunctionPopulate the content.- Overrides:
_populateContentin classCreateContentFunction- Parameters:
transientVars- the transient variables.content- the content.- Throws:
com.opensymphony.workflow.WorkflowException- if an error occurs.
-