public class SourcesXmlResolver extends Object implements SubjectResolver
subject.properties.
| 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 SubjectResolverpublic Subject find(String id) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
find in interface SubjectResolverid - 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 SubjectResolverid - 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 SubjectResolverquery - 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 SubjectResolverquery - 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 SubjectResolverid - 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 SubjectResolverid - 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 SubjectResolverIllegalArgumentException - if id is null.SourceUnavailableException - if source cannot be returned.SubjectResolver.getSource(String)public Set<Source> getSources()
getSources in interface SubjectResolverSubjectResolver.getSources()public Set<Source> getSources(String subjectType) throws IllegalArgumentException
subjectType - IllegalArgumentExceptionSubjectResolver#getSources(String)public Subject findByIdOrIdentifier(String idOrIdentifier) throws IllegalArgumentException, SubjectNotFoundException, SubjectNotUniqueException
findByIdOrIdentifier in interface SubjectResolveridOrIdentifier - 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 SubjectResolverid - 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 SubjectResolverstemName - 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 SubjectResolverquery - 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 SubjectResolverquery - 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 SubjectResolverstemName - 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 SubjectResolverstemName - 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)
SubjectResolverfindAll in interface SubjectResolverSubjectResolver.findAll(String, Set)public SearchPageResult findPage(String query, Set<Source> sources) throws SourceUnavailableException
SubjectResolverfindPage in interface SubjectResolverSourceUnavailableExceptionSubjectResolver.findPage(String, Set)public Map<String,Subject> findByIdentifiers(Collection<String> identifiers) throws IllegalArgumentException
findByIdentifiers in interface SubjectResolverIllegalArgumentException - if any parameter is null.SubjectResolver.findByIdentifiers(Collection)public Map<String,Subject> findByIdentifiers(Collection<String> identifiers, String source) throws IllegalArgumentException, SourceUnavailableException
findByIdentifiers in interface SubjectResolversource - 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 SubjectResolverids - 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 SubjectResolversource - 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 SubjectResolveridsOrIdentifiers - Subject identifiers to search on.IllegalArgumentException - if any parameter is null.SubjectResolver.findByIdsOrIdentifiers(Collection)public Map<String,Subject> findByIdsOrIdentifiers(Collection<String> idsOrIdentifiers, Set<Source> sources) throws IllegalArgumentException
findByIdsOrIdentifiers in interface SubjectResolversources - Source adapters to search within.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 SubjectResolversource - 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.