Module sharingPluginPlatform
Class SearchInputMetadataDTO
java.lang.Object
org.codeability.sharing.plugins.api.search.SearchInputMetadataDTO
transfers the queried meta data
- Author:
- Michael Breu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiona string containing the keywordsthe licensethe programming languagebooleanchecks for minimal meta datavoidsetter for authorvoidsets the formatvoidsetKeyword(String keyword) voidsetLearningResourceType(String learningResourceType) voidsetLicense(String license) voidsetNaturalLanguage(List<String> naturalLanguages) voidsetParentId(String parentId) voidsetProgrammingLanguage(String programmingLanguage) toString()to string
-
Constructor Details
-
SearchInputMetadataDTO
public SearchInputMetadataDTO()just for JSON -
SearchInputMetadataDTO
public SearchInputMetadataDTO(String programmingLanguage, String keyword, List<String> naturalLanguage, String license, String author, String format) a convenience constructor.- Parameters:
programmingLanguage- the programmingLanguagekeyword- the keywordsnaturalLanguage- the list of requested languageslicense- the license(s)author- the authorformat- the format
-
-
Method Details
-
getFormat
- Returns:
- the format
-
setFormat
sets the format- Parameters:
format- the format
-
hasMetadataInput
public boolean hasMetadataInput()checks for minimal meta data- Returns:
- the meta data
-
getProgrammingLanguage
the programming language- Returns:
- the programming language
-
setProgrammingLanguage
- Parameters:
programmingLanguage- the programming language
-
getKeyword
a string containing the keywords- Returns:
- a string containing the keywords
-
setKeyword
- Parameters:
keyword- a string containing the keywords
-
getNaturalLanguage
- Returns:
- the selected natural languages
-
getNaturalLanguagesAsString
- Returns:
- the selected natural languages
-
setNaturalLanguage
- Parameters:
naturalLanguages- the list of selected natural languages
-
getLicense
the license- Returns:
- the requested license
-
setLicense
- Parameters:
license- the requested license
-
getAuthor
- Returns:
- the author
-
setAuthor
setter for author- Parameters:
author- the author
-
getLearningResourceType
-
setLearningResourceType
-
getParentId
- Returns:
- the parentId
-
setParentId
- Parameters:
parentId- the parentId to set
-
toString
to string
-