org.exoplatform.social.client.core.service
Class VersionServiceImpl
java.lang.Object
org.exoplatform.social.client.core.service.VersionServiceImpl
- All Implemented Interfaces:
- VersionService
public class VersionServiceImpl
- extends Object
- implements VersionService
Created by The eXo Platform SAS
Author : eXoPlatform
exo@exoplatform.com
Jun 30, 2011
|
Method Summary |
String |
getLatest()
Gets the latest social rest api version, this version number should be used as the latest and stable version. |
String[] |
getSupported()
Gets the supported social rest api versions, this is for backward compatible. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionServiceImpl
public VersionServiceImpl()
getLatest
public String getLatest()
throws ServiceException
- Description copied from interface:
VersionService
- Gets the latest social rest api version, this version number should be used as the latest and stable version.
This latest version is consider to include all new features and updates.
- Specified by:
getLatest in interface VersionService
- Returns:
- the latest version
- Throws:
ServiceException
getSupported
public String[] getSupported()
throws ServiceException
- Description copied from interface:
VersionService
- Gets the supported social rest api versions, this is for backward compatible. If a client application is using
an older social rest api version, it should just work. The array MUST have the latest to oldest order. For
example: [v2, v1, v1-beta1], not [v1, v2, v1-beta1]
- Specified by:
getSupported in interface VersionService
- Returns:
- an array of supported versions
- Throws:
ServiceException
Copyright © 2011 eXo Platform. All Rights Reserved.