Class Sync
- java.lang.Object
-
- org.alfresco.rest.requests.ModelRequest<RestPrivateAPI>
-
- org.alfresco.rest.requests.syncServiceAPI.Sync
-
public class Sync extends ModelRequest<RestPrivateAPI>
Declares all Rest API under the /subscribers//subscriptions/ /sync path - Author:
- Meenal Bhave
-
-
Field Summary
-
Fields inherited from class org.alfresco.rest.requests.ModelRequest
restWrapper
-
-
Constructor Summary
Constructors Constructor Description Sync(RestSyncNodeSubscriptionModel subscription, RestWrapper restWrapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestWrapperendSync(RestSyncNodeSubscriptionModel nodeSubscriptionModel, RestSyncSetRequestModel sync)RestSyncSetGetModelgetSync(RestSyncNodeSubscriptionModel nodeSubscriptionModel, RestSyncSetRequestModel sync)Gets the Change Set for the specified subscriber/subscription and SyncId using GET call on /subscribers/{deviceSubscriptionId}/subscriptions/{nodeSubscriptionId}/syncRestSyncSetRequestModelstartSync(RestSyncNodeSubscriptionModel nodeSubscriptionModel, java.util.List<RestSyncSetChangesModel> clientChanges, java.lang.String clientVersion)Request sync for the specified subscriber/subscription using POST call on /subscribers/{deviceSubscriptionId}/subscriptions/{nodeSubscriptionId}/sync-
Methods inherited from class org.alfresco.rest.requests.ModelRequest
includePath, usingParams
-
-
-
-
Constructor Detail
-
Sync
public Sync(RestSyncNodeSubscriptionModel subscription, RestWrapper restWrapper) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
startSync
public RestSyncSetRequestModel startSync(RestSyncNodeSubscriptionModel nodeSubscriptionModel, java.util.List<RestSyncSetChangesModel> clientChanges, java.lang.String clientVersion) throws java.lang.Exception
Request sync for the specified subscriber/subscription using POST call on /subscribers/{deviceSubscriptionId}/subscriptions/{nodeSubscriptionId}/sync- Parameters:
nodeSubscriptionId-clientChanges-- Returns:
- Throws:
java.lang.Exception
-
endSync
public RestWrapper endSync(RestSyncNodeSubscriptionModel nodeSubscriptionModel, RestSyncSetRequestModel sync) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSync
public RestSyncSetGetModel getSync(RestSyncNodeSubscriptionModel nodeSubscriptionModel, RestSyncSetRequestModel sync) throws java.lang.Exception
Gets the Change Set for the specified subscriber/subscription and SyncId using GET call on /subscribers/{deviceSubscriptionId}/subscriptions/{nodeSubscriptionId}/sync- Parameters:
syncRequest-- Returns:
- Throws:
java.lang.Exception
-
-