Module sharingPluginPlatform
Class SearchInputDTO
java.lang.Object
org.codeability.sharing.plugins.api.search.SearchInputDTO
DTO for search queries
-
Constructor Summary
ConstructorsConstructorDescriptionempty constructor for JSON.SearchInputDTO(String fulltextQuery, SearchInputMetadataDTO metadata, List<String> selectedRepository, List<String> selectedUniversity, List<String> selectedFileFormat, int page) convenience constructor for search input -
Method Summary
Modifier and TypeMethodDescriptionreturns the full text queryreturns the meta dataintgetPage()gets the requested pageintDeprecated.not usedDeprecated.not usefulDeprecated.not usedbooleanjust a convenience method.voidsetFulltextQuery(String fulltextQuery) sets the full text queryvoidsetMetadata(SearchInputMetadataDTO metadata) voidsetOrdering(SearchOrdering ordering) voidsetPage(int page) sets the requested pagevoidsetPageSize(int pageSize) voidsetSelectedFileFormat(List<String> selectedFileFormat) Deprecated.not usedvoidsetSelectedRepository(List<String> selectedRepository) Deprecated.not usefulvoidsetSelectedUniversity(List<String> selectedUniversity) Deprecated.not usedtoString()
-
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 querymetadata- the meta dataselectedRepository- the selected repositoryselectedUniversity- the selected universityselectedFileFormat- the selected file formatpage- the page
-
-
Method Details
-
getFulltextQuery
returns the full text query- Returns:
- the full text query
-
setFulltextQuery
sets the full text query- Parameters:
fulltextQuery- the full text query
-
getMetadata
returns the meta data- Returns:
- the meta data
-
setMetadata
- Parameters:
metadata- the metadata to set
-
getSelectedRepository
Deprecated.not usefulreturns the selected repository.- Returns:
- the selected repository
-
setSelectedRepository
Deprecated.not usefulsets the selected repository.- Parameters:
selectedRepository- the selected repository
-
getSelectedUniversity
Deprecated.not usedgets the selected university- Returns:
- the selected university
-
setSelectedUniversity
Deprecated.not usedsets the selected university- Parameters:
selectedUniversity- the selected university
-
getSelectedFileFormat
Deprecated.not used- Returns:
- the selected file format
-
setSelectedFileFormat
Deprecated.not usedsets 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
-
setOrdering
-
toString
-