Package cz.metacentrum.perun.core.impl
Class ExtSourceEGISSO
- All Implemented Interfaces:
ExtSourceApi
,ExtSourceSimpleApi
,Serializable
,Comparable<PerunBean>
This extSource is just for use loading users from LDAP of EGI SSO Need to be concrete because special parsing of user
certificates.
- Author:
- Michal Stava invalid input: '<'stavamichal@gmail.com>
- See Also:
-
Field Summary
Fields inherited from class cz.metacentrum.perun.core.impl.ExtSourceLdap
dirContext, filteredQuery, LOG, mapping
Fields inherited from class cz.metacentrum.perun.core.impl.ExtSourceImpl
perunBl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetGroupSubjects
(Map<String, String> attributes) Get the list of the subjects in the external group.getSubjectGroups
(Map<String, String> attributes) Get the list of the subject groups in the external source.Get the list of subjects from the external source.querySource
(String query, String base, int maxResults) Query LDAP using query in defined base.Methods inherited from class cz.metacentrum.perun.core.impl.ExtSourceLdap
close, findSubjects, findSubjects, findSubjectsLogins, findSubjectsLogins, getContext, getLdapAttributeValue, getSubjectAttributes, getSubjectByLogin, initContext
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.ExtSourceApi
findSubjects, findSubjects
Methods inherited from interface cz.metacentrum.perun.core.implApi.ExtSourceSimpleApi
close, findSubjectsLogins, findSubjectsLogins, getSubjectByLogin
-
Constructor Details
-
ExtSourceEGISSO
public ExtSourceEGISSO()
-
-
Method Details
-
getGroupSubjects
Description copied from interface:ExtSourceSimpleApi
Get the list of the subjects in the external group.- Specified by:
getGroupSubjects
in interfaceExtSourceSimpleApi
- Overrides:
getGroupSubjects
in classExtSourceLdap
- Parameters:
attributes
- map of attributes used for quering the external source- Returns:
- list of maps, which contains attr_name->attr_value, e.g. firstName->Michal
-
getSubjectGroups
public List<Map<String,String>> getSubjectGroups(Map<String, String> attributes) throws ExtSourceUnsupportedOperationExceptionDescription copied from interface:ExtSourceSimpleApi
Get the list of the subject groups in the external source.- Specified by:
getSubjectGroups
in interfaceExtSourceSimpleApi
- Overrides:
getSubjectGroups
in classExtSourceLdap
- Parameters:
attributes
- map of attributes used for quering the external source- Returns:
- list of maps, which contains attr name and attr value
- Throws:
ExtSourceUnsupportedOperationException
-
getUsersSubjects
Description copied from interface:ExtSourceSimpleApi
Get the list of subjects from the external source.- Specified by:
getUsersSubjects
in interfaceExtSourceSimpleApi
- Overrides:
getUsersSubjects
in classExtSourceLdap
- Returns:
- list of maps, which contains attr_name->attr_value, e.g. firstName->Michal
-
processResultToSubject
-
querySource
Description copied from class:ExtSourceLdap
Query LDAP using query in defined base. Results can be limited to the maxResults.- Overrides:
querySource
in classExtSourceLdap
- Parameters:
query
-base
-maxResults
-- Returns:
- List of Map of the LDAP attribute names and theirs values
-