|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAbstractAction
com.anwrt.anycontent.plugins.web.repository.action.CreateNewPageContentAction
This action creates a page content in a virgin page.
The required request parameters are:
PARAMETER_PAGE: The path of an existing virgin pagePARAMETER_TEMPLATE: The template to use to create the page content. At begin, the template does not reference any content.PARAMETER_SITE: The current sitePARAMETER_SITEMAP: The current sitemapPARAMETER_LANG: The current languagePARAMETER_TEMPLATE is empty, the action gets the list of templates available: if there is only one, action succeed normaly, if there are more, action return the list.
| Field Summary | |
static java.lang.String |
PARAMETER_LANG
The parameter's name in request for the lang to consider |
static java.lang.String |
PARAMETER_PAGE
The parameter's name in request for the page where to create the page content |
static java.lang.String |
PARAMETER_SITE
The parameter's name in request for the site of the page to create |
static java.lang.String |
PARAMETER_SITEMAP
The parameter's name in request for the sitemap of the page to create |
static java.lang.String |
PARAMETER_TEMPLATE
The parameter's name in request for content type to choose |
| Constructor Summary | |
CreateNewPageContentAction()
|
|
| Method Summary | |
java.util.Map |
act(Redirector redirector,
SourceResolver resolver,
java.util.Map objectModel,
java.lang.String source,
Parameters parameters)
|
static java.lang.String |
computeOptions(Page page,
ServiceManager manager,
Logger logger)
Compute the attributes and icon to send back for repository action |
void |
service(ServiceManager manager)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PARAMETER_PAGE
public static final java.lang.String PARAMETER_TEMPLATE
public static final java.lang.String PARAMETER_SITE
public static final java.lang.String PARAMETER_SITEMAP
public static final java.lang.String PARAMETER_LANG
| Constructor Detail |
public CreateNewPageContentAction()
| Method Detail |
public void service(ServiceManager manager)
throws ServiceException
ServiceException
public java.util.Map act(Redirector redirector,
SourceResolver resolver,
java.util.Map objectModel,
java.lang.String source,
Parameters parameters)
throws java.lang.Exception
java.lang.Exception
public static java.lang.String computeOptions(Page page,
ServiceManager manager,
Logger logger)
throws java.lang.Exception
page - The page concernedmanager - The cocoon service managerlogger - The logger
java.lang.Exception - If an error occured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||