Class ExtSourceSqlComplex
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.ExtSource
cz.metacentrum.perun.core.impl.ExtSourceImpl
cz.metacentrum.perun.core.impl.ExtSourceSql
cz.metacentrum.perun.core.impl.ExtSourceSqlComplex
- All Implemented Interfaces:
ExtSourceApi, ExtSourceSimpleApi, Serializable, Comparable<PerunBean>
- Direct Known Subclasses:
ExtSourceINET, ExtSourceREMS
Complex SQL extSource is extended SQL extSource with ability to get all subjects with all needed attributes by one
query.
- Author:
- Michal Stava invalid input: '<'stavamichal@gmail.com>
- See Also:
-
Field Summary
Fields inherited from class ExtSourceSql
DBPOOL, URL, USERFields inherited from class ExtSourceImpl
perunBl -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ExtSourceSql
close, findSubjectsLogins, getDataSource, getGroupSubjects, getSubjectByLogin, getSubjectGroups, getUsersSubjects, groupQuery, querySourceMethods inherited from class ExtSourceImpl
getAttributesMethods inherited from class ExtSource
compareTo, equals, getBeanName, getName, getType, hashCode, serializeToString, setName, setType, toStringMethods inherited from class Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUidMethods inherited from interface ExtSourceSimpleApi
close, findSubjectsLogins, getGroupSubjects, getSubjectByLogin, getSubjectGroups, getUsersSubjects
-
Constructor Details
-
ExtSourceSqlComplex
public ExtSourceSqlComplex()
-
-
Method Details
-
findSubjects
public List<Map<String,String>> findSubjects(String searchString) throws ExtSourceUnsupportedOperationException Description copied from interface:ExtSourceApiFinds all subjects with attributes in the external source, that contains searchString.This method is used for getting all logins of subjects in external source with all possible attributes.
- Specified by:
findSubjectsin interfaceExtSourceApi- Parameters:
searchString-- Returns:
- list of maps, which contains attr_name->attr_value (for all extSource attributes)
- Throws:
ExtSourceUnsupportedOperationException
-