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
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnresolvedReferencesConfigurationItemConverter(com.xebialabs.xlrelease.repository.ConfigurationRepository configurationRepository, com.xebialabs.deployit.plumbing.serialization.ResolutionContext resolutionContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.xebialabs.xlrelease.repository.ConfigurationRepository
     
    com.xebialabs.deployit.plumbing.serialization.ResolutionContext
     
    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)
     
    void
    resolveReferences(com.xebialabs.deployit.plugin.api.services.Repository repository)
     
    protected void
    writeCiProperty(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, writeStringProperty

    Methods 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, writeProperties, writeProperty, writeValidationMessages

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.xebialabs.deployit.plumbing.serialization.ConfigurationItemReferenceResolver

    resolveReferencesWithFallback

    Methods 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

      public static final String 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:
      writeCiProperty in class com.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:
      readStringProperty in class com.xebialabs.deployit.core.xml.PasswordEncryptingCiConverter
    • resolveReferences

      public void resolveReferences(com.xebialabs.deployit.plugin.api.services.Repository repository)
      Overrides:
      resolveReferences in class com.xebialabs.xltype.serialization.ConfigurationItemConverter
    • getConfigurationRepository

      public com.xebialabs.xlrelease.repository.ConfigurationRepository getConfigurationRepository()
      Specified by:
      getConfigurationRepository in interface com.xebialabs.deployit.plumbing.serialization.ConfigurationItemReferenceResolver
    • getResolutionContext

      public com.xebialabs.deployit.plumbing.serialization.ResolutionContext getResolutionContext()
      Specified by:
      getResolutionContext in interface com.xebialabs.deployit.plumbing.serialization.ResolutionContextAware