|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.context.JcmsContext com.jalios.jcms.context.JcmsJspContext com.jalios.jcms.handler.JcmsFormHandler com.jalios.jcms.caddy.AbstractCaddyManagerHandler
public abstract class AbstractCaddyManagerHandler
This form handler is the super class of the formhandler class to process Caddy Manager actions.
Field Summary | |
---|---|
protected boolean |
applyInEmptyFields
|
protected boolean |
deleteDataExtension
|
protected boolean |
doSearchAndReplace
|
protected boolean |
ignoreIntegrityCheck
|
protected String |
opClearCaddy
|
protected String |
opDelete
|
protected int |
openTab
|
protected String |
opPreview
|
protected String |
opRemoveCaddy
|
protected String |
opUpdate
|
static int |
PREVIOUS_TAB
|
protected ArrayList<String> |
replaceLangList
|
protected String |
replacePattern
|
static String |
REVISION
|
protected String |
searchPattern
|
protected boolean |
useRegExp
|
Fields inherited from class com.jalios.jcms.handler.JcmsFormHandler |
---|
contextMap, editFieldSet, noRedirect, noSendRedirect, popupEdition, redirect, redirectOnClosePopup, workspaceForced |
Fields inherited from class com.jalios.jcms.context.JcmsJspContext |
---|
AJAX_REQUEST_ATTRIBUTES, BODY_HEADER, CSS_HEADER, cssboMap, cssfoMap, CUSTOM_HEADER, editIcon, HTTPEQUIV_HEADER, httpequivMap, HTTPNAME_HEADER, httpnameMap, initEditIcon, JAVASCRIPT_CODE_SET_ATTRIBUTE, JAVASCRIPT_SET_ATTRIBUTE, jsboSet, jsfoSet, out, pageContext, SHOW_EDIT_ICON, STYLE_HEADER |
Fields inherited from class com.jalios.jcms.context.JcmsContext |
---|
browser, caddy, channel, inFO, initDone, initWorkspace, isAdmin, isAjaxRequest, isDBMember, isDebug, isLogged, loggedMember, request, response, userCountry, userLang, userLocale, workspace |
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Constructor Summary | |
---|---|
AbstractCaddyManagerHandler()
|
Method Summary | |
---|---|
protected boolean |
deleteDataExtension(Data data,
HashMap controllerContext)
Delete the data extension of the given data, if asked. |
protected HashMap |
getControllerContext()
Build a controller context. |
int |
getOpenTab()
|
String |
getReplacePattern()
|
String |
getSearchPattern()
|
boolean |
isApplyingInEmptyFields()
|
boolean |
isDeletingDataExtension()
|
boolean |
isIgnoringIntegrityCheck()
|
boolean |
isPreviewing()
|
boolean |
isSearchAndReplaceLangSelected(String lang)
|
boolean |
isTabForced()
|
boolean |
isUsingRegExp()
|
protected boolean |
performRemoveCaddy()
|
String |
previewSearchAndReplace(String input,
String lang)
Preview the search and replace given a string and its language. |
boolean |
processAction()
Method to be implemented to check/validate action to be performed and process them. |
protected boolean |
processMultipleStatus(Data data,
ControllerStatus status)
Process the ControllerStatus: do nothing if OK, or send on forbidden, or accumulate warning message with the previous ones in the request. |
protected String |
searchAndReplace(String input)
Do a search and replace using previously specifed patterns (if specified and validated). |
void |
setApplyInEmptyFields(boolean applyInEmptyFields)
|
void |
setDeleteDataExtension(boolean deleteDataExtension)
|
void |
setIgnoreIntegrityCheck(boolean ignoreIntegrityCheck)
|
void |
setOpClearCaddy(String v)
|
void |
setOpDelete(String v)
|
void |
setOpenTab(int openTab)
|
void |
setOpPreview(String v)
|
void |
setOpRemoveCaddy(String v)
|
void |
setOpUpdate(String v)
|
void |
setRemoveIds(String[] rids)
Sets the ids of Data to remove from caddy. |
void |
setReplacePattern(String replacePattern)
|
void |
setSearchAndReplaceLang(String[] langs)
|
void |
setSearchPattern(String searchPattern)
|
void |
setUseRegExp(boolean useRegExp)
|
protected boolean |
validateRemoveCaddy()
|
protected boolean |
validateSearchAndReplace()
For search and replace to be functionnal, you MUST call this method once prior to calling searchAndReplace method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
public static final int PREVIOUS_TAB
protected int openTab
protected String opUpdate
protected String opDelete
protected String opClearCaddy
protected String opRemoveCaddy
protected String opPreview
protected String searchPattern
protected String replacePattern
protected boolean useRegExp
protected boolean applyInEmptyFields
protected ArrayList<String> replaceLangList
protected boolean deleteDataExtension
protected boolean ignoreIntegrityCheck
protected boolean doSearchAndReplace
Constructor Detail |
---|
public AbstractCaddyManagerHandler()
Method Detail |
---|
public boolean processAction() throws IOException
JcmsFormHandler
Default implementation is to return false. No need to call super method.
This method may NOT be invoked at all if security validation are not met.
You must ensure your handler and JSP can work properly without any code invoked
in this method.
processAction
in class JcmsFormHandler
IOException
protected HashMap getControllerContext()
JcmsFormHandler
getControllerContext
in class JcmsFormHandler
protected final boolean processMultipleStatus(Data data, ControllerStatus status) throws IOException
data
- the Data that is being manipulatedstatus
- the ControllerStatus to be processed
IOException
protected final boolean validateSearchAndReplace()
protected final String searchAndReplace(String input)
input
- the string to be modified
protected final boolean deleteDataExtension(Data data, HashMap controllerContext) throws IOException
data
- the data of which extension will be removed.controllerContext
- the controller context used for checkDelete and performDelete method.
IOException
protected final boolean validateRemoveCaddy()
protected final boolean performRemoveCaddy() throws IOException
IOException
public final void setRemoveIds(String[] rids)
Data
to remove from caddy.
rids
- ids of publication
to remove from caddypublic final String previewSearchAndReplace(String input, String lang)
input
- the string to previewlang
- the language of the string (in order to apply specified option, if null, check is not done)
public final String getSearchPattern()
public final void setSearchPattern(String searchPattern)
public final String getReplacePattern()
public final void setReplacePattern(String replacePattern)
public final void setUseRegExp(boolean useRegExp)
public final boolean isUsingRegExp()
public final void setApplyInEmptyFields(boolean applyInEmptyFields)
public final boolean isApplyingInEmptyFields()
public final void setSearchAndReplaceLang(String[] langs)
public final boolean isSearchAndReplaceLangSelected(String lang)
public final void setDeleteDataExtension(boolean deleteDataExtension)
public final boolean isDeletingDataExtension()
public final void setIgnoreIntegrityCheck(boolean ignoreIntegrityCheck)
public final boolean isIgnoringIntegrityCheck()
public final void setOpenTab(int openTab)
public final int getOpenTab()
public final boolean isTabForced()
public final void setOpUpdate(String v)
public final void setOpDelete(String v)
public final void setOpRemoveCaddy(String v)
public final void setOpClearCaddy(String v)
public final void setOpPreview(String v)
public final boolean isPreviewing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |