public class SourcesXmlResolver extends Object implements SubjectResolver
sources.xml
.
Modifier and Type | Class and Description |
---|---|
static class |
SourcesXmlResolver.LogLabelCallable<T>
TODO merge this with GrouperCallable
|
Constructor and Description |
---|
SourcesXmlResolver()
Initialize a new SourcesXmlResolver.
|
public SourcesXmlResolver()
public void flushCache()
flushCache
in interface SubjectResolver
public Subject find(String id) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
find
in interface SubjectResolver
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.SubjectResolver.find(String)
public Subject find(String id, String source) throws IllegalArgumentException, SourceUnavailableException, SubjectNotFoundException, SubjectNotUniqueException
find
in interface SubjectResolver
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.SubjectResolver#find(String, String, String)
public Set<Subject> findAll(String query) throws IllegalArgumentException
findAll
in interface SubjectResolver
query
- A source-appropraite query string.IllegalArgumentException
- if any parameter is null.SubjectResolver.findAll(String)
public Set<Subject> findAll(String query, String source) throws IllegalArgumentException, SourceUnavailableException
findAll
in interface SubjectResolver
query
- A source-appropriate query string.source
- Restrict query to within this source.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectResolver.findAll(String, String)
public Subject findByIdentifier(String id) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
findByIdentifier
in interface SubjectResolver
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.SubjectResolver.findByIdentifier(String)
public Subject findByIdentifier(String id, String source) throws IllegalArgumentException, SourceUnavailableException, SubjectNotFoundException, SubjectNotUniqueException
findByIdentifier
in interface SubjectResolver
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.SubjectResolver#findByIdentifier(String, String, String)
public Source getSource(String id) throws IllegalArgumentException, SourceUnavailableException
getSource
in interface SubjectResolver
IllegalArgumentException
- if id is null.SourceUnavailableException
- if source cannot be returned.SubjectResolver.getSource(String)
public Set<Source> getSources()
getSources
in interface SubjectResolver
SubjectResolver.getSources()
public Set<Source> getSources(String subjectType) throws IllegalArgumentException
subjectType
- IllegalArgumentException
SubjectResolver#getSources(String)
public Subject findByIdOrIdentifier(String idOrIdentifier) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
findByIdOrIdentifier
in interface SubjectResolver
idOrIdentifier
- 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.SubjectResolver.findByIdOrIdentifier(String)
public Subject findByIdOrIdentifier(String id, String source) throws IllegalArgumentException, SourceUnavailableException, SubjectNotFoundException, SubjectNotUniqueException
findByIdOrIdentifier
in interface SubjectResolver
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.SubjectResolver.findByIdOrIdentifier(String, String)
public Set<Subject> findAllInStem(String stemName, String query) throws IllegalArgumentException
findAllInStem
in interface SubjectResolver
stemName
- name of stem we are queryingquery
- A source-appropriate query string.IllegalArgumentException
- if any parameter is null.SubjectResolver.findAllInStem(java.lang.String, java.lang.String)
public SearchPageResult findPage(String query) throws IllegalArgumentException
findPage
in interface SubjectResolver
query
- A source-appropraite query string.IllegalArgumentException
- if any parameter is null.SubjectResolver.findPage(String)
public SearchPageResult findPage(String query, String source) throws IllegalArgumentException, SourceUnavailableException
findPage
in interface SubjectResolver
query
- A source-appropriate query string.source
- Restrict query to within this source.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectResolver.findAll(String, String)
public SearchPageResult findPageInStem(String stemName, String query) throws IllegalArgumentException
findPageInStem
in interface SubjectResolver
stemName
- name of stem we are queryingquery
- A source-appropriate query string.IllegalArgumentException
- if any parameter is null.SubjectResolver.findAllInStem(java.lang.String, java.lang.String)
public SearchPageResult findPageInStem(String stemName, String query, Set<Source> sources) throws IllegalArgumentException
findPageInStem
in interface SubjectResolver
stemName
- name of stem we are queryingquery
- A source-appropriate query string.IllegalArgumentException
- if any parameter is null.edu.internet2.middleware.grouper.subj.SubjectResolver#findAllInStem(java.lang.String, java.lang.String, Set)
public Set<Subject> findAll(String query, Set<Source> sources)
SubjectResolver
findAll
in interface SubjectResolver
SubjectResolver.findAll(String, Set)
public SearchPageResult findPage(String query, Set<Source> sources) throws SourceUnavailableException
SubjectResolver
findPage
in interface SubjectResolver
SourceUnavailableException
SubjectResolver.findPage(String, Set)
public Map<String,Subject> findByIdentifiers(Collection<String> identifiers) throws IllegalArgumentException
findByIdentifiers
in interface SubjectResolver
IllegalArgumentException
- if any parameter is null.SubjectResolver.findByIdentifiers(Collection)
public Map<String,Subject> findByIdentifiers(Collection<String> identifiers, String source) throws IllegalArgumentException, SourceUnavailableException
findByIdentifiers
in interface SubjectResolver
source
- Source adapter to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectResolver.findByIdentifiers(Collection, String)
public Map<String,Subject> findByIds(Collection<String> ids) throws IllegalArgumentException
findByIds
in interface SubjectResolver
ids
- Subject id to search on.IllegalArgumentException
- if any parameter is null.SubjectResolver.findByIds(Collection)
public Map<String,Subject> findByIds(Collection<String> ids, String source) throws IllegalArgumentException, SourceUnavailableException
findByIds
in interface SubjectResolver
source
- Source adapter to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectResolver.findByIds(Collection, String)
public Map<String,Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers) throws IllegalArgumentException
findByIdsOrIdentifiers
in interface SubjectResolver
idsOrIdentifiers
- Subject identifiers to search on.IllegalArgumentException
- if any parameter is null.SubjectResolver.findByIdsOrIdentifiers(Collection)
public Map<String,Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers, String source) throws IllegalArgumentException, SourceUnavailableException
findByIdsOrIdentifiers
in interface SubjectResolver
source
- Source adapter to search within.IllegalArgumentException
- if any parameter is null.SourceUnavailableException
- if source is unavailable.SubjectResolver.findByIdsOrIdentifiers(Collection, String)
Copyright © 2016 Internet2. All rights reserved.