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

com.github.nagyesta.lowkeyvault.service.EntityId Maven / Gradle / Ivy

There is a newer version: 2.5.81
Show newest version
package com.github.nagyesta.lowkeyvault.service;

import java.net.URI;
import java.util.Optional;

public interface EntityId {

    String entityType();

    URI vault();

    String id();

    String version();

    default String asString() {
        return entityType() + ":" + vault() + "/" + id() + "/" + Optional.ofNullable(version()).orElse("--");
    }

    URI asUriNoVersion(URI vaultUri);

    URI asUri(URI vaultUri);

    URI asRecoveryUri(URI vaultUri);

    URI asUri(URI vaultUri, String query);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy