Class UnresolvedReferencesConfigurationItemConverter
java.lang.Object
com.xebialabs.xltype.serialization.ConfigurationItemConverter
com.xebialabs.deployit.core.xml.PasswordEncryptingCiConverter
com.xebialabs.deployit.plumbing.export.UnresolvedReferencesConfigurationItemConverter
- All Implemented Interfaces:
com.xebialabs.deployit.plumbing.serialization.ConfigurationItemReferenceResolver,com.xebialabs.deployit.plumbing.serialization.ResolutionContextAware,grizzled.slf4j.Logging
public class UnresolvedReferencesConfigurationItemConverter
extends com.xebialabs.deployit.core.xml.PasswordEncryptingCiConverter
implements com.xebialabs.deployit.plumbing.serialization.ConfigurationItemReferenceResolver
A PasswordEncryptingCiConverter extension that doesn't throw errors when reading unresolved CIs or passwords encrypted with a different server key.
CI references are left empty if not found.
Passwords are left with a
DECRYPTION_FAILED_VALUE String.
Custom configurations are written with title.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedReferencesConfigurationItemConverter(com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository, com.xebialabs.deployit.plumbing.serialization.ResolutionContext resolutionContext) -
Method Summary
Modifier and TypeMethodDescriptioncom.xebialabs.xlrelease.repository.ConfigurationRepositorycom.xebialabs.deployit.plumbing.serialization.ResolutionContextprotected voidreadStringProperty(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem configurationItem, com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor propertyDescriptor, com.xebialabs.xltype.serialization.CiReader reader) voidresolveReferences(com.xebialabs.deployit.plugin.api.services.Repository repository) protected voidwriteCiProperty(Object value, com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor propertyDescriptor, com.xebialabs.xltype.serialization.CiWriter writer) Methods inherited from class com.xebialabs.deployit.core.xml.PasswordEncryptingCiConverter
readCollectionOfStringProperty, readMapStringStringProperty, writeCollectionOfCiProperty, writeCollectionOfStringProperty, writeMapStringStringProperty, writeStringPropertyMethods inherited from class com.xebialabs.xltype.serialization.ConfigurationItemConverter
createConfigurationItem, getIdOfCi, getReadCIs, getReferences, readCi, readCiProperty, readCis, readCisOrReferences, readCollectionOfCiProperty, readProperties, readProperty, resolveReferences, setReadValidationMessages, setWriteValidationMessages, type, writeCi, writeCi, writeCis, writeCis, writeLookupValues, writeProperties, writeProperty, writeValidationMessagesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.xebialabs.deployit.plumbing.serialization.ConfigurationItemReferenceResolver
resolveReferencesWithFallbackMethods inherited from interface grizzled.slf4j.Logging
debug, debug, debug, error, error, error, grizzled$slf4j$Logging$$_logger, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, logger, loggerName, trace, trace, trace, warn, warn, warn
-
Field Details
-
DECRYPTION_FAILED_VALUE
-
-
Constructor Details
-
UnresolvedReferencesConfigurationItemConverter
public UnresolvedReferencesConfigurationItemConverter(com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository, com.xebialabs.deployit.plumbing.serialization.ResolutionContext resolutionContext)
-
-
Method Details
-
writeCiProperty
protected void writeCiProperty(Object value, com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor propertyDescriptor, com.xebialabs.xltype.serialization.CiWriter writer) - Overrides:
writeCiPropertyin classcom.xebialabs.xltype.serialization.ConfigurationItemConverter
-
readStringProperty
protected void readStringProperty(com.xebialabs.deployit.plugin.api.udm.ConfigurationItem configurationItem, com.xebialabs.deployit.plugin.api.reflect.PropertyDescriptor propertyDescriptor, com.xebialabs.xltype.serialization.CiReader reader) - Overrides:
readStringPropertyin classcom.xebialabs.deployit.core.xml.PasswordEncryptingCiConverter
-
resolveReferences
public void resolveReferences(com.xebialabs.deployit.plugin.api.services.Repository repository) - Overrides:
resolveReferencesin classcom.xebialabs.xltype.serialization.ConfigurationItemConverter
-
getConfigurationRepository
public com.xebialabs.xlrelease.repository.ConfigurationRepository getConfigurationRepository()- Specified by:
getConfigurationRepositoryin interfacecom.xebialabs.deployit.plumbing.serialization.ConfigurationItemReferenceResolver
-
getResolutionContext
public com.xebialabs.deployit.plumbing.serialization.ResolutionContext getResolutionContext()- Specified by:
getResolutionContextin interfacecom.xebialabs.deployit.plumbing.serialization.ResolutionContextAware
-