Package org.ametys.plugins.webcontentio
Class ImportContentAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.webcontentio.ImportContentAction
-
- All Implemented Interfaces:
Component,Contextualizable,LogEnabled,Serviceable,Action
public class ImportContentAction extends ServiceableAction implements Contextualizable
Action to import a content from an input stream received through a POST request.
-
-
Field Summary
Fields Modifier and Type Field Description private AuthenticationTokenManager_authenticationManagerprivate ContentIOManager_contentIOManagerprivate Context_contextprivate SiteManager_siteManager-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description ImportContentAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)voidcontextualize(Context context)private PagesContainergetPageFromPath(String siteName, String sitemapName, String path)voidservice(ServiceManager smanager)-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_authenticationManager
private AuthenticationTokenManager _authenticationManager
-
_contentIOManager
private ContentIOManager _contentIOManager
-
_siteManager
private SiteManager _siteManager
-
-
Constructor Detail
-
ImportContentAction
public ImportContentAction()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
getPageFromPath
private PagesContainer getPageFromPath(String siteName, String sitemapName, String path)
-
-