Class SearchRequestDTO

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

public class SearchRequestDTO extends Object
this class is combining credentials and the search query.
Author:
Michael Breu
  • Constructor Details

    • SearchRequestDTO

      public SearchRequestDTO(UserPrincipal userPrincipal, SearchInputDTO query)
      comfort constructor with selected initialization values
      Parameters:
      userPrincipal - the user principal
      query - the query
    • SearchRequestDTO

      public SearchRequestDTO()
      trivial constructor for JSON
  • Method Details

    • getQuery

      public SearchInputDTO getQuery()
      Returns:
      the search query
    • setQuery

      public void setQuery(SearchInputDTO query)
      Parameters:
      query - the query to set
    • getUserPrincipal

      public UserPrincipal getUserPrincipal()
      Returns:
      the user principal for which the retrieval should be done
    • setUserPrincipal

      public void setUserPrincipal(UserPrincipal userPrincipal)
      Parameters:
      userPrincipal - the userPrincipal to set