public class CmsSearchReplaceSettings extends java.lang.Object implements java.io.Serializable
| Constructor and Description |
|---|
CmsSearchReplaceSettings()
Bean constructor with cms object for path validation.
|
| Modifier and Type | Method and Description |
|---|---|
CmsResource |
getElementResource()
Get element to search for.
|
java.lang.String |
getLocale()
Returns the locale.
|
java.lang.String |
getMessage() |
java.util.List<java.lang.String> |
getPaths() |
java.lang.String |
getProject() |
CmsPropertyDefinition |
getProperty()
Get property.
|
java.lang.String |
getQuery()
Returns the query.
|
java.lang.String |
getReplacepattern() |
java.lang.String |
getResources() |
java.lang.String[] |
getResourcesArray()
Returns the resources paths in an array.
|
java.lang.String |
getSearchpattern() |
java.lang.String |
getSiteRoot()
Returns the site root.
|
java.lang.String |
getSource()
Returns the source.
|
CmsSourceSearchForm.SearchType |
getType()
Returns the search type.
|
java.lang.String |
getTypes()
Returns the type.
|
java.lang.String[] |
getTypesArray()
Returns the type.
|
java.lang.String |
getXpath()
Returns the xpath.
|
boolean |
ignoreSubSites()
Should subsites be ignored?
|
boolean |
isForceReplace()
Returns the force replace flag, if
true the replacement
will also be performed if the replacement String is empty. |
boolean |
isOnlyContentValues()
Returns if only content values should be searched and replaced.
|
boolean |
isSolrSearch()
Returns
true if Solr index is selected and a query was entered. |
static java.lang.String |
replaceElementInPagePattern(CmsResource resource)
Replace element pattern.
|
static java.lang.String |
searchElementInPagePattern(CmsResource resource)
Search element in xml page pattern.
|
void |
setElementResource(CmsResource resource)
Set Element to search for.
|
void |
setForceReplace(boolean forceReplace)
Sets the force replace flag.
|
void |
setIgnoreSubSites(boolean ignore)
Set if subsites should be ignored.
|
void |
setLocale(java.lang.String locale)
Sets the locale.
|
void |
setMessage(java.lang.String message) |
void |
setOnlyContentValues(boolean onlyContentValue)
Sets if only content values should be searched and replaced.
|
void |
setPaths(java.util.List<java.lang.String> paths)
Sets the paths.
|
void |
setProject(java.lang.String project) |
void |
setProperty(CmsPropertyDefinition value)
Sets the property.
|
void |
setQuery(java.lang.String query)
Sets the query.
|
void |
setReplacepattern(java.lang.String replacepattern)
Sets the replace pattern.
|
void |
setResources(java.lang.String resources) |
void |
setSearchpattern(java.lang.String searchpattern)
Sets the search pattern.
|
void |
setSiteRoot(java.lang.String siteRoot)
Sets the site root.
|
void |
setSource(java.lang.String source)
Sets the source.
|
void |
setType(CmsSourceSearchForm.SearchType type)
Sets the search type.
|
void |
setTypes(java.lang.String types)
Sets the type.
|
void |
setXpath(java.lang.String xpath)
Sets the xpath.
|
public CmsSearchReplaceSettings()
public static java.lang.String replaceElementInPagePattern(CmsResource resource)
resource - Resource to replacepublic static java.lang.String searchElementInPagePattern(CmsResource resource)
resource - Resourcepublic CmsResource getElementResource()
public java.lang.String getLocale()
public java.lang.String getMessage()
public java.util.List<java.lang.String> getPaths()
public java.lang.String getProject()
public CmsPropertyDefinition getProperty()
public java.lang.String getQuery()
public java.lang.String getReplacepattern()
public java.lang.String getResources()
public java.lang.String[] getResourcesArray()
public java.lang.String getSearchpattern()
public java.lang.String getSiteRoot()
public java.lang.String getSource()
public CmsSourceSearchForm.SearchType getType()
public java.lang.String getTypes()
public java.lang.String[] getTypesArray()
public java.lang.String getXpath()
public boolean ignoreSubSites()
public boolean isForceReplace()
true the replacement
will also be performed if the replacement String is empty.public boolean isOnlyContentValues()
public boolean isSolrSearch()
true if Solr index is selected and a query was entered.true if Solr index is selected and a query was enteredpublic void setElementResource(CmsResource resource)
resource - CmsResourcepublic void setForceReplace(boolean forceReplace)
forceReplace - the force replace flag to setpublic void setIgnoreSubSites(boolean ignore)
ignore - booleanpublic void setLocale(java.lang.String locale)
locale - the locale to setpublic void setMessage(java.lang.String message)
message - the message to setpublic void setOnlyContentValues(boolean onlyContentValue)
onlyContentValue - if only content values should be searched and replacedpublic void setPaths(java.util.List<java.lang.String> paths)
paths - the paths to setpublic void setProject(java.lang.String project)
project - the project to work inpublic void setProperty(CmsPropertyDefinition value)
value - CmsPropertyDefinitionpublic void setQuery(java.lang.String query)
query - the query to setpublic void setReplacepattern(java.lang.String replacepattern)
replacepattern - the replace patternpublic void setResources(java.lang.String resources)
resources - the resources to setpublic void setSearchpattern(java.lang.String searchpattern)
searchpattern - the search patternpublic void setSiteRoot(java.lang.String siteRoot)
siteRoot - the site root to setpublic void setSource(java.lang.String source)
source - the source to setpublic void setType(CmsSourceSearchForm.SearchType type)
type - the search type to setpublic void setTypes(java.lang.String types)
types - the type to setpublic void setXpath(java.lang.String xpath)
xpath - the xpath to set