Class CmsSearchReplaceSettings

java.lang.Object
org.opencms.ui.apps.search.CmsSearchReplaceSettings
All Implemented Interfaces:
Serializable

public class CmsSearchReplaceSettings extends Object implements Serializable
Settings bean for the dialog.

See Also:
  • Constructor Details

  • Method Details

    • replaceElementInPagePattern

      Replace element pattern.

      Parameters:
      resource - Resource to replace
      Returns:
      String regex
    • searchElementInPagePattern

      public static String searchElementInPagePattern(CmsResource resource)
      Search element in xml page pattern.

      Parameters:
      resource - Resource
      Returns:
      String regex
    • getElementResource

      Get element to search for.

      Returns:
      CmsResource
    • getLocale

      public String getLocale()
      Returns the locale.

      Returns:
      the locale
    • getMessage

      public String getMessage()
      Returns:
      the message
    • getPaths

      public List<String> getPaths()
      Returns:
      the paths
    • getProject

      public String getProject()
      Returns:
      the project
    • getProperty

      Get property.

      Returns:
      CmsPropertyDefinition
    • getQuery

      public String getQuery()
      Returns the query.

      Returns:
      the query
    • getReplacepattern

      Returns:
      the replace pattern
    • getResources

      public String getResources()
      Returns:
      the resources
    • getResourcesArray

      Returns the resources paths in an array.

      Returns:
      the resources paths in an array.
    • getSearchpattern

      Returns:
      the search pattern
    • getSiteRoot

      public String getSiteRoot()
      Returns the site root.

      Returns:
      the siteRoot
    • getSource

      public String getSource()
      Returns the source.

      Returns:
      the source
    • getType

      Returns the search type.

      Returns:
      the search type
    • getTypes

      public String getTypes()
      Returns the resource type(s).

      Returns:
      the type
    • getTypesArray

      public String[] getTypesArray()
      Returns the type.

      Returns:
      the type
    • getXpath

      public String getXpath()
      Returns the xpath.

      Returns:
      the xpath
    • ignoreSubSites

      public boolean ignoreSubSites()
      Should subsites be ignored?
      Returns:
      boolean
    • isForceReplace

      public boolean isForceReplace()
      Returns the force replace flag, if true 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()
      Returns true if Solr index is selected and a query was entered.

      Returns:
      true if Solr index is selected and a query was entered
    • setElementResource

      public void setElementResource(CmsResource resource)
      Set Element to search for.

      Parameters:
      resource - CmsResource
    • setForceReplace

      public void setForceReplace(boolean forceReplace)
      Sets the force replace flag.

      Parameters:
      forceReplace - the force replace flag to set
    • setIgnoreSubSites

      public void setIgnoreSubSites(boolean ignore)
      Set if subsites should be ignored.

      Parameters:
      ignore - boolean
    • setLocale

      public void setLocale(String locale)
      Sets the locale.

      Parameters:
      locale - the locale to set
    • setMessage

      public void setMessage(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(List<String> paths)
      Sets the paths.

      Parameters:
      paths - the paths to set
    • setProject

      public void setProject(String project)
      Parameters:
      project - the project to work in
    • setProperty

      public void setProperty(CmsPropertyDefinition value)
      Sets the property.

      Parameters:
      value - CmsPropertyDefinition
    • setQuery

      public void setQuery(String query)
      Sets the query.

      Parameters:
      query - the query to set
    • setReplacepattern

      public void setReplacepattern(String replacepattern)
      Sets the replace pattern.

      Parameters:
      replacepattern - the replace pattern
    • setResources

      public void setResources(String resources)
      Parameters:
      resources - the resources to set
    • setSearchpattern

      public void setSearchpattern(String searchpattern)
      Sets the search pattern.

      Parameters:
      searchpattern - the search pattern
    • setSiteRoot

      public void setSiteRoot(String siteRoot)
      Sets the site root.

      Parameters:
      siteRoot - the site root to set
    • setSource

      public void setSource(String source)
      Sets the source.

      Parameters:
      source - the source to set
    • setType

      Sets the search type.

      Parameters:
      type - the search type to set
    • setTypes

      public void setTypes(String types)
      Sets the resource type(s).

      Parameters:
      types - the type to set
    • setXpath

      public void setXpath(String xpath)
      Sets the xpath.

      Parameters:
      xpath - the xpath to set