|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SubjectResolver
Subject resolution interface.
Method Summary | |
---|---|
edu.internet2.middleware.subject.Subject |
find(String id)
|
edu.internet2.middleware.subject.Subject |
find(String id,
String source)
|
Set<edu.internet2.middleware.subject.Subject> |
findAll(String query)
|
Set<edu.internet2.middleware.subject.Subject> |
findAll(String query,
Set<edu.internet2.middleware.subject.Source> sources)
find subjects in a set of sources |
Set<edu.internet2.middleware.subject.Subject> |
findAll(String query,
String source)
|
Set<edu.internet2.middleware.subject.Subject> |
findAllInStem(String stemName,
String query)
|
edu.internet2.middleware.subject.Subject |
findByIdentifier(String id)
|
edu.internet2.middleware.subject.Subject |
findByIdentifier(String id,
String source)
|
Map<String,edu.internet2.middleware.subject.Subject> |
findByIdentifiers(Collection<String> identifiers)
|
Map<String,edu.internet2.middleware.subject.Subject> |
findByIdentifiers(Collection<String> identifiers,
String source)
|
edu.internet2.middleware.subject.Subject |
findByIdOrIdentifier(String id)
|
edu.internet2.middleware.subject.Subject |
findByIdOrIdentifier(String id,
String source)
|
Map<String,edu.internet2.middleware.subject.Subject> |
findByIds(Collection<String> ids)
|
Map<String,edu.internet2.middleware.subject.Subject> |
findByIds(Collection<String> ids,
String source)
|
Map<String,edu.internet2.middleware.subject.Subject> |
findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers)
|
Map<String,edu.internet2.middleware.subject.Subject> |
findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers,
String source)
|
edu.internet2.middleware.subject.SearchPageResult |
findPage(String query)
|
edu.internet2.middleware.subject.SearchPageResult |
findPage(String query,
Set<edu.internet2.middleware.subject.Source> sources)
find a page of subjects in a set of sources |
edu.internet2.middleware.subject.SearchPageResult |
findPage(String query,
String source)
|
edu.internet2.middleware.subject.SearchPageResult |
findPageInStem(String stemName,
String query)
|
edu.internet2.middleware.subject.SearchPageResult |
findPageInStem(String stemName,
String query,
Set<edu.internet2.middleware.subject.Source> sources)
|
void |
flushCache()
flush the cache (e.g. |
edu.internet2.middleware.subject.Source |
getSource(String id)
|
Set<edu.internet2.middleware.subject.Source> |
getSources()
|
Method Detail |
---|
void flushCache()
edu.internet2.middleware.subject.Subject find(String id) throws IllegalArgumentException, edu.internet2.middleware.subject.SubjectNotFoundException, edu.internet2.middleware.subject.SubjectNotUniqueException
id
- Subject id to search on.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.edu.internet2.middleware.subject.Subject find(String id, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException, edu.internet2.middleware.subject.SubjectNotFoundException, edu.internet2.middleware.subject.SubjectNotUniqueException
id
- Subject id to search on.source
- Source adapter to search within.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.Set<edu.internet2.middleware.subject.Subject> findAll(String query) throws IllegalArgumentException
query
- A source-appropraite query string.
IllegalArgumentException
- if any parameter is null.Set<edu.internet2.middleware.subject.Subject> findAll(String query, Set<edu.internet2.middleware.subject.Source> sources) throws IllegalArgumentException
query
- sources
-
IllegalArgumentException
edu.internet2.middleware.subject.SearchPageResult findPage(String query, Set<edu.internet2.middleware.subject.Source> sources) throws edu.internet2.middleware.subject.SourceUnavailableException
query
- sources
-
edu.internet2.middleware.subject.SourceUnavailableException
Set<edu.internet2.middleware.subject.Subject> findAllInStem(String stemName, String query) throws IllegalArgumentException
stemName
- name of stem we are queryingquery
- A source-appropriate query string.
IllegalArgumentException
- if any parameter is null.Set<edu.internet2.middleware.subject.Subject> findAll(String query, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException
query
- A source-appropriate query string.source
- Restrict query to within this source.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.edu.internet2.middleware.subject.Subject findByIdentifier(String id) throws IllegalArgumentException, edu.internet2.middleware.subject.SubjectNotFoundException, edu.internet2.middleware.subject.SubjectNotUniqueException
id
- Subject identifier to search on.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.edu.internet2.middleware.subject.Subject findByIdentifier(String id, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException, edu.internet2.middleware.subject.SubjectNotFoundException, edu.internet2.middleware.subject.SubjectNotUniqueException
id
- Subject identifier to search on.source
- Source adapter to search within.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.edu.internet2.middleware.subject.Source getSource(String id) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException
id
-
IllegalArgumentException
- if id is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source cannot be returned.Set<edu.internet2.middleware.subject.Source> getSources()
edu.internet2.middleware.subject.Subject findByIdOrIdentifier(String id) throws IllegalArgumentException, edu.internet2.middleware.subject.SubjectNotFoundException, edu.internet2.middleware.subject.SubjectNotUniqueException
id
- Subject identifier to search on.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.edu.internet2.middleware.subject.Subject findByIdOrIdentifier(String id, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException, edu.internet2.middleware.subject.SubjectNotFoundException, edu.internet2.middleware.subject.SubjectNotUniqueException
id
- Subject identifier to search on.type
- Subject type to search on.source
- Source adapter to search within.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.edu.internet2.middleware.subject.SearchPageResult findPage(String query) throws IllegalArgumentException
query
- A source-appropraite query string.
IllegalArgumentException
- if any parameter is null.edu.internet2.middleware.subject.SearchPageResult findPage(String query, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException
query
- A source-appropriate query string.source
- Restrict query to within this source.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.edu.internet2.middleware.subject.SearchPageResult findPageInStem(String stemName, String query) throws IllegalArgumentException
stemName
- name of stem we are queryingquery
- A source-appropriate query string.
IllegalArgumentException
- if any parameter is null.edu.internet2.middleware.subject.SearchPageResult findPageInStem(String stemName, String query, Set<edu.internet2.middleware.subject.Source> sources) throws IllegalArgumentException
stemName
- name of stem we are queryingquery
- A source-appropriate query string.source
-
IllegalArgumentException
- if any parameter is null.Map<String,edu.internet2.middleware.subject.Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers) throws IllegalArgumentException
idsOrIdentifiers
- Subject identifiers to search on.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,edu.internet2.middleware.subject.Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException
id
- Subject identifier to search on.type
- Subject type to search on.source
- Source adapter to search within.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,edu.internet2.middleware.subject.Subject> findByIds(Collection<String> ids) throws IllegalArgumentException
ids
- Subject id to search on.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,edu.internet2.middleware.subject.Subject> findByIds(Collection<String> ids, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException
id
- Subject id to search on.source
- Source adapter to search within.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,edu.internet2.middleware.subject.Subject> findByIdentifiers(Collection<String> identifiers) throws IllegalArgumentException
id
- Subject identifier to search on.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,edu.internet2.middleware.subject.Subject> findByIdentifiers(Collection<String> identifiers, String source) throws IllegalArgumentException, edu.internet2.middleware.subject.SourceUnavailableException
id
- Subject identifier to search on.source
- Source adapter to search within.
IllegalArgumentException
- if any parameter is null.
edu.internet2.middleware.subject.SourceUnavailableException
- if source is unavailable.
edu.internet2.middleware.subject.SubjectNotFoundException
- if no matching subject is found.
edu.internet2.middleware.subject.SubjectNotUniqueException
- if more than one matching subject is found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |