ingo@11: package de.intevation.flys.client.client.services; ingo@11: ingo@11: import com.google.gwt.user.client.rpc.RemoteService; ingo@11: import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; ingo@11: ingo@215: import de.intevation.flys.client.shared.exceptions.ServerException; ingo@11: import de.intevation.flys.client.shared.model.Artifact; bjoern@3865: import de.intevation.flys.client.shared.model.Collection; ingo@11: sascha@843: import de.intevation.flys.client.shared.model.Recommendation; sascha@843: ingo@11: /** ingo@11: * This interface provides artifact specific services as CREATE, DESCRIBE, FEED, ingo@11: * ADVANCE and OUT. ingo@11: * ingo@11: * @author Ingo Weinzierl ingo@11: */ ingo@11: @RemoteServiceRelativePath("artifact") ingo@11: public interface ArtifactService extends RemoteService { ingo@11: ingo@11: /** ingo@11: * This method creates a new artifact based on the given factory. ingo@11: * ingo@14: * @param serverUrl The url of the artifact server. ingo@229: * @param locale The locale used for the request. ingo@11: * @param factory The factory that should be used for the artifact creation. ingo@11: * ingo@11: * @return the new artifact. ingo@11: */ ingo@803: public Artifact create( sascha@843: String locale, sascha@843: String factory, sascha@843: Recommendation recommendation ingo@803: ) throws ServerException; bjoern@3865: bjoern@3865: /** bjoern@3865: * Create a new GaugeDischageCurveArtifact bjoern@3865: * bjoern@3865: * @param collection the collection to add the artifact to bjoern@3865: * @param river the river bjoern@3865: * @param gaugeref reference id of the gauge bjoern@3865: */ bjoern@3980: public Artifact createGaugeDischargeCurveArtifact( bjoern@3865: Collection collection, bjoern@3865: String locale, bjoern@3865: String river, bjoern@3865: Long gaugeref bjoern@3865: ) throws ServerException; rrenkert@5503: rrenkert@5503: /** rrenkert@5503: * Create a new SQRelationArtifact rrenkert@5503: * rrenkert@5503: * @param collection the collection to add the artifact to rrenkert@5503: * @param river the river rrenkert@5503: * @param measurementStation the measurement station id rrenkert@5503: */ rrenkert@5503: public Artifact createSQRelationArtifact( rrenkert@5503: Collection collection, rrenkert@5503: String locale, rrenkert@5503: String river, rrenkert@5503: int measurementStation rrenkert@5503: ) throws ServerException; ingo@11: } ingo@11: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :