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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy