Interface WCMCommand


  • public interface WCMCommand
    WCMCommand...
    • 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
      • 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
      • 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 return null.
        Parameters:
        ctx - the command context. i.e. the command servlet.
        request - the servlet request
        response - the servlet response
        pageManager - the page manager
        Returns:
        the html response or null.