Package com.day.cq.wcm.api.commands
Interface WCMCommand
public interface WCMCommand
WCMCommand...-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringadjust (for heavy move)static final Stringarchive flagstatic final Stringbefore paramstatic final Stringdate to restore tostatic final Stringdestination namestatic final Stringdestination parent pathstatic final Stringdestination pathstatic final Stringtitle of resource after movestatic final Stringforce flagstatic final Stringintegrity (for heavy move)static final Stringpage labelstatic final Stringpage titlestatic final Stringparent pathstatic final Stringdefault path parameter namestatic final Stringpublish (for heavy move)static final Stringversion namestatic final Stringshallow list flagstatic final Stringshallow flagstatic final Stringsource path Liststatic final Stringsource pathstatic final Stringtemplate path -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the command.performCommand(WCMCommandContext ctx, SlingHttpServletRequest request, SlingHttpServletResponse response, PageManager pageManager) Peformas the command.
-
Field Details
-
PATH_PARAM
default path parameter name- See Also:
-
PARENT_PATH_PARAM
parent path- See Also:
-
SRC_PATH_PARAM
source path- See Also:
-
SRC_PATH_LIST_PARAM
source path List- See Also:
-
DEST_PARENT_PATH_PARAM
destination parent path- See Also:
-
DEST_PATH_PARAM
destination path- See Also:
-
DEST_NAME_PARAM
destination name- See Also:
-
ADJUST_PARAM
adjust (for heavy move)- See Also:
-
PUBLISH_PARAM
publish (for heavy move)- See Also:
-
INTEGRITY_PARAM
integrity (for heavy move)- See Also:
-
BEFORE_PARAM
before param- See Also:
-
PAGE_LABEL_PARAM
page label- See Also:
-
PAGE_TITLE_PARAM
page title- See Also:
-
TEMPLATE_PARAM
template path- See Also:
-
SHALLOW_PARAM
shallow flag- See Also:
-
ARCHIVE_PARAM
archive flag- See Also:
-
SHALLOW_LIST_PARAM
shallow list flag- See Also:
-
FORCE_PARAM
force flag- See Also:
-
REVISION_ID_PARAM
version name- See Also:
-
DATE_PARAM
date to restore to- See Also:
-
DEST_TITLE_PARAM
title of resource after move- See Also:
-
-
Method Details
-
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.
-