PageRenderTime 14ms CodeModel.GetById 8ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/v3.2/nimbits-tds/src/com/nimbits/client/service/category/CategoryServiceAsync.java

http://nimbits-server.googlecode.com/
Java | 42 lines | 21 code | 9 blank | 12 comment | 0 complexity | 8bdc5c65daf0719e3771a71976110709 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.category;
15
16import com.google.gwt.user.client.rpc.AsyncCallback;
17import com.nimbits.client.exception.NimbitsException;
18import com.nimbits.client.model.category.Category;
19import com.nimbits.client.model.category.CategoryName;
20import com.nimbits.client.model.email.EmailAddress;
21import com.nimbits.client.model.user.User;
22
23import java.util.List;
24
25public interface CategoryServiceAsync {
26    void getCategories(final boolean includePoints, final boolean includeDiagrams, final boolean includeAlertState,
27                       AsyncCallback<List<Category>> asyncCallback) throws NimbitsException;
28
29    void getConnectionCategories(final boolean includePoints, final boolean includeDiagrams, final EmailAddress email,
30                                 AsyncCallback<List<Category>> asyncCallback) throws NimbitsException;
31
32    void addCategory(final CategoryName CategoryName,
33                     AsyncCallback<Category> asyncCallback) throws NimbitsException;
34
35    void deleteCategory(final Category c,
36                        AsyncCallback<Void> asyncCallback);
37
38    void getCategories(final User u, final boolean includePoints, final boolean includeDiagrams,
39                       AsyncCallback<List<Category>> callback);
40
41    void getCategoryByName(final CategoryName categoryName, final boolean includePoints, final boolean includeDiagrams, AsyncCallback<Category> async) throws NimbitsException;
42}