Class RestModelAPI
- java.lang.Object
-
- org.alfresco.rest.requests.ModelRequest<RestModelAPI>
-
- org.alfresco.rest.requests.modelAPI.RestModelAPI
-
public class RestModelAPI extends ModelRequest<RestModelAPI>
Defines the entire Rest Model API {@link https://api-explorer.alfresco.com/api-explorer/} select "Model API"
-
-
Field Summary
-
Fields inherited from class org.alfresco.rest.requests.ModelRequest
restWrapper
-
-
Constructor Summary
Constructors Constructor Description RestModelAPI(RestWrapper restWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestAspectModelgetAspect(java.lang.String aspectId)Retrieve aspect by id using GET call on "aspects/{aspectId}"RestAspectsCollectiongetAspects()Retrieve all aspects using GET call on "aspects"RestTypeModelgetType(java.lang.String typeId)Retrieve Type by id using GET call on "types/{typeId}"RestTypesCollectiongetTypes()Retrieve all types using GET call on "types"-
Methods inherited from class org.alfresco.rest.requests.ModelRequest
includePath, usingParams
-
-
-
-
Constructor Detail
-
RestModelAPI
public RestModelAPI(RestWrapper restWrapper)
-
-
Method Detail
-
getAspects
public RestAspectsCollection getAspects()
Retrieve all aspects using GET call on "aspects"- Returns:
- RestAspectsCollection
- Throws:
JsonToModelConversionException
-
getAspect
public RestAspectModel getAspect(java.lang.String aspectId)
Retrieve aspect by id using GET call on "aspects/{aspectId}"- Returns:
- RestAspectModel
- Throws:
JsonToModelConversionException
-
getTypes
public RestTypesCollection getTypes()
Retrieve all types using GET call on "types"- Returns:
- RestTypesCollection
- Throws:
JsonToModelConversionException
-
getType
public RestTypeModel getType(java.lang.String typeId)
Retrieve Type by id using GET call on "types/{typeId}"- Returns:
- RestTypeModel
- Throws:
JsonToModelConversionException
-
-