Package cz.metacentrum.perun.core.impl
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 cz.metacentrum.perun.core.impl.ExtSourceSql
DBPOOL, URL, USER
Fields inherited from class cz.metacentrum.perun.core.impl.ExtSourceImpl
perunBl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindSubjects
(String searchString) Finds all subjects with attributes in the external source, that contains searchString.findSubjects
(String searchString, int maxResults) Finds all subjects with attributes in the external source, that contains searchString limited by the maxResultsMethods inherited from class cz.metacentrum.perun.core.impl.ExtSourceSql
close, findSubjectsLogins, findSubjectsLogins, getDataSource, getGroupSubjects, getSubjectByLogin, getSubjectGroups, getUsersSubjects, groupQuery, querySource
Methods inherited from class cz.metacentrum.perun.core.impl.ExtSourceImpl
getAttributes
Methods inherited from class cz.metacentrum.perun.core.api.ExtSource
compareTo, equals, getBeanName, getName, getType, hashCode, serializeToString, setName, setType, toString
Methods inherited from class cz.metacentrum.perun.core.api.Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUid
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface cz.metacentrum.perun.core.implApi.ExtSourceSimpleApi
close, findSubjectsLogins, 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:ExtSourceApi
Finds 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:
findSubjects
in interfaceExtSourceApi
- Parameters:
searchString
-- Returns:
- list of maps, which contains attr_name->attr_value (for all extSource attributes)
- Throws:
ExtSourceUnsupportedOperationException
-
findSubjects
public List<Map<String,String>> findSubjects(String searchString, int maxResults) throws ExtSourceUnsupportedOperationException Description copied from interface:ExtSourceApi
Finds all subjects with attributes in the external source, that contains searchString limited by the maxResultsThis method is used for getting all logins of subjects in external source with all possible attributes.
- Specified by:
findSubjects
in interfaceExtSourceApi
- Parameters:
searchString
-maxResults
- define max number of returned results, 0 means unlimited- Returns:
- list of maps, which contains attr_name->attr_value (for all extSource attributes)
- Throws:
ExtSourceUnsupportedOperationException
-