public class SyncServiceUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SyncServiceUtil.SortByNodePath |
| Constructor and Description |
|---|
SyncServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<SyncServiceMultiOpResult> |
createPaths(SyncService svc,
List<SyncServiceMultiOp> opList)
Attempt to create the paths present in the list.
|
static void |
deletePath(SyncService svc,
SyncServiceNodePath path,
boolean deleteParent)
Delete a path hierarchy.
|
static void |
deletePaths(SyncService svc,
List<SyncServiceNodePath> pathList,
boolean deleteParent)
Delete a set of path hierarchies.
|
static SyncServiceNodePath |
skipTailNodeFromPath(SyncServiceNodePath path) |
public static SyncServiceNodePath skipTailNodeFromPath(SyncServiceNodePath path)
public static List<SyncServiceMultiOpResult> createPaths(SyncService svc, List<SyncServiceMultiOp> opList) throws ServiceNotAvailableException, SyncServiceException.NodeExistsException, InterruptedException
svc - sync service objectopList - List of Multi operationsServiceNotAvailableException - Sync service is not UPSyncServiceException.NodeExistsException - Node exists exceptionInterruptedException - Operation interrupted exceptionpublic static void deletePath(SyncService svc, SyncServiceNodePath path, boolean deleteParent) throws ServiceNotAvailableException, InterruptedException
svc - sync servicepath - path to be deleteddeleteParent - should we delete the parent node of the hierarchyInterruptedException - Operation interrupted exceptionServiceNotAvailableException - Sync service is not Uppublic static void deletePaths(SyncService svc, List<SyncServiceNodePath> pathList, boolean deleteParent) throws ServiceNotAvailableException, InterruptedException
svc - sync service handlepathList - list of the paths to be deleteddeleteParent - should we delete the parent node of the hierarchiesInterruptedException - Operation interrupted exceptionServiceNotAvailableException - Sync service not UpCopyright © 2014. All Rights Reserved.