| org.opencms.workplace.CmsReport org.opencms.workplace.tools.content.CmsElementRename
CmsElementRename | public class CmsElementRename extends CmsReport (Code) | | Provides methods for the change page element name dialog.
author: Armen Markarian version: $Revision: 1.18 $ since: 6.0.0 |
Constructor Summary | |
public | CmsElementRename(CmsJspActionElement jsp) | public | CmsElementRename(CmsJspActionElement jsp, CmsObject cms, String resource, String recursive, String template, String locale, String oldElement, String newElement, String removeEmptyElements, String validateNewElement) | public | CmsElementRename(PageContext context, HttpServletRequest req, HttpServletResponse res) |
ALL | final public static String ALL(Code) | | A constant representing the select option all templates.
|
DIALOG_TYPE | final public static String DIALOG_TYPE(Code) | | The dialog type.
|
PARAM_LOCALE | final public static String PARAM_LOCALE(Code) | | Request parameter name for the locale.
|
PARAM_NEW_ELEMENT | final public static String PARAM_NEW_ELEMENT(Code) | | Request parameter name for the new element name.
|
PARAM_OLD_ELEMENT | final public static String PARAM_OLD_ELEMENT(Code) | | Request parameter name for the old element name.
|
PARAM_RECURSIVE | final public static String PARAM_RECURSIVE(Code) | | Request parameter name for the recursive search.
|
PARAM_REMOVE_EMPTYELEMENTS | final public static String PARAM_REMOVE_EMPTYELEMENTS(Code) | | Request parameter name for the remove empty elements.
|
PARAM_TEMPLATE | final public static String PARAM_TEMPLATE(Code) | | Request parameter name for the template.
|
PARAM_VALIDATE_NEW_ELEMENT | final public static String PARAM_VALIDATE_NEW_ELEMENT(Code) | | Request parameter name for the validate new element.
|
CmsElementRename | public CmsElementRename(CmsJspActionElement jsp)(Code) | | Public constructor with JSP action element.
Parameters: jsp - an initialized JSP action element |
CmsElementRename | public CmsElementRename(CmsJspActionElement jsp, CmsObject cms, String resource, String recursive, String template, String locale, String oldElement, String newElement, String removeEmptyElements, String validateNewElement)(Code) | | Public constructor for testcase using.
Parameters: jsp - an initialized JSP action element Parameters: cms - the cms object Parameters: resource - the resource path Parameters: recursive - if true then do read recursive from the folder Parameters: template - the template Parameters: locale - the locale Parameters: oldElement - the old element name Parameters: newElement - the new element name Parameters: removeEmptyElements - if true then remove all invalid elements with no content Parameters: validateNewElement - if true then validate the new element before renaming |
actionRename | public void actionRename(I_CmsReport report)(Code) | | Renames the element name on the specified resources.
Parameters: report - the cms report |
actionReport | public void actionReport() throws JspException(Code) | | Performs the move report, will be called by the JSP page.
throws: JspException - if problems including sub-elements occur |
buildSelectLocales | public String buildSelectLocales(String attributes)(Code) | | Builds the html for the available locales select box.
Parameters: attributes - optional attributes for the <select> tag the html for the available locales select box |
buildSelectTemplates | public String buildSelectTemplates(String attributes)(Code) | | Builds the html for the template select box.
Parameters: attributes - optional attributes for the <select> tag the html for the template select box |
getErrorMessage | public String getErrorMessage()(Code) | | Returns the errorMessage.
the errorMessage |
getParamLocale | public String getParamLocale()(Code) | | Returns the paramLocale.
the paramLocale |
getParamNewElement | public String getParamNewElement()(Code) | | Returns the value of the newvalue parameter.
the value of the newvalue parameter |
getParamOldElement | public String getParamOldElement()(Code) | | Returns the value of the oldvalue parametere.
the value of the oldvalue parameter |
getParamRecursive | public String getParamRecursive()(Code) | | Returns the value of the recursive parameter.
the value of the recursive parameter |
getParamRemoveEmptyElements | public String getParamRemoveEmptyElements()(Code) | | Returns true if the user has set remove empty elements parameter; otherwise false.
true if the user has set remove empty elements parameter; otherwise false |
getParamTemplate | public String getParamTemplate()(Code) | | Returns the template.
the template |
getParamValidateNewElement | public String getParamValidateNewElement()(Code) | | Returns true if the user has set validate new element parameter; otherwise false. .
true if the user has set validate new element parameter; otherwise false |
setErrorMessage | public void setErrorMessage(String errorMessage)(Code) | | Sets the errorMessage.
Parameters: errorMessage - the errorMessage to set |
setParamLocale | public void setParamLocale(String paramLocale)(Code) | | Sets the locale.
Parameters: paramLocale - the locale to set |
setParamNewElement | public void setParamNewElement(String paramNewValue)(Code) | | Sets the value of the newvalue parameter.
Parameters: paramNewValue - the value of the newvalue parameter |
setParamOldElement | public void setParamOldElement(String paramOldValue)(Code) | | Sets the value of the oldvalue parameter.
Parameters: paramOldValue - the value of the oldvalue parameter |
setParamRecursive | public void setParamRecursive(String paramRecursive)(Code) | | Sets the value of the recursive parameter.
Parameters: paramRecursive - the value of the recursive parameter |
setParamRemoveEmptyElements | public void setParamRemoveEmptyElements(String paramRemoveEmptyElements)(Code) | | Sets the remove empty elements parameter to true or false.
Parameters: paramRemoveEmptyElements - the remove empty elements parameter to set |
setParamTemplate | public void setParamTemplate(String paramTemplate)(Code) | | Sets the param Template.
Parameters: paramTemplate - the template name to set |
setParamValidateNewElement | public void setParamValidateNewElement(String paramValidateNewElement)(Code) | | Sets the paramValidateNewElement.
Parameters: paramValidateNewElement - the validate new element parameter to set |
validateParameters | public void validateParameters()(Code) | | Does validate the request parameters and returns a buffer with error messages.
If there were no error messages, the buffer is empty.
|
|
|