/src/main/java/org/exoplatform/social/client/api/ClientServiceFactory.java

http://github.com/exosocial/exo.social.client · Java · 51 lines · 9 code · 5 blank · 37 comment · 0 complexity · f5c1b111c6eee081cdde5aa78a2b7ce7 MD5 · raw file

  1. /*
  2. * Copyright (C) 2003-2011 eXo Platform SAS.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Affero General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Affero General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. package org.exoplatform.social.client.api;
  18. import org.exoplatform.social.client.api.service.ActivityService;
  19. import org.exoplatform.social.client.api.service.IdentityService;
  20. import org.exoplatform.social.client.api.service.VersionService;
  21. /**
  22. * The main entry point to get eXo Social Services.
  23. *
  24. * @author <a href="http://hoatle.net">hoatle (hoatlevan at gmail dot com)</a>
  25. * @since May 19, 2011
  26. */
  27. public interface ClientServiceFactory {
  28. /**
  29. * Gets version service to find information about latest and supported social rest ap versions.
  30. *
  31. * @return the version service
  32. */
  33. VersionService createVersionService();
  34. /**
  35. * Gets activity service to work with activities.
  36. *
  37. * @return the activity service
  38. */
  39. ActivityService createActivityService();
  40. /**
  41. * Gets account service for getting or updating identity info.
  42. *
  43. * @return the identity service
  44. */
  45. IdentityService createIdentityService();
  46. }