Class SourceManager
java.lang.Object
edu.internet2.middleware.subject.provider.SourceManager
Factory to load and get Sources. Sources are defined
in a configuration file named, subject.properties, and must
be placed in the classpath.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classbean to hold the status stuff across all sources -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic SourceManagerReturns the singleton instance of SourceManager.Gets Source for the argument source ID.get status information across all sourcesReturns a Collection of Sources.getSources(SubjectType type) Returns a Collection of Sources that supports the argument SubjectType.Returns a Collection of Sources.voidinternal_removeSource(String sourceId) remove source for testingvoidloadSource(Source source) (non-javadoc)static voidValidates subject.properties config file.print out the config for the subject APIvoidreloadSource(String sourceId) static boolean
-
Method Details
-
clearAllSources
public static void clearAllSources() -
getSourceManagerStatusBean
get status information across all sources- Returns:
- the status rollup bean
-
printConfig
print out the config for the subject API- Returns:
- the config
-
getInstance
Returns the singleton instance of SourceManager.- Returns:
- source manager
-
getSource
Gets Source for the argument source ID.- Parameters:
sourceId-- Returns:
- Source
- Throws:
SourceUnavailableException
-
getSources
Returns a Collection of Sources. Generally this shouldn't be called. Call getSourcesEnabled() instead.- Returns:
- Collection
-
getSourcesEnabled
Returns a Collection of Sources. This includes enabled sources only.- Returns:
- Collection
-
getSources
Returns a Collection of Sources that supports the argument SubjectType.- Parameters:
type-- Returns:
- Collection
-
reloadSource
-
loadSource
(non-javadoc)- Parameters:
source-
-
usingSubjectProperties
public static boolean usingSubjectProperties()- Returns:
- true if using subject.properties, false if subject.properties
-
main
Validates subject.properties config file.- Parameters:
args-
-
internal_removeSource
remove source for testing- Parameters:
sourceId-
-