PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/v3.2/nimbits-tds/src/com/nimbits/client/service/diagram/DiagramServiceAsync.java

http://nimbits-server.googlecode.com/
Java | 42 lines | 20 code | 10 blank | 12 comment | 0 complexity | b348dccc1044e1f374b07782f02a1346 MD5 | raw file
 1/*
 2 * Copyright (c) 2010 Tonic Solutions LLC.
 3 *
 4 * http://www.nimbits.com
 5 *
 6 *
 7 * Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
 8 *
 9 * http://www.gnu.org/licenses/gpl.html
10 *
11 * Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
12 */
13
14package com.nimbits.client.service.diagram;
15
16import com.google.gwt.user.client.rpc.AsyncCallback;
17import com.nimbits.client.exception.NimbitsException;
18import com.nimbits.client.exceptions.DiagramNotFoundException;
19import com.nimbits.client.exceptions.ObjectProtectionException;
20import com.nimbits.client.model.category.CategoryName;
21import com.nimbits.client.model.diagram.Diagram;
22import com.nimbits.client.model.diagram.DiagramName;
23import com.nimbits.client.model.user.User;
24
25import java.util.Map;
26import java.util.Set;
27
28public interface DiagramServiceAsync {
29    void getBlobStoreUrl(final String url, final AsyncCallback<String> async);
30
31    void moveDiagram(final DiagramName diagramName, final CategoryName targetCategoryName, final AsyncCallback<Void> asyncCallback) throws NimbitsException;
32
33    void deleteDiagram(final Diagram diagram, final AsyncCallback<Void> asyncCallback);
34
35    void getDiagramsByName(final long diagramOwnerId, final Set<DiagramName> names, final AsyncCallback<Map<DiagramName, Diagram>> async) throws NimbitsException;
36
37    void updateDiagram(final Diagram diagram, final AsyncCallback<Diagram> asyncCallback) throws NimbitsException;
38
39    void getDiagramByUuid(final String diagram, final AsyncCallback<Diagram> asyncCallback) throws ObjectProtectionException, DiagramNotFoundException, NimbitsException;
40
41    void checkDiagramProtection(final User loggedInUser, final User diagramOwner, final Diagram d, final AsyncCallback<Boolean> async);
42}