Package com.atlassian.crowd.migration
Class SAMLTrustEntityMapper
java.lang.Object
com.atlassian.crowd.migration.GenericMapper
com.atlassian.crowd.migration.SAMLTrustEntityMapper
- All Implemented Interfaces:
Mapper
This mapper will handle the mapping of a
SAMLTrustEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlassian.crowd.migration.GenericMapper
GenericMapper.Exporter<T>, GenericMapper.Importer<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.atlassian.crowd.migration.GenericMapper
DATABASE_DATE_FORMAT, DATE_CONVERTER_FOR_EXPORT, LEGACY_XML_DATE_FORMAT, logger, PLUGIN_KEY_PREFIX
-
Constructor Summary
ConstructorDescriptionSAMLTrustEntityMapper
(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, SAMLTrustDAO samlTrustDAO, PropertyManager propertyManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addConfigToXml
(org.dom4j.Element xml, SAMLTrustEntity config) org.dom4j.Element
Exports to V2 XML.void
importXml
(org.dom4j.Element root) Imports V2 XML.Methods inherited from class com.atlassian.crowd.migration.GenericMapper
addEntities, addEntitiesViaMerge, addEntitiesViaReplicate, addEntity, addEntity, addEntityViaMerge, addEntityViaSave, clearSession, exportXml, getAttributeValue, getBoolean, getBoolean, getDateConverterForXml, getDateFromTimestamp, getDirectoryTypeFromLegacyCode, getLong, getNameFromLegacyCode, getOperationTypeFromLegacyPermissionName, getOptionalValue, getSessionFactory, getString, getValue, importXml, setCDATA, setText, setTimestamp
-
Field Details
-
SAML_CFGS_XML_ROOT
- See Also:
-
SAML_CFG_XML_NODE
- See Also:
-
SAML_CFG_XML_CERTIFICATE_NODE
- See Also:
-
SAML_CFGS_XML_ID
- See Also:
-
SAML_CFGS_XML_PEM_KEY
- See Also:
-
SAML_CFG_XML_CERTIFICATE_PEM_CERT
- See Also:
-
SAML_CFG_XML_CERTIFICATE_CREATED_TS
- See Also:
-
SAML_CFG_XML_CERTIFICATE_EXPIRATION_TS
- See Also:
-
SAML_CFG_XML_ENABLED
- See Also:
-
-
Constructor Details
-
SAMLTrustEntityMapper
public SAMLTrustEntityMapper(org.hibernate.SessionFactory sessionFactory, BatchProcessor batchProcessor, SAMLTrustDAO samlTrustDAO, PropertyManager propertyManager)
-
-
Method Details
-
exportXml
Description copied from interface:Mapper
Exports to V2 XML.- Specified by:
exportXml
in interfaceMapper
- Parameters:
options
- map of arbitrarty options.- Returns:
- XML element, or null if you are not mapping
- Throws:
ExportException
- error producing XML.
-
addConfigToXml
-
importXml
Description copied from interface:Mapper
Imports V2 XML.- Specified by:
importXml
in interfaceMapper
- Parameters:
root
- root XML element.- Throws:
ImportException
- error importing data.
-