Package com.day.cq.wcm.api.commands
Interface WCMCommand
-
public interface WCMCommandWCMCommand...
-
-
Field Summary
Fields Modifier and Type Field Description static StringADJUST_PARAMadjust (for heavy move)static StringARCHIVE_PARAMarchive flagstatic StringBEFORE_PARAMbefore paramstatic StringDATE_PARAMdate to restore tostatic StringDEST_NAME_PARAMdestination namestatic StringDEST_PARENT_PATH_PARAMdestination parent pathstatic StringDEST_PATH_PARAMdestination pathstatic StringDEST_TITLE_PARAMtitle of resource after movestatic StringFORCE_PARAMforce flagstatic StringINTEGRITY_PARAMintegrity (for heavy move)static StringPAGE_LABEL_PARAMpage labelstatic StringPAGE_TITLE_PARAMpage titlestatic StringPARENT_PATH_PARAMparent pathstatic StringPATH_PARAMdefault path parameter namestatic StringPUBLISH_PARAMpublish (for heavy move)static StringREVISION_ID_PARAMversion namestatic StringSHALLOW_LIST_PARAMshallow list flagstatic StringSHALLOW_PARAMshallow flagstatic StringSRC_PATH_LIST_PARAMsource path Liststatic StringSRC_PATH_PARAMsource pathstatic StringTEMPLATE_PARAMtemplate path
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 String PATH_PARAM
default path parameter name- See Also:
- Constant Field Values
-
PARENT_PATH_PARAM
static final String PARENT_PATH_PARAM
parent path- See Also:
- Constant Field Values
-
SRC_PATH_PARAM
static final String SRC_PATH_PARAM
source path- See Also:
- Constant Field Values
-
SRC_PATH_LIST_PARAM
static final String SRC_PATH_LIST_PARAM
source path List- See Also:
- Constant Field Values
-
DEST_PARENT_PATH_PARAM
static final String DEST_PARENT_PATH_PARAM
destination parent path- See Also:
- Constant Field Values
-
DEST_PATH_PARAM
static final String DEST_PATH_PARAM
destination path- See Also:
- Constant Field Values
-
DEST_NAME_PARAM
static final String DEST_NAME_PARAM
destination name- See Also:
- Constant Field Values
-
ADJUST_PARAM
static final String ADJUST_PARAM
adjust (for heavy move)- See Also:
- Constant Field Values
-
PUBLISH_PARAM
static final String PUBLISH_PARAM
publish (for heavy move)- See Also:
- Constant Field Values
-
INTEGRITY_PARAM
static final String INTEGRITY_PARAM
integrity (for heavy move)- See Also:
- Constant Field Values
-
BEFORE_PARAM
static final String BEFORE_PARAM
before param- See Also:
- Constant Field Values
-
PAGE_LABEL_PARAM
static final String PAGE_LABEL_PARAM
page label- See Also:
- Constant Field Values
-
PAGE_TITLE_PARAM
static final String PAGE_TITLE_PARAM
page title- See Also:
- Constant Field Values
-
TEMPLATE_PARAM
static final String TEMPLATE_PARAM
template path- See Also:
- Constant Field Values
-
SHALLOW_PARAM
static final String SHALLOW_PARAM
shallow flag- See Also:
- Constant Field Values
-
ARCHIVE_PARAM
static final String ARCHIVE_PARAM
archive flag- See Also:
- Constant Field Values
-
SHALLOW_LIST_PARAM
static final String SHALLOW_LIST_PARAM
shallow list flag- See Also:
- Constant Field Values
-
FORCE_PARAM
static final String FORCE_PARAM
force flag- See Also:
- Constant Field Values
-
REVISION_ID_PARAM
static final String REVISION_ID_PARAM
version name- See Also:
- Constant Field Values
-
DATE_PARAM
static final String DATE_PARAM
date to restore to- See Also:
- Constant Field Values
-
DEST_TITLE_PARAM
static final String DEST_TITLE_PARAM
title of resource after move- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommandName
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.
-
-