All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nagyesta.lowkeyvault.service.common.BaseVaultFake Maven / Gradle / Ivy

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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy