Class SourceManager

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

public class SourceManager extends Object
Factory to load and get Sources. Sources are defined in a configuration file named, subject.properties, and must be placed in the classpath.

  • Method Details

    • clearAllSources

      public static void clearAllSources()
    • getSourceManagerStatusBean

      public SourceManager.SourceManagerStatusBean getSourceManagerStatusBean()
      get status information across all sources
      Returns:
      the status rollup bean
    • printConfig

      public String printConfig()
      print out the config for the subject API
      Returns:
      the config
    • getInstance

      public static SourceManager getInstance()
      Returns the singleton instance of SourceManager.
      Returns:
      source manager
    • getSource

      public Source getSource(String sourceId) throws SourceUnavailableException
      Gets Source for the argument source ID.
      Parameters:
      sourceId -
      Returns:
      Source
      Throws:
      SourceUnavailableException
    • getSources

      public Collection<Source> getSources()
      Returns a Collection of Sources.
      Returns:
      Collection
    • getSources

      public Collection<Source> getSources(SubjectType type)
      Returns a Collection of Sources that supports the argument SubjectType.
      Parameters:
      type -
      Returns:
      Collection
    • reloadSource

      public void reloadSource(String sourceId)
    • loadSource

      public void loadSource(Source source)
      (non-javadoc)
      Parameters:
      source -
    • usingSubjectProperties

      public static boolean usingSubjectProperties()
      Returns:
      true if using subject.properties, false if subject.properties
    • main

      public static void main(String[] args)
      Validates subject.properties config file.
      Parameters:
      args -
    • internal_removeSource

      public void internal_removeSource(String sourceId)
      remove source for testing
      Parameters:
      sourceId -