Package org.alfresco.rest.framework
Class Api
java.lang.Object
org.alfresco.rest.framework.Api
- All Implemented Interfaces:
Comparable<Api>
Standard API settings for the Alfresco Rest API
SCOPE - PUBLIC_API - Reserved for public API
- PRIVATE_API - Reserved for private API
VERSION - A positive integer starting at 1.
- Author:
- Gethin James
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
-
Field Details
-
ALFRESCO_PUBLIC
-
-
Method Details
-
getName
-
getScope
-
getVersion
public int getVersion() -
hashCode
public int hashCode() -
equals
-
toString
-
valueOf
public static Api valueOf(String apiName, String apiScope, String apiVersion) throws InvalidArgumentException Creates an valid instance of the Api object- Parameters:
apiName
- a String in lowercaseapiScope
- SCOPEapiVersion
- postive integer- Returns:
- Api
- Throws:
InvalidArgumentException
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Api>
-