public class LazySource extends Object implements Source, Serializable
| Constructor and Description |
|---|
LazySource()
default constructor
|
LazySource(String theSourceId)
construct with source id
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfig()
make sure the config is ok, and log descriptive errors if not
|
String |
getId()
Returns the ID of this source.
|
String |
getInitParam(String name1)
get the init param e.g.
|
Set<String> |
getInternalAttributes()
Get a set of attributes that are marked as being internal attributes.
|
String |
getName()
Returns the name of this source.
|
Map<Integer,String> |
getSearchAttributes()
Get the names of attributes used for searching.
|
Map<Integer,String> |
getSortAttributes()
Get the names of attributes used for sorting.
|
Subject |
getSubject(String id)
Gets a Subject by its ID.
|
Subject |
getSubject(String id,
boolean exceptionIfNull)
Gets a Subject by its ID.
|
Subject |
getSubject(String id,
boolean exceptionIfNull,
String realm)
Gets a Subject by its ID.
|
Subject |
getSubjectByIdentifier(String id)
Gets a Subject by other well-known identifiers, aside
from the subject ID, for example, login ID.
|
Subject |
getSubjectByIdentifier(String id,
boolean exceptionIfNull)
Gets a Subject by other well-known identifiers, aside
from the subject ID, for example, login ID.
|
Subject |
getSubjectByIdentifier(String id,
boolean exceptionIfNull,
String realm)
Gets a Subject by other well-known identifiers, aside
from the subject ID, for example, login ID.
|
Subject |
getSubjectByIdOrIdentifier(String idOrIdentifier,
boolean exceptionIfNull)
find by id or identifier.
|
Subject |
getSubjectByIdOrIdentifier(String idOrIdentifier,
boolean exceptionIfNull,
String realm)
find by id or identifier.
|
Map<String,Subject> |
getSubjectsByIdentifiers(Collection<String> identifiers)
Get subjects by identifiers.
|
Map<String,Subject> |
getSubjectsByIdentifiers(Collection<String> identifiers,
String realm)
Get subjects by identifiers.
|
Map<String,Subject> |
getSubjectsByIds(Collection<String> ids)
Get subjects by ids.
|
Map<String,Subject> |
getSubjectsByIds(Collection<String> ids,
String realm)
Get subjects by ids.
|
Map<String,Subject> |
getSubjectsByIdsOrIdentifiers(Collection<String> idsOrIdentifiers)
Get subjects by ids or identifiers.
|
Map<String,Subject> |
getSubjectsByIdsOrIdentifiers(Collection<String> idsOrIdentifiers,
String realm)
Get subjects by ids or identifiers.
|
SubjectStatusConfig |
getSubjectStatusConfig()
get the config bean for this source
|
Set<SubjectType> |
getSubjectTypes()
Gets the SubjectTypes supported by this source.
|
String |
getUnderlyingSourceId()
id of underlying source
|
void |
init()
Called by SourceManager when it loads this source.
|
Properties |
initParams()
get the init params e.g.
|
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.
|
Set<Subject> |
search(String searchValue,
String realm)
Unstructured search for Subjects.
|
SearchPageResult |
searchPage(String searchValue)
Unstructured search for Subjects.
|
SearchPageResult |
searchPage(String searchValue,
String realm)
Unstructured search for Subjects.
|
void |
setId(String id)
Sets the ID of this source.
|
void |
setName(String name)
Sets the name of this source.
|
void |
setUnderlyingSourceId(String sourceId1)
id of underlying source
|
public LazySource()
public LazySource(String theSourceId)
theSourceId - public SubjectStatusConfig getSubjectStatusConfig()
SourcegetSubjectStatusConfig in interface SourceSource.getSubjectStatusConfig()public String getUnderlyingSourceId()
public void setUnderlyingSourceId(String sourceId1)
sourceId1 - the sourceId to setpublic void checkConfig()
SourcecheckConfig in interface SourceSource.checkConfig()public String getId()
SourcegetId in interface SourceSource.getId()public String getName()
SourcegetName in interface SourceSource.getName()public Subject getSubject(String id) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubject in interface Sourceid - SubjectNotFoundExceptionSubjectNotUniqueExceptionpublic Subject getSubject(String id, boolean exceptionIfNull) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubject in interface SourceexceptionIfNull - if SubjectNotFoundException should be
throws if the subject is null, or if null should be returnedSubjectNotFoundExceptionSubjectNotUniqueExceptionSource.getSubject(java.lang.String, boolean)public Subject getSubjectByIdOrIdentifier(String idOrIdentifier, boolean exceptionIfNull) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubjectByIdOrIdentifier in interface SourceexceptionIfNull - if SubjectNotFoundException or nullSubjectNotFoundExceptionSubjectNotUniqueExceptionSource.getSubjectByIdOrIdentifier(java.lang.String, boolean)public Subject getSubjectByIdentifier(String id) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubjectByIdentifier in interface Sourceid - SubjectNotFoundExceptionSubjectNotUniqueExceptionpublic Subject getSubjectByIdentifier(String id, boolean exceptionIfNull) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubjectByIdentifier in interface SourceSubjectNotFoundExceptionSubjectNotUniqueExceptionSource.getSubjectByIdentifier(java.lang.String, boolean)public Set<SubjectType> getSubjectTypes()
SourcegetSubjectTypes in interface SourceSource.getSubjectTypes()public Map<String,Subject> getSubjectsByIdentifiers(Collection<String> identifiers)
SourcegetSubjectsByIdentifiers in interface SourceSource.getSubjectsByIdentifiers(java.util.Collection)public Map<String,Subject> getSubjectsByIds(Collection<String> ids)
SourcegetSubjectsByIds in interface SourceSource.getSubjectsByIds(java.util.Collection)public Map<String,Subject> getSubjectsByIdsOrIdentifiers(Collection<String> idsOrIdentifiers)
SourcegetSubjectsByIdsOrIdentifiers in interface SourceidsOrIdentifiers - each string could be a subject id or identifierSource.getSubjectsByIdsOrIdentifiers(java.util.Collection)public void init()
throws SourceUnavailableException
Sourceinit in interface SourceSourceUnavailableExceptionSource.init()public String printConfig()
SourceprintConfig in interface SourceSource.printConfig()public SearchPageResult searchPage(String searchValue)
SourcesearchPage in interface SourceSource.searchPage(java.lang.String)public Set<Subject> search(String searchValue)
Sourcesearch in interface SourceSource.search(java.lang.String)public void setId(String id)
SourcesetId in interface SourceSource.setId(java.lang.String)public void setName(String name)
SourcesetName in interface SourceSource.setName(java.lang.String)public String getInitParam(String name1)
SourcegetInitParam in interface SourceSource.getInitParam(java.lang.String)public Properties initParams()
SourceinitParams in interface Sourceedu.internet2.middleware.subject.Source#getInitParams()public Map<Integer,String> getSearchAttributes()
SourcegetSearchAttributes in interface SourceSource.getSearchAttributes()public Map<Integer,String> getSortAttributes()
SourcegetSortAttributes in interface SourceSource.getSortAttributes()public Set<String> getInternalAttributes()
SourcegetInternalAttributes in interface SourceSource.getInternalAttributes()public Subject getSubject(String id, boolean exceptionIfNull, String realm) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubject in interface SourceexceptionIfNull - if SubjectNotFoundException should be
throws if the subject is null, or if null should be returnedrealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSubjectNotFoundExceptionSubjectNotUniqueExceptionSource.getSubject(java.lang.String, boolean, java.lang.String)public Subject getSubjectByIdOrIdentifier(String idOrIdentifier, boolean exceptionIfNull, String realm) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubjectByIdOrIdentifier in interface SourceexceptionIfNull - if SubjectNotFoundException or nullrealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSubjectNotFoundExceptionSubjectNotUniqueExceptionSource.getSubjectByIdOrIdentifier(java.lang.String, boolean, java.lang.String)public Subject getSubjectByIdentifier(String id, boolean exceptionIfNull, String realm) throws SubjectNotFoundException, SubjectNotUniqueException
SourcegetSubjectByIdentifier in interface Sourcerealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSubjectNotFoundExceptionSubjectNotUniqueExceptionSource.getSubjectByIdentifier(java.lang.String, boolean, java.lang.String)public Map<String,Subject> getSubjectsByIdentifiers(Collection<String> identifiers, String realm)
SourcegetSubjectsByIdentifiers in interface Sourcerealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSource.getSubjectsByIdentifiers(java.util.Collection, java.lang.String)public Map<String,Subject> getSubjectsByIds(Collection<String> ids, String realm)
SourcegetSubjectsByIds in interface Sourcerealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSource.getSubjectsByIds(java.util.Collection, java.lang.String)public Map<String,Subject> getSubjectsByIdsOrIdentifiers(Collection<String> idsOrIdentifiers, String realm)
SourcegetSubjectsByIdsOrIdentifiers in interface SourceidsOrIdentifiers - each string could be a subject id or identifierrealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSource.getSubjectsByIdsOrIdentifiers(java.util.Collection, java.lang.String)public Set<Subject> search(String searchValue, String realm)
Sourcesearch in interface Sourcerealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSource.search(java.lang.String, java.lang.String)public SearchPageResult searchPage(String searchValue, String realm)
SourcesearchPage in interface Sourcerealm - string value that sets the realm for the search. The source can
implement various realms to account for permissions of the calling userSource.searchPage(java.lang.String, java.lang.String)Copyright © 2016 Internet2. All rights reserved.