Package com.day.cq.wcm.api.commands
Interface WCMCommand
-
public interface WCMCommandWCMCommand...
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADJUST_PARAMadjust (for heavy move)static java.lang.StringARCHIVE_PARAMarchive flagstatic java.lang.StringBEFORE_PARAMbefore paramstatic java.lang.StringDATE_PARAMdate to restore tostatic java.lang.StringDEST_NAME_PARAMdestination namestatic java.lang.StringDEST_PARENT_PATH_PARAMdestination parent pathstatic java.lang.StringDEST_PATH_PARAMdestination pathstatic java.lang.StringDEST_TITLE_PARAMtitle of resource after movestatic java.lang.StringFORCE_PARAMforce flagstatic java.lang.StringINTEGRITY_PARAMintegrity (for heavy move)static java.lang.StringPAGE_LABEL_PARAMpage labelstatic java.lang.StringPAGE_TITLE_PARAMpage titlestatic java.lang.StringPARENT_PATH_PARAMparent pathstatic java.lang.StringPATH_PARAMdefault path parameter namestatic java.lang.StringPUBLISH_PARAMpublish (for heavy move)static java.lang.StringREVISION_ID_PARAMversion namestatic java.lang.StringSHALLOW_LIST_PARAMshallow list flagstatic java.lang.StringSHALLOW_PARAMshallow flagstatic java.lang.StringSRC_PATH_LIST_PARAMsource path Liststatic java.lang.StringSRC_PATH_PARAMsource pathstatic java.lang.StringTEMPLATE_PARAMtemplate path
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCommandName()Returns the name of the command.HtmlResponseperformCommand(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.
-
-