Package cz.metacentrum.perun.core.impl
Class ExtSourceISXML
- All Implemented Interfaces:
ExtSourceApi
,ExtSourceSimpleApi
,Serializable
,Comparable<PerunBean>
XML extSource for groups in IS MU
- Author:
- Michal Stava
- See Also:
-
Field Summary
Fields inherited from class cz.metacentrum.perun.core.impl.ExtSourceImpl
perunBl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected InputStream
Get https uri of xml document and create two way ssl connection using truststore and keystore.getGroupSubjects
(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.Methods inherited from class cz.metacentrum.perun.core.impl.ExtSourceXML
close, convertNodeToMap, convertToXpathSearchString, extractValueByRegex, findSubjects, findSubjects, findSubjectsLogins, findSubjectsLogins, getCon, getSubjectByLogin, getUsersSubjects, getValueFromXpath, prepareEnvironment, setCon, xpathParsing
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
-
Constructor Details
-
ExtSourceISXML
public ExtSourceISXML()
-
-
Method Details
-
createTwoWaySSLConnection
Description copied from class:ExtSourceXML
Get https uri of xml document and create two way ssl connection using truststore and keystore.- Overrides:
createTwoWaySSLConnection
in classExtSourceXML
- Parameters:
uri
- https uri to xml document- Returns:
- input stream with xml document
- Throws:
IOException
- if there is some input/output error
-
getGroupSubjects
Description copied from interface:ExtSourceSimpleApi
Get the list of the subjects in the external group.- Specified by:
getGroupSubjects
in interfaceExtSourceSimpleApi
- Overrides:
getGroupSubjects
in classExtSourceXML
- 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 classExtSourceXML
- Parameters:
attributes
- map of attributes used for quering the external source- Returns:
- list of maps, which contains attr name and attr value
- Throws:
ExtSourceUnsupportedOperationException
-