Class NullSourceAdapter
java.lang.Object
edu.internet2.middleware.subject.provider.BaseSourceAdapter
edu.internet2.middleware.subject.provider.NullSourceAdapter
- All Implemented Interfaces:
Source
- Version:
- $Id: NullSourceAdapter.java,v 1.4 2009-03-22 02:49:26 mchyzer Exp $
-
Field Summary
Fields inherited from class edu.internet2.middleware.subject.provider.BaseSourceAdapter
attributes, descriptionAttributeName, id, internalAttributes, name, nameAttributeName, params, searchAttributes, searches, sortAttributes, subjectIdentifierAttributes, subjectIdentifierAttributesAll, type, types
-
Constructor Summary
ConstructorDescriptionAllocates newNullSourceAdapter
.NullSourceAdapter
(String id1, String name1) Allocates newNullSourceAdapter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
make sure the config is ok, and log descriptive errors if notgetSubject
(String id1) Deprecated.getSubject
(String id1, boolean exceptionIfNull) Gets a Subject by its ID.Deprecated.getSubjectByIdentifier
(String id1, boolean exceptionIfNull) note, you should implement this method since this implementation will become abstract at some pointGets the SubjectTypes supported by this source.void
init()
Called by SourceManager when it loads this source.void
start logging the source low level actionsstop logging and get the outputin the startup on this i2mi app, print helpful and brief info about this sourceUnstructured search for Subjects.Methods inherited from class edu.internet2.middleware.subject.provider.BaseSourceAdapter
addAttribute, addInitParam, addInternalAttribute, addSubjectType, attributeNameToViewerGroupName, convertSourceAttributeToSubjectAttribute, convertSubjectAttributeToSourceAttribute, createSubject, equals, exportLabelToAttributeName, getAttributes, getConfigId, getId, getInitParam, getInternalAttributes, getName, getSearch, getSearchAttributes, getSearches, getSortAttributes, getSourceAttributesToLowerCase, getSubject, getSubjectByIdentifier, getSubjectByIdOrIdentifier, getSubjectByIdOrIdentifier, getSubjectIdentifierAttributes, getSubjectIdentifierAttributesAll, getSubjectsByIdentifiers, getSubjectsByIdentifiers, getSubjectsByIds, getSubjectsByIds, getSubjectsByIdsOrIdentifiers, getSubjectsByIdsOrIdentifiers, getSubjectStatusConfig, getSubjectType, hashCode, initParams, isEditable, isEnabled, loadSearch, removeInitParam, resultSetLimit, retrieveAllSubjectIds, search, searchPage, searchPage, setConfigId, setId, setName, setSearchAttributes, setSearches, setSortAttributes, setSubjectIdentifierAttributes, setSubjectIdentifierAttributesAll, virtualAttributesForSource, virtualAttributesForSourceLegacy, virtualAttributeVariablesForSourceLegacy
-
Constructor Details
-
NullSourceAdapter
public NullSourceAdapter()Allocates newNullSourceAdapter
. -
NullSourceAdapter
Allocates newNullSourceAdapter
.- Parameters:
id1
- The source id for the new adapter.name1
- The source name for the new adapter.
-
-
Method Details
-
loggingStart
public void loggingStart()Description copied from interface:Source
start logging the source low level actions -
loggingStop
Description copied from interface:Source
stop logging and get the output -
getSubject
Description copied from interface:Source
Gets a Subject by its ID.- Specified by:
getSubject
in interfaceSource
- Overrides:
getSubject
in classBaseSourceAdapter
exceptionIfNull
- if SubjectNotFoundException should be throws if the subject is null, or if null should be returned- Returns:
- subject
- Throws:
SubjectNotFoundException
- See Also:
-
getSubjectByIdentifier
public Subject getSubjectByIdentifier(String id1, boolean exceptionIfNull) throws SubjectNotFoundException Description copied from class:BaseSourceAdapter
note, you should implement this method since this implementation will become abstract at some point- Specified by:
getSubjectByIdentifier
in interfaceSource
- Overrides:
getSubjectByIdentifier
in classBaseSourceAdapter
- Returns:
- subject
- Throws:
SubjectNotFoundException
- See Also:
-
getSubjectTypes
Description copied from class:BaseSourceAdapter
Gets the SubjectTypes supported by this source.- Specified by:
getSubjectTypes
in interfaceSource
- Overrides:
getSubjectTypes
in classBaseSourceAdapter
- Returns:
- set
- See Also:
-
init
Description copied from class:BaseSourceAdapter
Called by SourceManager when it loads this source.- Specified by:
init
in interfaceSource
- Specified by:
init
in classBaseSourceAdapter
- Throws:
SourceUnavailableException
- See Also:
-
search
Description copied from class:BaseSourceAdapter
Unstructured search for Subjects. Each implementation utilizes its own search algorithm tailored to the Subject repository and schema. Note if config param: throwErrorOnFindAllFailure is false, then swallow and log exceptions- Specified by:
search
in interfaceSource
- Specified by:
search
in classBaseSourceAdapter
- Returns:
- set
- See Also:
-
checkConfig
public void checkConfig()Description copied from interface:Source
make sure the config is ok, and log descriptive errors if not- See Also:
-
printConfig
Description copied from interface:Source
in the startup on this i2mi app, print helpful and brief info about this source- Returns:
- the info
- See Also:
-
getSubject
@Deprecated public Subject getSubject(String id1) throws SubjectNotFoundException, SubjectNotUniqueException Deprecated.Description copied from interface:Source
Gets a Subject by its ID.- Specified by:
getSubject
in interfaceSource
- Specified by:
getSubject
in classBaseSourceAdapter
- Returns:
- subject
- Throws:
SubjectNotFoundException
SubjectNotUniqueException
- See Also:
-
getSubjectByIdentifier
@Deprecated public Subject getSubjectByIdentifier(String id1) throws SubjectNotFoundException, SubjectNotUniqueException Deprecated.Description copied from interface:Source
Gets a Subject by other well-known identifiers, aside from the subject ID, for example, login ID.- Specified by:
getSubjectByIdentifier
in interfaceSource
- Specified by:
getSubjectByIdentifier
in classBaseSourceAdapter
- Returns:
- subject
- Throws:
SubjectNotFoundException
SubjectNotUniqueException
- See Also:
-