Package | Description |
---|---|
org.wso2.carbon.registry.synchronization | |
org.wso2.carbon.registry.synchronization.operation |
Modifier and Type | Method and Description |
---|---|
static void |
Utils.addResource(String path)
This method add the resources which are not added to commit
|
static boolean |
RegistrySynchronizer.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 boolean |
RegistrySynchronizer.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 boolean |
RegistrySynchronizer.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 boolean |
RegistrySynchronizer.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 boolean |
RegistrySynchronizer.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 boolean |
RegistrySynchronizer.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 |
Utils.confirmDelete(File file,
File metaFile,
UserInputCallback callback)
This method will obtain the consent from the user to delete the specified file and meta file
(corresponding to the file), if the user agrees to.
|
static boolean |
Utils.contentChanged(File file)
Determines whether the content of the given file has changed.
|
static void |
Utils.copy(File source,
File destination)
copying the contents of one file to another.
|
static org.apache.axiom.om.OMElement |
Utils.createDefaultMetaFile(boolean isCollection,
String path,
String username)
Method to generate the XML content of a meta file.
|
static void |
Utils.createMetaFile(String fileName,
org.apache.axiom.om.OMElement metaData)
This method creates the file that store the meta data of the current directory or file.
|
static String |
Utils.decodeFilename(String path)
This method will obtain the decoded representation of the given encoded resource path.
|
static String |
Utils.encodeResourceName(String resourceName)
This method will obtain the encoded representation of the given resource name.
|
static boolean |
Utils.fileContentChanged(File file) |
static byte[] |
Utils.getBytesFromFile(File file)
Returns the contents of the file in a byte array.
|
static String |
Utils.getMD5(File file)
Method to obtain the MD5 hash value for the given file.
|
static String |
Utils.getMetaFilePath(File f)
Get metadata file path for a given file
|
static String |
Utils.getMetaFilePath(String path)
Get metadata file path for a given file path
|
static org.apache.axiom.om.OMElement |
Utils.getMetaOMElement(String filePath)
Method to obtain the XML representation of the meta information corresponding to the given
file.
|
static org.apache.axiom.om.OMElement |
Utils.getOMElementFromMetaFile(String metaFilePath)
Method to obtain the XML representation of the data contained in a meta file.
|
static org.apache.axiom.om.OMElement |
Utils.readMetaElement(XMLStreamReader xmlReader)
This method reads the xml stream up to the children and return the meta element.
|
static void |
Utils.setResourcesDelete(String dirPath)
This method mark the resources as delete if it no longer exists in the file system
|
static boolean |
RegistrySynchronizer.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 boolean |
RegistrySynchronizer.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.
|
static org.apache.axiom.om.OMElement |
Utils.updateDefaultAddMetaFile(org.apache.axiom.om.OMElement root,
String path,
String username,
boolean isDirectory)
Method to update the XML content of a meta file.
|
static void |
Utils.updateMetaFile(String fileName,
org.apache.axiom.om.OMElement metaData)
This method update the file that store the meta data of the current directory or file.
|
Modifier and Type | Method and Description |
---|---|
boolean |
UpdateCommand.execute(Registry registry)
This method will execute the update command utilizing the various parameters passed when
creating the instance of the command.
|
boolean |
CheckOutCommand.execute(Registry registry)
This method will execute the check-out command utilizing the various parameters passed when
creating the instance of the command.
|
boolean |
CheckInCommand.execute(Registry registry)
This method will execute the check-in command utilizing the various parameters passed when
creating the instance of the command.
|
boolean |
UpdateCommand.execute(Registry registry,
UserInputCallback callback)
This method will execute the update command utilizing the various parameters passed when
creating the instance of the command.
|
boolean |
CheckOutCommand.execute(Registry registry,
UserInputCallback callback)
This method will execute the check-out command utilizing the various parameters passed when
creating the instance of the command.
|
boolean |
CheckInCommand.execute(Registry registry,
UserInputCallback callback)
This method will execute the check-in command utilizing the various parameters passed when
creating the instance of the command.
|
Constructor and Description |
---|
CheckInCommand(String inputFile,
String workingLocation,
String userUrl,
String username,
boolean silentUpdate,
boolean cleanRegistry,
boolean testContentChanged)
Creates an instance of a check-in command which can be executed against a provided registry
instance.
|
CheckOutCommand(String outputFile,
String workingDir,
String userUrl,
String username,
boolean cleanRegistry)
Creates an instance of a check-out command which can be executed against a provided registry
instance.
|
UpdateCommand(String outputFile,
String workingLocation,
String userUrl,
boolean isSilentUpdate,
String username,
boolean cleanRegistry)
Creates an instance of a update command which can be executed against a provided registry
instance.
|
Copyright © 2015 WSO2 Inc. All Rights Reserved.