Package com.day.cq.wcm.api.commands
Interface WCMCommand
-
public interface WCMCommand
WCMCommand
...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADJUST_PARAM
adjust (for heavy move)static java.lang.String
ARCHIVE_PARAM
archive flagstatic java.lang.String
BEFORE_PARAM
before paramstatic java.lang.String
DATE_PARAM
date to restore tostatic java.lang.String
DEST_NAME_PARAM
destination namestatic java.lang.String
DEST_PARENT_PATH_PARAM
destination parent pathstatic java.lang.String
DEST_PATH_PARAM
destination pathstatic java.lang.String
DEST_TITLE_PARAM
title of resource after movestatic java.lang.String
FORCE_PARAM
force flagstatic java.lang.String
INTEGRITY_PARAM
integrity (for heavy move)static java.lang.String
PAGE_LABEL_PARAM
page labelstatic java.lang.String
PAGE_TITLE_PARAM
page titlestatic java.lang.String
PARENT_PATH_PARAM
parent pathstatic java.lang.String
PATH_PARAM
default path parameter namestatic java.lang.String
PUBLISH_PARAM
publish (for heavy move)static java.lang.String
REVISION_ID_PARAM
version namestatic java.lang.String
SHALLOW_LIST_PARAM
shallow list flagstatic java.lang.String
SHALLOW_PARAM
shallow flagstatic java.lang.String
SRC_PATH_LIST_PARAM
source path Liststatic java.lang.String
SRC_PATH_PARAM
source pathstatic java.lang.String
TEMPLATE_PARAM
template path
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCommandName()
Returns the name of the command.HtmlResponse
performCommand(WCMCommandContext ctx, SlingHttpServletRequest request, SlingHttpServletResponse response, PageManager pageManager)
Peformas the command.
-
-
-
Field Detail
-
PATH_PARAM
static final java.lang.String PATH_PARAM
default path parameter name- See Also:
- Constant Field Values
-
PARENT_PATH_PARAM
static final java.lang.String PARENT_PATH_PARAM
parent path- See Also:
- Constant Field Values
-
SRC_PATH_PARAM
static final java.lang.String SRC_PATH_PARAM
source path- See Also:
- Constant Field Values
-
SRC_PATH_LIST_PARAM
static final java.lang.String SRC_PATH_LIST_PARAM
source path List- See Also:
- Constant Field Values
-
DEST_PARENT_PATH_PARAM
static final java.lang.String DEST_PARENT_PATH_PARAM
destination parent path- See Also:
- Constant Field Values
-
DEST_PATH_PARAM
static final java.lang.String DEST_PATH_PARAM
destination path- See Also:
- Constant Field Values
-
DEST_NAME_PARAM
static final java.lang.String DEST_NAME_PARAM
destination name- See Also:
- Constant Field Values
-
ADJUST_PARAM
static final java.lang.String ADJUST_PARAM
adjust (for heavy move)- See Also:
- Constant Field Values
-
PUBLISH_PARAM
static final java.lang.String PUBLISH_PARAM
publish (for heavy move)- See Also:
- Constant Field Values
-
INTEGRITY_PARAM
static final java.lang.String INTEGRITY_PARAM
integrity (for heavy move)- See Also:
- Constant Field Values
-
BEFORE_PARAM
static final java.lang.String BEFORE_PARAM
before param- See Also:
- Constant Field Values
-
PAGE_LABEL_PARAM
static final java.lang.String PAGE_LABEL_PARAM
page label- See Also:
- Constant Field Values
-
PAGE_TITLE_PARAM
static final java.lang.String PAGE_TITLE_PARAM
page title- See Also:
- Constant Field Values
-
TEMPLATE_PARAM
static final java.lang.String TEMPLATE_PARAM
template path- See Also:
- Constant Field Values
-
SHALLOW_PARAM
static final java.lang.String SHALLOW_PARAM
shallow flag- See Also:
- Constant Field Values
-
ARCHIVE_PARAM
static final java.lang.String ARCHIVE_PARAM
archive flag- See Also:
- Constant Field Values
-
SHALLOW_LIST_PARAM
static final java.lang.String SHALLOW_LIST_PARAM
shallow list flag- See Also:
- Constant Field Values
-
FORCE_PARAM
static final java.lang.String FORCE_PARAM
force flag- See Also:
- Constant Field Values
-
REVISION_ID_PARAM
static final java.lang.String REVISION_ID_PARAM
version name- See Also:
- Constant Field Values
-
DATE_PARAM
static final java.lang.String DATE_PARAM
date to restore to- See Also:
- Constant Field Values
-
DEST_TITLE_PARAM
static final java.lang.String DEST_TITLE_PARAM
title of resource after move- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommandName
java.lang.String getCommandName()
Returns the name of the command.- Returns:
- the name of the command
-
performCommand
HtmlResponse performCommand(WCMCommandContext ctx, SlingHttpServletRequest request, SlingHttpServletResponse response, PageManager pageManager)
Peformas the command. If the response is handled by the command it self, it must returnnull
.- Parameters:
ctx
- the command context. i.e. the command servlet.request
- the servlet requestresponse
- the servlet responsepageManager
- the page manager- Returns:
- the html response or
null
.
-
-