Class CmsSearchReplaceSettings
- java.lang.Object
-
- org.opencms.workplace.tools.searchindex.sourcesearch.CmsSearchReplaceSettings
-
public class CmsSearchReplaceSettings extends java.lang.Object
Settings bean for the dialog.- Since:
- 7.5.3
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTRIBUTE_NAME_SOURCESEARCH_RESULT_LIST
The content search result list attribute name in the session.static java.lang.String
VFS
Constant for vfs.
-
Constructor Summary
Constructors Constructor Description CmsSearchReplaceSettings()
Bean constructor with cms object for path validation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocale()
Returns the locale.java.lang.String
getMessage()
java.util.List<java.lang.String>
getPaths()
java.lang.String
getProject()
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
getSource()
Returns the source.java.lang.String
getTypes()
Returns the type.java.lang.String[]
getTypesArray()
Returns the type.java.lang.String
getXpath()
Returns the xpath.boolean
isForceReplace()
Returns the force replace flag, iftrue
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()
Returnstrue
if Solr index is selected and a query was entered.void
setForceReplace(boolean forceReplace)
Sets the force replace flag.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
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
setSource(java.lang.String source)
Sets the source.void
setTypes(java.lang.String types)
Sets the type.void
setXpath(java.lang.String xpath)
Sets the xpath.
-
-
-
Field Detail
-
ATTRIBUTE_NAME_SOURCESEARCH_RESULT_LIST
public static final java.lang.String ATTRIBUTE_NAME_SOURCESEARCH_RESULT_LIST
The content search result list attribute name in the session.- See Also:
- Constant Field Values
-
VFS
public static final java.lang.String VFS
Constant for vfs.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsSearchReplaceSettings
public CmsSearchReplaceSettings()
Bean constructor with cms object for path validation.
-
-
Method Detail
-
getLocale
public java.lang.String getLocale()
Returns the locale.- Returns:
- the locale
-
getMessage
public java.lang.String getMessage()
- Returns:
- the message
-
getPaths
public java.util.List<java.lang.String> getPaths()
- Returns:
- the paths
-
getProject
public java.lang.String getProject()
- Returns:
- the project
-
getQuery
public java.lang.String getQuery()
Returns the query.- Returns:
- the query
-
getReplacepattern
public java.lang.String getReplacepattern()
- Returns:
- the replace pattern
-
getResources
public java.lang.String getResources()
- Returns:
- the resources
-
getResourcesArray
public java.lang.String[] getResourcesArray()
Returns the resources paths in an array.- Returns:
- the resources paths in an array.
-
getSearchpattern
public java.lang.String getSearchpattern()
- Returns:
- the search pattern
-
getSource
public java.lang.String getSource()
Returns the source.- Returns:
- the source
-
getTypes
public java.lang.String getTypes()
Returns the type.- Returns:
- the type
-
getTypesArray
public java.lang.String[] getTypesArray()
Returns the type.- Returns:
- the type
-
getXpath
public java.lang.String getXpath()
Returns the xpath.- Returns:
- the xpath
-
isForceReplace
public boolean isForceReplace()
Returns the force replace flag, iftrue
the replacement will also be performed if the replacement String is empty.- Returns:
- the force replace flag
-
isOnlyContentValues
public boolean isOnlyContentValues()
Returns if only content values should be searched and replaced.- Returns:
- if only content values should be searched and replaced
-
isSolrSearch
public boolean isSolrSearch()
Returnstrue
if Solr index is selected and a query was entered.- Returns:
true
if Solr index is selected and a query was entered
-
setForceReplace
public void setForceReplace(boolean forceReplace)
Sets the force replace flag.- Parameters:
forceReplace
- the force replace flag to set
-
setLocale
public void setLocale(java.lang.String locale)
Sets the locale.- Parameters:
locale
- the locale to set
-
setMessage
public void setMessage(java.lang.String message)
- Parameters:
message
- the message to set
-
setOnlyContentValues
public void setOnlyContentValues(boolean onlyContentValue)
Sets if only content values should be searched and replaced.- Parameters:
onlyContentValue
- if only content values should be searched and replaced
-
setPaths
public void setPaths(java.util.List<java.lang.String> paths)
Sets the paths.- Parameters:
paths
- the paths to set
-
setProject
public void setProject(java.lang.String project)
- Parameters:
project
- the project to work in
-
setQuery
public void setQuery(java.lang.String query)
Sets the query.- Parameters:
query
- the query to set
-
setReplacepattern
public void setReplacepattern(java.lang.String replacepattern)
Sets the replace pattern.- Parameters:
replacepattern
- the replace pattern
-
setResources
public void setResources(java.lang.String resources)
- Parameters:
resources
- the resources to set
-
setSearchpattern
public void setSearchpattern(java.lang.String searchpattern)
Sets the search pattern.- Parameters:
searchpattern
- the search pattern
-
setSource
public void setSource(java.lang.String source)
Sets the source.- Parameters:
source
- the source to set
-
setTypes
public void setTypes(java.lang.String types)
Sets the type.- Parameters:
types
- the type to set
-
setXpath
public void setXpath(java.lang.String xpath)
Sets the xpath.- Parameters:
xpath
- the xpath to set
-
-