com.github.nagyesta.lowkeyvault.mapper.common.RecoveryAwareConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lowkey-vault-app Show documentation
Show all versions of lowkey-vault-app Show documentation
Assembled application of Lowkey Vault.
package com.github.nagyesta.lowkeyvault.mapper.common;
import com.github.nagyesta.lowkeyvault.context.ApiVersionAware;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import java.net.URI;
/**
* Converter interface supporting both active and deleted entities.
*
* @param The source type.
* @param The active target type.
* @param The deleted target type.
*/
public interface RecoveryAwareConverter extends ApiVersionAware, InitializingBean {
@Nullable
T convert(S source, @NonNull URI vaultUri);
@NonNull
DT convertDeleted(@NonNull S source, @NonNull URI vaultUri);
}