/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. package com.nimbits.client.service.category;
  14. import com.google.gwt.user.client.rpc.AsyncCallback;
  15. import com.nimbits.client.exception.NimbitsException;
  16. import com.nimbits.client.model.category.Category;
  17. import com.nimbits.client.model.category.CategoryName;
  18. import com.nimbits.client.model.email.EmailAddress;
  19. import com.nimbits.client.model.user.User;
  20. import java.util.List;
  21. public interface CategoryServiceAsync {
  22. void getCategories(final boolean includePoints, final boolean includeDiagrams, final boolean includeAlertState,
  23. AsyncCallback<List<Category>> asyncCallback) throws NimbitsException;
  24. void getConnectionCategories(final boolean includePoints, final boolean includeDiagrams, final EmailAddress email,
  25. AsyncCallback<List<Category>> asyncCallback) throws NimbitsException;
  26. void addCategory(final CategoryName CategoryName,
  27. AsyncCallback<Category> asyncCallback) throws NimbitsException;
  28. void deleteCategory(final Category c,
  29. AsyncCallback<Void> asyncCallback);
  30. void getCategories(final User u, final boolean includePoints, final boolean includeDiagrams,
  31. AsyncCallback<List<Category>> callback);
  32. void getCategoryByName(final CategoryName categoryName, final boolean includePoints, final boolean includeDiagrams, AsyncCallback<Category> async) throws NimbitsException;
  33. }