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

public class SearchInputDTO extends Object
DTO for search queries
  • Konstruktordetails

    • 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
      Parameter:
      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
  • Methodendetails

    • getFulltextQuery

      public String getFulltextQuery()
      returns the full text query
      Gibt zurück:
      the full text query
    • setFulltextQuery

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

      public SearchInputMetadataDTO getMetadata()
      returns the meta data
      Gibt zurück:
      the meta data
    • setMetadata

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

      @Deprecated public List<String> getSelectedRepository()
      Veraltet.
      not useful
      returns the selected repository.
      Gibt zurück:
      the selected repository
    • setSelectedRepository

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

      @Deprecated public List<String> getSelectedUniversity()
      Veraltet.
      not used
      gets the selected university
      Gibt zurück:
      the selected university
    • setSelectedUniversity

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

      @Deprecated public List<String> getSelectedFileFormat()
      Veraltet.
      not used
      Gibt zurück:
      the selected file format
    • setSelectedFileFormat

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

      public int getPage()
      gets the requested page
      Gibt zurück:
      the requested page
    • setPage

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

      public int getPageSize()
      Gibt zurück:
      the page size
    • setPageSize

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

      public boolean hasMetadataInput()
      just a convenience method.
      Gibt zurück:
      true, iff metadata has input.
    • getOrdering

      public SearchOrdering getOrdering()
    • setOrdering

      public void setOrdering(SearchOrdering ordering)
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object