com.github.nagyesta.lowkeyvault.service.common.BaseVaultFake 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.service.common;
import com.github.nagyesta.lowkeyvault.service.EntityId;
import java.time.OffsetDateTime;
import java.util.Map;
/**
* The base interface of the vault fakes.
*
* @param The type of the key (not versioned).
* @param The versioned key type.
* @param The entity type.
*/
public interface BaseVaultFake> extends TimeAware {
ReadOnlyVersionedEntityMultiMap getEntities();
ReadOnlyVersionedEntityMultiMap getDeletedEntities();
void clearTags(V entityId);
void addTags(V entityId, Map tags);
void setEnabled(V entityId, boolean enabled);
void setExpiry(V entityId, OffsetDateTime notBefore, OffsetDateTime expiry);
void delete(K entityId);
void recover(K entityId);
void purge(K entityId);
}