Class SearchOptions

java.lang.Object
com.logicaldoc.core.searchengine.SearchOptions
All Implemented Interfaces:
Serializable, Comparable<SearchOptions>
Direct Known Subclasses:
FolderSearchOptions, FulltextSearchOptions, TagSearchOptions

public class SearchOptions extends Object implements Serializable, Comparable<SearchOptions>
Search options
Author:
Michael Scholz
See Also:
  • Field Details

  • Constructor Details

    • SearchOptions

      public SearchOptions(int type)
      Creates a new instance of SearchOptions
      Parameters:
      type - the type of search
  • Method Details

    • getTemplate

      public Long getTemplate()
    • setTemplate

      public void setTemplate(Long template)
    • setExpression

      public void setExpression(String expr)
    • getType

      public int getType()
    • setType

      public void setType(int type)
    • read

      public static SearchOptions read(File file) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException
    • write

      public void write(File file) throws IOException
      Throws:
      IOException
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getMaxHits

      public int getMaxHits()
    • setMaxHits

      public void setMaxHits(int maxHits)
    • isFulltext

      public boolean isFulltext()
    • getExpression

      public String getExpression()
    • getUserId

      public long getUserId()
    • setUserId

      public void setUserId(long userId)
    • getTopOperator

      public String getTopOperator()
    • setTopOperator

      public void setTopOperator(String topOperator)
    • getFilterIds

      public Set<Long> getFilterIds()
    • setFilterIds

      public void setFilterIds(Set<Long> filterIds)
    • isCaseSensitive

      public boolean isCaseSensitive()
    • setCaseSensitive

      public void setCaseSensitive(boolean caseSensitive)
    • getFolderId

      public Long getFolderId()
    • setFolderId

      public void setFolderId(Long folderId)
    • isSearchInSubPath

      public boolean isSearchInSubPath()
    • setSearchInSubPath

      public void setSearchInSubPath(boolean searchInSubPath)
    • getTenantId

      public Long getTenantId()
    • setTenantId

      public void setTenantId(Long tenantId)
    • isRetrieveAliases

      public boolean isRetrieveAliases()
    • setRetrieveAliases

      public void setRetrieveAliases(boolean retrieveAliases)
    • getPage

      public int getPage()
    • setPage

      public void setPage(int page)
    • getParameters

      public Map<String,Object> getParameters()
    • setParameters

      public void setParameters(Map<String,Object> parameters)
    • compareTo

      public int compareTo(SearchOptions o)
      Specified by:
      compareTo in interface Comparable<SearchOptions>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object