Class SubjectStatusProcessor
java.lang.Object
edu.internet2.middleware.subject.provider.SubjectStatusProcessor
process a subject status
-
Constructor Summary
ConstructorsConstructorDescriptionSubjectStatusProcessor(String originalQuery, SubjectStatusConfig subjectStatusConfig) construct with query and the config -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappend a string to a stringbuilder and a space in between if necessaryif the originalQuery didnt have status info, and there was a default, then put that herestatus value that the user is querying onafter the status part is stripped outbooleanif the user wants equals or notEqualsvoidprocess the search string.take in a search string, and return the search status resultvoidsetOriginalQuery(String originalQuery1) original query from uservoidsetSubjectStatusConfig(SubjectStatusConfig subjectStatusConfig1)
-
Constructor Details
-
SubjectStatusProcessor
construct with query and the config- Parameters:
originalQuery-subjectStatusConfig-
-
-
Method Details
-
appendWithSpace
append a string to a stringbuilder and a space in between if necessary- Parameters:
a- builder to append tob- string to add
-
getStrippedQuery
after the status part is stripped out- Returns:
- stripped query
-
getStatusValueFromUser
status value that the user is querying on- Returns:
- status
-
isEqualsFromUser
public boolean isEqualsFromUser()if the user wants equals or notEquals- Returns:
- is equals
-
setOriginalQuery
original query from user- Parameters:
originalQuery1-
-
setSubjectStatusConfig
- Parameters:
subjectStatusConfig1-
-
getQueryWithDefault
if the originalQuery didnt have status info, and there was a default, then put that here- Returns:
- originalQuery
-
processOriginalQuery
public void processOriginalQuery()process the search string. set the fields in this object or status value, isequals, and stripped query- Parameters:
searchString-
-
getOriginalQuery
-
processSearch
take in a search string, and return the search status result- Parameters:
searchString-- Returns:
- the search status result
-