public interface SubjectResolver
void flushCache()
Subject find(String id) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
id
- Subject id to search on.IllegalArgumentException
- if any parameter is null.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Subject find(String id, String source) throws IllegalArgumentException, SourceUnavailableException, SubjectNotFoundException, SubjectNotUniqueException
id
- Subject id to search on.source
- Source adapter to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Set<Subject> findAll(String query) throws IllegalArgumentException
query
- A source-appropraite query string.IllegalArgumentException
- if any parameter is null.Set<Subject> findAll(String query, Set<Source> sources) throws IllegalArgumentException
query
- sources
- IllegalArgumentException
SearchPageResult findPage(String query, Set<Source> sources) throws SourceUnavailableException
query
- sources
- SourceUnavailableException
Set<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<Subject> findAll(String query, String source) throws IllegalArgumentException, SourceUnavailableException
query
- A source-appropriate query string.source
- Restrict query to within this source.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.Subject findByIdentifier(String id) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
id
- Subject identifier to search on.IllegalArgumentException
- if any parameter is null.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Subject findByIdentifier(String id, String source) throws IllegalArgumentException, SourceUnavailableException, SubjectNotFoundException, SubjectNotUniqueException
id
- Subject identifier to search on.source
- Source adapter to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Source getSource(String id) throws IllegalArgumentException, SourceUnavailableException
id
- IllegalArgumentException
- if id is null.SourceUnavailableException
- if source cannot be returned.Subject findByIdOrIdentifier(String id) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
id
- Subject identifier to search on.IllegalArgumentException
- if any parameter is null.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Subject findByIdOrIdentifier(String id, String source) throws IllegalArgumentException, SourceUnavailableException, SubjectNotFoundException, 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.SourceUnavailableException
- if source is unavailable.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.SearchPageResult findPage(String query) throws IllegalArgumentException
query
- A source-appropraite query string.IllegalArgumentException
- if any parameter is null.SearchPageResult findPage(String query, String source) throws IllegalArgumentException, SourceUnavailableException
query
- A source-appropriate query string.source
- Restrict query to within this source.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.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.SearchPageResult findPageInStem(String stemName, String query, Set<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,Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers) throws IllegalArgumentException
idsOrIdentifiers
- Subject identifiers to search on.IllegalArgumentException
- if any parameter is null.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers, String source) throws IllegalArgumentException, 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.SourceUnavailableException
- if source is unavailable.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers, Set<Source> sources) throws IllegalArgumentException, SourceUnavailableException
id
- Subject identifier to search on.type
- Subject type to search on.sources
- Source adapters to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,Subject> findByIds(Collection<String> ids) throws IllegalArgumentException
ids
- Subject id to search on.IllegalArgumentException
- if any parameter is null.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,Subject> findByIds(Collection<String> ids, String source) throws IllegalArgumentException, SourceUnavailableException
id
- Subject id to search on.source
- Source adapter to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,Subject> findByIdentifiers(Collection<String> identifiers) throws IllegalArgumentException
id
- Subject identifier to search on.IllegalArgumentException
- if any parameter is null.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Map<String,Subject> findByIdentifiers(Collection<String> identifiers, String source) throws IllegalArgumentException, SourceUnavailableException
id
- Subject identifier to search on.source
- Source adapter to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectNotFoundException
- if no matching subject is found.SubjectNotUniqueException
- if more than one matching subject is found.Copyright © 2016 Internet2. All rights reserved.