Class ExtSourceIdp
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.ExtSourceIdp
- All Implemented Interfaces:
ExtSourceSimpleApi, Serializable, Comparable<PerunBean>
Dummy ExtSource - IdP - Identity federation
- Author:
- Michal Prochazka michalp@ics.muni.cz
- See Also:
-
Field Summary
Fields inherited from class ExtSourceImpl
perunBl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()If extSource needs to be closed, this method must be called.findSubjectsLogins(String searchString) Finds all subjects logins in the external source, that contains searchString.getGroupSubjects(Map<String, String> attributes) Get the list of the subjects in the external group.getSubjectByLogin(String login) Finds subject from the external source by the primary login used in external source.getSubjectGroups(Map<String, String> attributes) Get the list of the subject groups in the external source.getSubjectsByLogins(List<String> logins) Finds subjects from the external source by their primary logins used in the external source.Get the list of subjects from the external source.Methods 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, setModifiedByUid
-
Constructor Details
-
ExtSourceIdp
public ExtSourceIdp()
-
-
Method Details
-
close
Description copied from interface:ExtSourceSimpleApiIf extSource needs to be closed, this method must be called.- Specified by:
closein interfaceExtSourceSimpleApi- Throws:
ExtSourceUnsupportedOperationException
-
findSubjectsLogins
public List<Map<String,String>> findSubjectsLogins(String searchString) throws ExtSourceUnsupportedOperationException Description copied from interface:ExtSourceSimpleApiFinds all subjects logins in the external source, that contains searchString.This method is used for getting all logins of subjects in external source and then use them to searching in external source for other subjects attributes.
- Specified by:
findSubjectsLoginsin interfaceExtSourceSimpleApi- Parameters:
searchString-- Returns:
- list of maps, which contains attr_name->attr_value but only for login definition eg. login;MichalS
- Throws:
ExtSourceUnsupportedOperationException
-
getGroupSubjects
public List<Map<String,String>> getGroupSubjects(Map<String, String> attributes) throws ExtSourceUnsupportedOperationExceptionDescription copied from interface:ExtSourceSimpleApiGet the list of the subjects in the external group.- Specified by:
getGroupSubjectsin interfaceExtSourceSimpleApi- 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
- Throws:
ExtSourceUnsupportedOperationException
-
getSubjectByLogin
public Map<String,String> getSubjectByLogin(String login) throws ExtSourceUnsupportedOperationException Description copied from interface:ExtSourceSimpleApiFinds subject from the external source by the primary login used in external source.- Specified by:
getSubjectByLoginin interfaceExtSourceSimpleApi- Parameters:
login- login used in the external source- Returns:
- map which contains attr_name -> attr_value, e.g. firstName->Michal
- Throws:
ExtSourceUnsupportedOperationException
-
getSubjectsByLogins
public Map<String, Map<String,String>> getSubjectsByLogins(List<String> logins) throws ExtSourceUnsupportedOperationException Description copied from interface:ExtSourceSimpleApiFinds subjects from the external source by their primary logins used in the external source. For most ext sources, this method is just a loop of `getSubjectByLogin`, but some, such as SQLExtSource, can implement a hefty optimization here. Instead of throwing a `SubjectNotExistsException`, this method just sets the subject as null for the corresponding login, leaving the caller to deal with this case.- Specified by:
getSubjectsByLoginsin interfaceExtSourceSimpleApi- Parameters:
logins- logins used in the external source- Returns:
- map of logins to subject maps that contain attr_name -> attr_value, e.g. firstName->Michal
- Throws:
ExtSourceUnsupportedOperationException
-
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- 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- Returns:
- list of maps, which contains attr_name->attr_value, e.g. firstName->Michal
- Throws:
ExtSourceUnsupportedOperationException
-