teichmann@5835: package org.dive4elements.river.client.client.services; ingo@69: ingo@69: import com.google.gwt.user.client.rpc.RemoteService; ingo@69: import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; ingo@69: teichmann@5835: import org.dive4elements.river.client.shared.exceptions.ServerException; teichmann@5835: import org.dive4elements.river.client.shared.model.Artifact; teichmann@5835: import org.dive4elements.river.client.shared.model.Collection; ingo@69: ingo@69: ingo@69: /** ingo@69: * This interface describes the service to add an existing artifact to an ingo@69: * existing collection. ingo@69: * ingo@69: * @author Ingo Weinzierl ingo@69: */ ingo@69: @RemoteServiceRelativePath("add-artifact") ingo@69: public interface AddArtifactService extends RemoteService { ingo@69: ingo@69: /** ingo@69: * Adds an artifact to a collection. ingo@69: * ingo@69: * @param collection The Collection that should be extended. ingo@69: * @param artifact The artifact that should be added. ingo@69: * @param url The url of the artifact server. ingo@69: * ingo@69: * @return the Collection after the operation. ingo@69: */ ingo@229: Collection add( ingo@229: Collection collection, ingo@229: Artifact artifact, ingo@229: String locale) ingo@215: throws ServerException; ingo@69: } ingo@69: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :