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, mappingFields inherited from class cz.metacentrum.perun.core.impl.ExtSourceImpl
perunBl -
Constructor Summary
Constructors -
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, initContextMethods inherited from class cz.metacentrum.perun.core.impl.ExtSourceImpl
getAttributesMethods inherited from class cz.metacentrum.perun.core.api.ExtSource
compareTo, equals, getBeanName, getName, getType, hashCode, serializeToString, setName, setType, toStringMethods inherited from class cz.metacentrum.perun.core.api.Auditable
getCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cz.metacentrum.perun.core.implApi.ExtSourceApi
findSubjects, findSubjectsMethods 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:ExtSourceSimpleApiGet the list of the subjects in the external group.- Specified by:
getGroupSubjectsin interfaceExtSourceSimpleApi- Overrides:
getGroupSubjectsin 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:ExtSourceSimpleApiGet the list of the subject groups in the external source.- Specified by:
getSubjectGroupsin interfaceExtSourceSimpleApi- Overrides:
getSubjectGroupsin 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:ExtSourceSimpleApiGet the list of subjects from the external source.- Specified by:
getUsersSubjectsin interfaceExtSourceSimpleApi- Overrides:
getUsersSubjectsin classExtSourceLdap- Returns:
- list of maps, which contains attr_name->attr_value, e.g. firstName->Michal
-
processResultToSubject
-
querySource
Description copied from class:ExtSourceLdapQuery LDAP using query in defined base. Results can be limited to the maxResults.- Overrides:
querySourcein classExtSourceLdap- Parameters:
query-base-maxResults-- Returns:
- List of Map of the LDAP attribute names and theirs values
-