|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.registry.synchronization.RegistrySynchronizer
public final class RegistrySynchronizer
An interface to the synchronization API of the Registry Kernel. Using the methods of this class, it is possible to synchronize a Registry with the filesystem and vice versa.
Three synchronization operations are currently supported. These are,checkIn(org.wso2.carbon.registry.core.session.UserRegistry, java.lang.String, java.lang.String, boolean, boolean), checkOut(org.wso2.carbon.registry.core.session.UserRegistry, java.lang.String, java.lang.String) and update(org.wso2.carbon.registry.core.session.UserRegistry, java.lang.String).
| Method Summary | |
|---|---|
static void |
checkIn(UserRegistry registry,
String filePath)
Method to check-in some filesystem based resources and collections (which are files and directories), into a specified registry instance. |
static void |
checkIn(UserRegistry registry,
String filePath,
boolean silentUpdate)
Method to check-in some filesystem based resources and collections (which are files and directories), into a specified registry instance. |
static void |
checkIn(UserRegistry registry,
String filePath,
String registryPath)
Method to check-in some filesystem based resources and collections (which are files and directories), into a specified registry instance. |
static void |
checkIn(UserRegistry registry,
String filePath,
String registryPath,
boolean silentUpdate)
Method to check-in some filesystem based resources and collections (which are files and directories), into a specified registry instance. |
static void |
checkIn(UserRegistry registry,
String filePath,
String registryPath,
boolean silentUpdate,
boolean forcedCheckIn)
Method to check-in some filesystem based resources and collections (which are files and directories), into a specified registry instance. |
static void |
checkOut(UserRegistry registry,
String filePath,
String resourcePath)
Method to check-out some resources and collections on a registry into a filesystem which will create some files and directories in the process. |
static boolean |
isCheckedOut(String directoryPath)
Method to determine whether a check-out has already been made at the given directory location. |
static void |
update(UserRegistry registry,
String filePath)
Method to update an already checked out resource or collection to the latest version found on the specified registry instance. |
static void |
update(UserRegistry registry,
String filePath,
boolean silentUpdate)
Method to update an already checked out resource or collection to the latest version found on the specified registry instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void checkIn(UserRegistry registry,
String filePath,
String registryPath,
boolean silentUpdate,
boolean forcedCheckIn)
throws SynchronizationException
registry - the registry instance to be used.filePath - the path on the filesystem containing the corresponding resources and
collections.registryPath - the target path of the registry that check-in should be done.silentUpdate - to ignore the conflicts and perform silent update.forcedCheckIn - check-in the changes irrespective of whether the content has changed
or not.
SynchronizationException - if an error occurred while performing the operation.
public static void checkIn(UserRegistry registry,
String filePath,
String registryPath,
boolean silentUpdate)
throws SynchronizationException
registry - the registry instance to be used.filePath - the path on the filesystem containing the corresponding resources and
collections.registryPath - the target path of the registry that check-in should be done.silentUpdate - to ignore the conflicts and perform silent update.
SynchronizationException - if an error occurred while performing the operation.
public static void checkIn(UserRegistry registry,
String filePath,
String registryPath)
throws SynchronizationException
registry - the registry instance to be used.filePath - the path on the filesystem containing the corresponding resources and
collections.registryPath - the target path of the registry that check-in should be done.
SynchronizationException - if an error occurred while performing the operation.
public static void checkIn(UserRegistry registry,
String filePath)
throws SynchronizationException
registry - the registry instance to be used.filePath - the path on the filesystem containing the corresponding resources and
collections.
SynchronizationException - if an error occurred while performing the operation.
public static void checkIn(UserRegistry registry,
String filePath,
boolean silentUpdate)
throws SynchronizationException
registry - the registry instance to be used.filePath - the path on the filesystem containing the corresponding resources and
collections.silentUpdate - to ignore the conflicts and perform silent update.
SynchronizationException - if an error occurred while performing the operation.
public static void checkOut(UserRegistry registry,
String filePath,
String resourcePath)
throws SynchronizationException
registry - the registry instance to be used.filePath - the path on the filesystem to which the corresponding resources and
collections will be checked out.resourcePath - the path on the registry instance where the resources and the collections
can be found.
SynchronizationException - if an error occurred while performing the operation.
public static void update(UserRegistry registry,
String filePath)
throws SynchronizationException
registry - the registry instance to be used.filePath - the path on the filesystem containing the corresponding resources and
collections.
SynchronizationException - if an error occurred while performing the operation.
public static void update(UserRegistry registry,
String filePath,
boolean silentUpdate)
throws SynchronizationException
update(UserRegistry, String)
command, a .mine and a .server file will be created if a conflict occurred. However, in this
method, you could specify whether conflicts should simply be ignored.
registry - the registry instance to be used.filePath - the path on the filesystem containing the corresponding resources and
collections.silentUpdate - to ignore the conflicts and perform silent update.
SynchronizationException - if an error occurred while performing the operation.public static boolean isCheckedOut(String directoryPath)
directoryPath - the path of the directory on the filesystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||