public class NullSourceAdapter extends BaseSourceAdapter
attributes, id, internalAttributes, name, params, searchAttributes, searches, sortAttributes, type, types| Constructor and Description |
|---|
NullSourceAdapter()
Allocates new
NullSourceAdapter. |
NullSourceAdapter(String id1,
String name1)
Allocates new
NullSourceAdapter. |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfig()
make sure the config is ok, and log descriptive errors if not
|
Subject |
getSubject(String id1)
Deprecated.
|
Subject |
getSubject(String id1,
boolean exceptionIfNull)
Gets a Subject by its ID.
|
Subject |
getSubjectByIdentifier(String id1)
Deprecated.
|
Subject |
getSubjectByIdentifier(String id1,
boolean exceptionIfNull)
note, you should implement this method since this implementation will become abstract at some point
|
Set<SubjectType> |
getSubjectTypes()
Gets the SubjectTypes supported by this source.
|
void |
init()
Called by SourceManager when it loads this source.
|
String |
printConfig()
in the startup on this i2mi app, print helpful and brief info about this source
|
Set<Subject> |
search(String searchValue)
Unstructured search for Subjects.
|
addAttribute, addInitParam, addInternalAttribute, addSubjectType, equals, getAttributes, getId, getInitParam, getInternalAttributes, getName, getSearch, getSearchAttributes, getSearches, getSortAttributes, getSubject, getSubjectByIdentifier, getSubjectByIdOrIdentifier, getSubjectByIdOrIdentifier, getSubjectsByIdentifiers, getSubjectsByIdentifiers, getSubjectsByIds, getSubjectsByIds, getSubjectsByIdsOrIdentifiers, getSubjectsByIdsOrIdentifiers, getSubjectStatusConfig, getSubjectType, hashCode, initParams, loadSearch, removeInitParam, resultSetLimit, search, searchPage, searchPage, setId, setName, setSearchAttributes, setSearches, setSortAttributespublic NullSourceAdapter()
NullSourceAdapter.public NullSourceAdapter(String id1, String name1)
NullSourceAdapter.id1 - The source id for the new adapter.name1 - The source name for the new adapter.public Subject getSubject(String id1, boolean exceptionIfNull) throws SubjectNotFoundException
SourcegetSubject in interface SourcegetSubject in class BaseSourceAdapterexceptionIfNull - if SubjectNotFoundException should be
throws if the subject is null, or if null should be returnedSubjectNotFoundExceptionBaseSourceAdapter.getSubject(java.lang.String, boolean)public Subject getSubjectByIdentifier(String id1, boolean exceptionIfNull) throws SubjectNotFoundException
BaseSourceAdaptergetSubjectByIdentifier in interface SourcegetSubjectByIdentifier in class BaseSourceAdapterSubjectNotFoundExceptionBaseSourceAdapter.getSubjectByIdentifier(java.lang.String, boolean)public Set<SubjectType> getSubjectTypes()
BaseSourceAdaptergetSubjectTypes in interface SourcegetSubjectTypes in class BaseSourceAdapterBaseSourceAdapter.getSubjectTypes()public void init()
throws SourceUnavailableException
BaseSourceAdapterinit in interface Sourceinit in class BaseSourceAdapterSourceUnavailableExceptionBaseSourceAdapter.init()public Set<Subject> search(String searchValue)
BaseSourceAdaptersearch in interface Sourcesearch in class BaseSourceAdapterBaseSourceAdapter.search(java.lang.String)public void checkConfig()
SourceSource.checkConfig()public String printConfig()
SourceSource.printConfig()@Deprecated public Subject getSubject(String id1) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubject in interface SourcegetSubject in class BaseSourceAdapterSubjectNotFoundExceptionSubjectNotUniqueExceptionBaseSourceAdapter.getSubject(java.lang.String)@Deprecated public Subject getSubjectByIdentifier(String id1) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubjectByIdentifier in interface SourcegetSubjectByIdentifier in class BaseSourceAdapterSubjectNotFoundExceptionSubjectNotUniqueExceptionBaseSourceAdapter.getSubjectByIdentifier(java.lang.String)Copyright © 2016 Internet2. All rights reserved.