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
,Initializable
,Contextualizable
,LogEnabled
,Serviceable
public class CreateNewsletterFunction
extends CreateContentFunction
implements Initializable, Contextualizable
OSWorkflow function for creating a content.
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Ignore the root tag.protected class
Automatic newsletter filter. -
Field Summary
Modifier and TypeFieldDescriptionprotected Context
The Avalon contextprotected static final String
The defaut content insertion level.The list of attributes to ignore.static final String
Newsletter category key.static final String
Key for content ID map when processing auto sections.static final DateFormat
The date format.static final String
Newsletter date key.static final String
Newsletter automatic property key.static final String
Newsletter number key.static final String
Key for "process auto sections".Fields inherited from class org.ametys.web.workflow.CreateContentFunction
_currentUserProvider, _siteManager, PAGE_KEY, PAGE_ZONE_KEY, SITE_KEY
Fields 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_CONTENT_ID_KEY, PARENT_CONTENT_METADATA_PATH_KEY, PARENT_CONTEXT_VALUE
Fields inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
_contentHelper, CONTENT_KEY, HAS_CHANGED_KEY
Fields inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_populateContent
(Map transientVars, ModifiableContent content) Populate the content.void
contextualize
(Context context) void
void
service
(ServiceManager manager) Methods inherited from class org.ametys.web.workflow.CreateContentFunction
_createContent, _getContentRoot, _notifyContentAdded, _populateAdditionalData
Methods inherited from class org.ametys.cms.workflow.CreateContentFunction
_eventParamsForContentAdded, _getNonNullVar, _getObjectType, _getSubContentRoot, _initWorkflow, _isMultilingual, _setTitle, execute, getSystemUser
Methods inherited from class org.ametys.cms.workflow.AbstractContentWorkflowComponent
getContent
Methods inherited from class org.ametys.plugins.workflow.AbstractWorkflowComponent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
-
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:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classCreateContentFunction
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
_populateContent
protected void _populateContent(Map transientVars, ModifiableContent content) throws com.opensymphony.workflow.WorkflowException Description copied from class:CreateContentFunction
Populate the content.- Overrides:
_populateContent
in classCreateContentFunction
- Parameters:
transientVars
- the transient variables.content
- the content.- Throws:
com.opensymphony.workflow.WorkflowException
- if an error occurs.
-