com.day.cq.wcm.core.impl.commands
Class LanguageCopyCommand

java.lang.Object
  extended by com.day.cq.wcm.core.impl.commands.LanguageCopyCommand
All Implemented Interfaces:
WCMCommand

public class LanguageCopyCommand
extends Object
implements WCMCommand

LanguageCopyCommand Copy pages according to language infos send from the LanguageCopyDialog.js Post Params: "path" : contains the language root path. e.g. path = /content/geometrixx $relPath : contains the copy info for the relative path. eg: de/customers=en+ the values of the language infos contains the language code from where the pages should be copied. if they have a '+' appended, the entire subtree needs to be copied. if they are equal to '-', the page does not need to be copied. the pages are created one-by-one, saving the content after each one.


Field Summary
 
Fields inherited from interface com.day.cq.wcm.core.impl.commands.WCMCommand
ADJUST_PARAM, BEFORE_PARAM, DATE_PARAM, DEST_NAME_PARAM, DEST_PARENT_PATH_PARAM, DEST_PATH_PARAM, PAGE_LABEL_PARAM, PAGE_TITLE_PARAM, PARENT_PATH_PARAM, PATH_PARAM, PUBLISH_PARAM, REVISION_ID_PARAM, SHALLOW_PARAM, SRC_PATH_PARAM, TEMPLATE_PARAM
 
Constructor Summary
LanguageCopyCommand()
           
 
Method Summary
 String getCommandName()
           
 org.apache.sling.api.servlets.HtmlResponse performCommand(WCMCommandServlet ctx, org.apache.sling.api.SlingHttpServletRequest request, PageManager pageManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageCopyCommand

public LanguageCopyCommand()
Method Detail

getCommandName

public String getCommandName()
Specified by:
getCommandName in interface WCMCommand

performCommand

public org.apache.sling.api.servlets.HtmlResponse performCommand(WCMCommandServlet ctx,
                                                                 org.apache.sling.api.SlingHttpServletRequest request,
                                                                 PageManager pageManager)
Specified by:
performCommand in interface WCMCommand


Copyright © 2008 Day Management AG. All Rights Reserved.