java.lang.Object
org.codeability.sharing.plugins.api.search.SearchInputDTO

public class SearchInputDTO extends Object
DTO for search queries
  • Constructor Details

    • SearchInputDTO

      public SearchInputDTO()
      empty constructor for JSON.
    • SearchInputDTO

      public SearchInputDTO(String fulltextQuery, SearchInputMetadataDTO metadata, List<String> selectedRepository, List<String> selectedUniversity, List<String> selectedFileFormat, int page)
      convenience constructor for search input
      Parameters:
      fulltextQuery - the full text query
      metadata - the meta data
      selectedRepository - the selected repository
      selectedUniversity - the selected university
      selectedFileFormat - the selected file format
      page - the page
  • Method Details

    • getFulltextQuery

      public String getFulltextQuery()
      returns the full text query
      Returns:
      the full text query
    • setFulltextQuery

      public void setFulltextQuery(String fulltextQuery)
      sets the full text query
      Parameters:
      fulltextQuery - the full text query
    • getMetadata

      public SearchInputMetadataDTO getMetadata()
      returns the meta data
      Returns:
      the meta data
    • setMetadata

      public void setMetadata(SearchInputMetadataDTO metadata)
      Parameters:
      metadata - the metadata to set
    • getSelectedRepository

      @Deprecated public List<String> getSelectedRepository()
      Deprecated.
      not useful
      returns the selected repository.
      Returns:
      the selected repository
    • setSelectedRepository

      @Deprecated public void setSelectedRepository(List<String> selectedRepository)
      Deprecated.
      not useful
      sets the selected repository.
      Parameters:
      selectedRepository - the selected repository
    • getSelectedUniversity

      @Deprecated public List<String> getSelectedUniversity()
      Deprecated.
      not used
      gets the selected university
      Returns:
      the selected university
    • setSelectedUniversity

      @Deprecated public void setSelectedUniversity(List<String> selectedUniversity)
      Deprecated.
      not used
      sets the selected university
      Parameters:
      selectedUniversity - the selected university
    • getSelectedFileFormat

      @Deprecated public List<String> getSelectedFileFormat()
      Deprecated.
      not used
      Returns:
      the selected file format
    • setSelectedFileFormat

      @Deprecated public void setSelectedFileFormat(List<String> selectedFileFormat)
      Deprecated.
      not used
      sets the selected file format
      Parameters:
      selectedFileFormat - the selected file format
    • getPage

      public int getPage()
      gets the requested page
      Returns:
      the requested page
    • setPage

      public void setPage(int page)
      sets the requested page
      Parameters:
      page - the requested page
    • getPageSize

      public int getPageSize()
      Returns:
      the page size
    • setPageSize

      public void setPageSize(int pageSize)
      Parameters:
      pageSize - the page size to set
    • hasMetadataInput

      public boolean hasMetadataInput()
      just a convenience method.
      Returns:
      true, iff metadata has input.
    • getOrdering

      public SearchOrdering getOrdering()
    • setOrdering

      public void setOrdering(SearchOrdering ordering)
    • toString

      public String toString()
      Overrides:
      toString in class Object