org.openlca.collaboration.client.DeleteRepositoryInvocation Maven / Gradle / Ivy
package org.openlca.collaboration.client;
import org.openlca.collaboration.client.WebRequests.Type;
class DeleteRepositoryInvocation extends Invocation {
private final String repositoryId;
DeleteRepositoryInvocation(String id) {
super(Type.DELETE, "repository");
this.repositoryId = id;
}
@Override
protected void checkValidity() {
checkNotEmpty(repositoryId, "repositoryId");
}
@Override
protected String query() {
return "/" + repositoryId;
}
}