Class SubjectStatusProcessor

java.lang.Object
edu.internet2.middleware.subject.provider.SubjectStatusProcessor

public class SubjectStatusProcessor extends Object
process a subject status
  • Constructor Details

    • SubjectStatusProcessor

      public SubjectStatusProcessor(String originalQuery, SubjectStatusConfig subjectStatusConfig)
      construct with query and the config
      Parameters:
      originalQuery -
      subjectStatusConfig -
  • Method Details

    • appendWithSpace

      public static void appendWithSpace(StringBuilder a, String b)
      append a string to a stringbuilder and a space in between if necessary
      Parameters:
      a - builder to append to
      b - string to add
    • getStrippedQuery

      public String getStrippedQuery()
      after the status part is stripped out
      Returns:
      stripped query
    • getStatusValueFromUser

      public String 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

      public void setOriginalQuery(String originalQuery1)
      original query from user
      Parameters:
      originalQuery1 -
    • setSubjectStatusConfig

      public void setSubjectStatusConfig(SubjectStatusConfig subjectStatusConfig1)
      Parameters:
      subjectStatusConfig1 -
    • getQueryWithDefault

      public String 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

      public String getOriginalQuery()
    • processSearch

      public SubjectStatusResult processSearch()
      take in a search string, and return the search status result
      Parameters:
      searchString -
      Returns:
      the search status result