\SyncrotronService
Service layer for syncrotron interactions. Largely, this is responsible for publishing the list of changes on this node for the relevant nodes that might dial in
- Author: marcus@silverstripe.com.au
- License: BSD License http://silverstripe.org/bsd-license/
Synopsis
class SyncrotronService
{
- // constants
- const SERVICE_URL = 'jsonservice/Syncrotron/listUpdates';
- // members
- private boolean $strictAccess = true;
- private type $filterDate = 'UpdatedUTC';
- private DataService $dataService;
- private klogger $log;
- // methods
- public void __construct()
- public array webEnabledMethods()
- public void setStrictAccess()
- public void setFilterDate()
- public DataObjectSet listUpdates()
- public void getUpdates()
- public void processUpdatedObject()
- public void syncroObject()
- public void unsyncroObject()
Constants
Name | Value |
---|---|
SERVICE_URL | 'jsonservice/Syncrotron/listUpdates' |
Members
private
- $dataService — DataService
- $filterDate
—
type
Which date field is used to filter the list of updates to send? - $log
—
klogger
Logger - $strictAccess
—
boolean
Do we require strict permission checking?
Methods
public
- __construct()
- getUpdates() — Get updates from the remote systems
- listUpdates() — Lists all updated data objects since a particular date that the caller would be interested in
- processUpdatedObject() — process updates based on the provided array of data from the remote system
- setFilterDate() — Set the filter date value
- setStrictAccess() — Set strict access
- syncroObject() — Converts an object into a serialised form used for sending over the wire
- unsyncroObject() — Set properties on an item based on a syncro serialised object
- webEnabledMethods() — The list of methods accessible as webservices.