Class SubjectStatusConfig

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

public class SubjectStatusConfig extends Object
config for a source of the status params
  • Constructor Details

    • SubjectStatusConfig

      public SubjectStatusConfig()
      default constructor
    • SubjectStatusConfig

      public SubjectStatusConfig(Source source)
      Parameters:
      source -
  • Method Details

    • isStatusConfigured

      public boolean isStatusConfigured()
      Returns:
      the status
    • getSourceId

      public String getSourceId()
      source id for exceptions
      Returns:
      source id
    • setSourceId

      public void setSourceId(String sourceId1)
      source id for exceptions
      Parameters:
      sourceId1 -
    • validate

      public void validate()
      see if the configuration is ok for this source
    • getStatusDatastoreFieldName

      public String getStatusDatastoreFieldName()
      column or attribute which represents the status
      Returns:
      column or attribute
    • setStatusDatastoreFieldName

      public void setStatusDatastoreFieldName(String statusDatastoreFieldName1)
      column or attribute which represents the status
      Parameters:
      statusDatastoreFieldName1 -
    • getStatusLabel

      public String getStatusLabel()
      search string from user which represents the status. e.g. status=active
      Returns:
      label
    • setStatusLabel

      public void setStatusLabel(String statusLabel1)
      search string from user which represents the status. e.g. status=active
      Parameters:
      statusLabel1 -
    • getStatusesFromUser

      public Set<String> getStatusesFromUser()
      available statuses from screen (if not specified, any will be allowed). comma separated list
      Returns:
      status
    • getStatusAllFromUser

      public String getStatusAllFromUser()
      Returns:
    • setStatusAllFromUser

      public void setStatusAllFromUser(String statusAllFromUser1)
      Parameters:
      statusAllFromUser1 -
    • getStatusSearchDefault

      public String getStatusSearchDefault()
      if no status is specified, this will be used (e.g. for active only). Note, the value should be of the form the user would type in, e.g. status=active
      Returns:
      status search default
    • setStatusSearchDefault

      public void setStatusSearchDefault(String statusSearchDefault1)
      if no status is specified, this will be used (e.g. for active only). Note, the value should be of the form the user would type in, e.g. status=active
      Parameters:
      statusSearchDefault1 -
    • getStatusTranslateUserToDatastore

      public Map<String,String> getStatusTranslateUserToDatastore()
      translate between screen values of status, and the data store value. Increment the 0 to 1, 2, etc for more translations. so the user could enter: status=active, and that could translate to status_col=A. The 'user' is what the user types in, the 'datastore' is what is in the datastore. The user part is not case-sensitive. Note, this could be a many to one . The key is what the user types in, the value is what goes to the database
      Returns:
      the translation