public class ProposeContentAction extends ServiceableAction
Modifier and Type | Field and Description |
---|---|
protected ContentTypesHelper |
_contentTypeHelper
The content type helper
|
protected ContentTypeExtensionPoint |
_cTypeEP
The content type extension point
|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected FOContentCreationHelper |
_foContentCreationHelper
Helper for FO content creation
|
protected I18nUtils |
_i18nUtils
The I18n utils
|
private static int |
_INITIAL_ACTION_ID |
protected JSONUtils |
_jsonUtils
The JSON Utils
|
protected AmetysObjectResolver |
_resolver
Ametys object resolver.
|
protected UserManager |
_userManager
The user manager
|
manager
EMPTY_MAP
Constructor and Description |
---|
ProposeContentAction() |
Modifier and Type | Method and Description |
---|---|
protected String |
_getContentUri(WorkflowAwareContent content,
Site site)
Get the content uri
|
protected I18nizableText |
_getI18nBody(WorkflowAwareContent content,
User creator,
Site site)
Get the i18n body
|
protected I18nizableText |
_getI18nSubject(Site site)
Get the i18n subject
|
protected String |
_getRequestUri()
Get the request URI.
|
protected Site |
_getSite(WorkflowAwareContent content)
Get the site name
|
protected void |
_sendMail(UserIdentity adminUser,
WorkflowAwareContent content)
Send mail to inform that a content is created
|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private static final int _INITIAL_ACTION_ID
protected AmetysObjectResolver _resolver
protected ContentTypeExtensionPoint _cTypeEP
protected ContentTypesHelper _contentTypeHelper
protected JSONUtils _jsonUtils
protected CurrentUserProvider _currentUserProvider
protected I18nUtils _i18nUtils
protected UserManager _userManager
protected FOContentCreationHelper _foContentCreationHelper
public ProposeContentAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected void _sendMail(UserIdentity adminUser, WorkflowAwareContent content)
adminUser
- the admin usercontent
- the created contentprotected I18nizableText _getI18nBody(WorkflowAwareContent content, User creator, Site site)
content
- the contentcreator
- the creatorsite
- the siteprotected I18nizableText _getI18nSubject(Site site)
site
- the siteprotected Site _getSite(WorkflowAwareContent content)
content
- The contentprotected String _getContentUri(WorkflowAwareContent content, Site site)
content
- the contentsite
- The siteprotected String _getRequestUri()