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
ConstructorsConstructorDescriptionAllocates newNullSourceAdapter.NullSourceAdapter(String id1, String name1) Allocates newNullSourceAdapter. -
Method Summary
Modifier and TypeMethodDescriptionvoidmake 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.voidinit()Called by SourceManager when it loads this source.voidstart 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:Sourcestart logging the source low level actions -
loggingStop
Description copied from interface:Sourcestop logging and get the output -
getSubject
Description copied from interface:SourceGets a Subject by its ID.- Specified by:
getSubjectin interfaceSource- Overrides:
getSubjectin classBaseSourceAdapterexceptionIfNull- 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:BaseSourceAdapternote, you should implement this method since this implementation will become abstract at some point- Specified by:
getSubjectByIdentifierin interfaceSource- Overrides:
getSubjectByIdentifierin classBaseSourceAdapter- Returns:
- subject
- Throws:
SubjectNotFoundException- See Also:
-
getSubjectTypes
Description copied from class:BaseSourceAdapterGets the SubjectTypes supported by this source.- Specified by:
getSubjectTypesin interfaceSource- Overrides:
getSubjectTypesin classBaseSourceAdapter- Returns:
- set
- See Also:
-
init
Description copied from class:BaseSourceAdapterCalled by SourceManager when it loads this source.- Specified by:
initin interfaceSource- Specified by:
initin classBaseSourceAdapter- Throws:
SourceUnavailableException- See Also:
-
search
Description copied from class:BaseSourceAdapterUnstructured 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:
searchin interfaceSource- Specified by:
searchin classBaseSourceAdapter- Returns:
- set
- See Also:
-
checkConfig
public void checkConfig()Description copied from interface:Sourcemake sure the config is ok, and log descriptive errors if not- See Also:
-
printConfig
Description copied from interface:Sourcein 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:SourceGets a Subject by its ID.- Specified by:
getSubjectin interfaceSource- Specified by:
getSubjectin classBaseSourceAdapter- Returns:
- subject
- Throws:
SubjectNotFoundExceptionSubjectNotUniqueException- See Also:
-
getSubjectByIdentifier
@Deprecated public Subject getSubjectByIdentifier(String id1) throws SubjectNotFoundException, SubjectNotUniqueException Deprecated.Description copied from interface:SourceGets a Subject by other well-known identifiers, aside from the subject ID, for example, login ID.- Specified by:
getSubjectByIdentifierin interfaceSource- Specified by:
getSubjectByIdentifierin classBaseSourceAdapter- Returns:
- subject
- Throws:
SubjectNotFoundExceptionSubjectNotUniqueException- See Also:
-