Class CmsSearchReplaceSettings

  • All Implemented Interfaces:
    java.io.Serializable

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

    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • replaceElementInPagePattern

        public static java.lang.String replaceElementInPagePattern​(CmsResource resource)
        Replace element pattern.

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

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

        Parameters:
        resource - Resource
        Returns:
        String regex
      • 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
      • getSiteRoot

        public java.lang.String getSiteRoot()
        Returns the site root.

        Returns:
        the siteRoot
      • 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
      • 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
      • 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​(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
      • setSiteRoot

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

        Parameters:
        siteRoot - the site root to set
      • 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