org.opencms.gwt.shared.rpc
Interface I_CmsVfsServiceAsync


public interface I_CmsVfsServiceAsync

An asynchronous service interface for retrieving information about the VFS tree.

Since:
8.0.0

Method Summary
 void createPropertyDefinition(java.lang.String propertyName, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Creates a property definition.
 void deleteResource(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Deletes a resource from the VFS.
 void deleteResource(java.lang.String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Deletes a resource from the VFS.
 void forceUnlock(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Forces a resource to be unlocked.
 void getAliasesForPage(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsAliasBean>> callback)
          Fetches the aliases for a given page.
 void getAvailabilityInfo(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsAvailabilityInfoBean> callback)
          Gets a CmsAvailabilityInfoBean for a given resource.
 void getAvailabilityInfo(java.lang.String vfsPath, com.google.gwt.user.client.rpc.AsyncCallback<CmsAvailabilityInfoBean> callback)
          Gets a CmsAvailabilityInfoBean for a given resource.
 void getBrokenLinks(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsDeleteResourceBean> callback)
          Returns a list of potentially broken links, if the given resource was deleted.
 void getBrokenLinks(java.lang.String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<CmsDeleteResourceBean> callback)
          Returns a list of potentially broken links, if the given resource was deleted.
 void getChildren(java.lang.String path, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
          Fetches the list of children of a path.
 void getDefinedProperties(com.google.gwt.user.client.rpc.AsyncCallback<java.util.ArrayList<java.lang.String>> callback)
          Gets the names of defined properties.
 void getFileReplaceInfo(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsReplaceInfo> callback)
          Returns the file replace info.
 void getLockReportInfo(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsLockReportInfo> callback)
          Returns the lock report info.
 void getPageInfo(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsListInfoBean> callback)
          Gets a CmsListInfoBean for a given resource.
 void getPageInfo(java.lang.String vfsPath, com.google.gwt.user.client.rpc.AsyncCallback<CmsListInfoBean> callback)
          Gets a CmsListInfoBean for a given resource.
 void getPreviewInfo(CmsUUID structureId, java.lang.String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsPreviewInfo> callback)
          Returns the preview info for the given resource.
 void getPreviewInfo(java.lang.String sitePath, java.lang.String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsPreviewInfo> callback)
          Returns the preview info for the given resource.
 void getRenameInfo(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsRenameInfoBean> callback)
          Gets the information needed for the Rename dialog.
 void getResourceStatus(CmsUUID structureId, java.lang.String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceStatusBean> callback)
          Gets status information for a single resource.
 void getRestoreInfo(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<CmsRestoreInfoBean> resultCallback)
          Gets the information which is necessary for opening the 'Restore' dialog for a resource.
 void getRootEntries(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
          Returns the root entries of the VFS.
 void getSitePath(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
          Returns the site-path for the resource with the given id.
 void loadPropertyData(CmsUUID id, com.google.gwt.user.client.rpc.AsyncCallback<CmsPropertiesBean> callback)
          Load the data necessary to edit the properties of a resource.
 void prepareEdit(CmsUUID currentPage, java.lang.String fileNameWithMacros, com.google.gwt.user.client.rpc.AsyncCallback<CmsPrepareEditResponse> callback)
          Prepares to edit a file in the XML content editor.
 void renameResource(CmsUUID structureId, java.lang.String newName, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
          Renames a resource.
 void saveAliases(CmsUUID structureId, java.util.List<CmsAliasBean> aliases, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Saves aliases for a page.
 void saveProperties(CmsPropertyChangeSet changes, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Saves a set of property changes.
 void substituteLinkForRootPath(java.lang.String currentSiteRoot, java.lang.String rootPath, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
          Returns the absolute link to the given root path.
 void syncDeleteResource(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Deletes a resource from the VFS.
 void undoChanges(CmsUUID structureId, boolean undoMove, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Undoes the changes to a given resource, i.e. restores its online content to its offline version.
 void validateAliases(CmsUUID structureId, java.util.Map<java.lang.String,java.lang.String> aliasPaths, com.google.gwt.user.client.rpc.AsyncCallback<java.util.Map<java.lang.String,java.lang.String>> callback)
          Validates alias paths for a page.
 

Method Detail

createPropertyDefinition

void createPropertyDefinition(java.lang.String propertyName,
                              com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Creates a property definition.

Parameters:
propertyName - the new property name
callback - the callback

deleteResource

void deleteResource(CmsUUID structureId,
                    com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Deletes a resource from the VFS.

Parameters:
structureId - the structure id of the resource to delete
callback - the callback

deleteResource

void deleteResource(java.lang.String sitePath,
                    com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Deletes a resource from the VFS.

Parameters:
sitePath - the site path of the resource to delete
callback - the callback

forceUnlock

void forceUnlock(CmsUUID structureId,
                 com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Forces a resource to be unlocked. In case the given resource is a folder, all sub-resources are also unlocked.

Parameters:
structureId - the structure id of the resource to unlock
callback - the callback

getAliasesForPage

void getAliasesForPage(CmsUUID structureId,
                       com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsAliasBean>> callback)
Fetches the aliases for a given page.

Parameters:
structureId - the structure id of the page
callback - the async callback

getAvailabilityInfo

void getAvailabilityInfo(CmsUUID structureId,
                         com.google.gwt.user.client.rpc.AsyncCallback<CmsAvailabilityInfoBean> callback)
Gets a CmsAvailabilityInfoBean for a given resource.

Parameters:
structureId - the structure id to create the CmsAvailabilityInfoBean for
callback - the asynchronous callback

getAvailabilityInfo

void getAvailabilityInfo(java.lang.String vfsPath,
                         com.google.gwt.user.client.rpc.AsyncCallback<CmsAvailabilityInfoBean> callback)
Gets a CmsAvailabilityInfoBean for a given resource.

Parameters:
vfsPath - the vfs path to create the CmsAvailabilityInfoBean for
callback - the asynchronous callback

getBrokenLinks

void getBrokenLinks(CmsUUID structureId,
                    com.google.gwt.user.client.rpc.AsyncCallback<CmsDeleteResourceBean> callback)
Returns a list of potentially broken links, if the given resource was deleted.

Parameters:
structureId - the resource structure id
callback - the callback

getBrokenLinks

void getBrokenLinks(java.lang.String sitePath,
                    com.google.gwt.user.client.rpc.AsyncCallback<CmsDeleteResourceBean> callback)
Returns a list of potentially broken links, if the given resource was deleted.

Parameters:
sitePath - the resource site-path
callback - the callback

getChildren

void getChildren(java.lang.String path,
                 com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
Fetches the list of children of a path.

Parameters:
path - the path for which the list of children should be retrieved
callback - the asynchronous callback

getDefinedProperties

void getDefinedProperties(com.google.gwt.user.client.rpc.AsyncCallback<java.util.ArrayList<java.lang.String>> callback)
Gets the names of defined properties.

Parameters:
callback - the callback for the results

getFileReplaceInfo

void getFileReplaceInfo(CmsUUID structureId,
                        com.google.gwt.user.client.rpc.AsyncCallback<CmsReplaceInfo> callback)
Returns the file replace info.

Parameters:
structureId - the structure id of the file to replace
callback - the asynchronous callback

getLockReportInfo

void getLockReportInfo(CmsUUID structureId,
                       com.google.gwt.user.client.rpc.AsyncCallback<CmsLockReportInfo> callback)
Returns the lock report info.

Parameters:
structureId - the structure id of the resource to get the report for
callback - the callback

getPageInfo

void getPageInfo(CmsUUID structureId,
                 com.google.gwt.user.client.rpc.AsyncCallback<CmsListInfoBean> callback)
Gets a CmsListInfoBean for a given resource.

Parameters:
structureId - the structure id to create the CmsListInfoBean for
callback - the asynchronous callback

getPageInfo

void getPageInfo(java.lang.String vfsPath,
                 com.google.gwt.user.client.rpc.AsyncCallback<CmsListInfoBean> callback)
Gets a CmsListInfoBean for a given resource.

Parameters:
vfsPath - the vfs path to create the CmsListInfoBean for
callback - the asynchronous callback

getPreviewInfo

void getPreviewInfo(CmsUUID structureId,
                    java.lang.String locale,
                    com.google.gwt.user.client.rpc.AsyncCallback<CmsPreviewInfo> callback)
Returns the preview info for the given resource.

Parameters:
structureId - the resource structure id
locale - the requested locale
callback - the call back

getPreviewInfo

void getPreviewInfo(java.lang.String sitePath,
                    java.lang.String locale,
                    com.google.gwt.user.client.rpc.AsyncCallback<CmsPreviewInfo> callback)
Returns the preview info for the given resource.

Parameters:
sitePath - the resource site path
locale - the requested locale
callback - the call back

getRenameInfo

void getRenameInfo(CmsUUID structureId,
                   com.google.gwt.user.client.rpc.AsyncCallback<CmsRenameInfoBean> callback)
Gets the information needed for the Rename dialog.

Parameters:
structureId - the structure id of the resource to rename
callback - the callback for the result

getResourceStatus

void getResourceStatus(CmsUUID structureId,
                       java.lang.String locale,
                       com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceStatusBean> callback)
Gets status information for a single resource.

Parameters:
structureId - the structure id of the resource
locale - the locale for which we want the resource information
callback - the callback for the results

getRestoreInfo

void getRestoreInfo(CmsUUID structureId,
                    com.google.gwt.user.client.rpc.AsyncCallback<CmsRestoreInfoBean> resultCallback)
Gets the information which is necessary for opening the 'Restore' dialog for a resource.

Parameters:
structureId - the structure id of the resource
resultCallback - the callback for the result

getRootEntries

void getRootEntries(com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
Returns the root entries of the VFS.

Parameters:
callback - the asynchronous callback

getSitePath

void getSitePath(CmsUUID structureId,
                 com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Returns the site-path for the resource with the given id.

Parameters:
structureId - the structure id
callback - the asynchronous callback

loadPropertyData

void loadPropertyData(CmsUUID id,
                      com.google.gwt.user.client.rpc.AsyncCallback<CmsPropertiesBean> callback)
Load the data necessary to edit the properties of a resource.

Parameters:
id - the structure id of a resource
callback - the asynchronous callback

prepareEdit

void prepareEdit(CmsUUID currentPage,
                 java.lang.String fileNameWithMacros,
                 com.google.gwt.user.client.rpc.AsyncCallback<CmsPrepareEditResponse> callback)
Prepares to edit a file in the XML content editor.

Parameters:
currentPage - the current page from which the editor should be opened
fileNameWithMacros - the file name, which may contain macros
callback - the asynchronous callback

renameResource

void renameResource(CmsUUID structureId,
                    java.lang.String newName,
                    com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Renames a resource.

Parameters:
structureId - the structure id of the resource to rename
newName - the new resource name
callback - the asynchronous callback for the result

saveAliases

void saveAliases(CmsUUID structureId,
                 java.util.List<CmsAliasBean> aliases,
                 com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Saves aliases for a page.

Parameters:
structureId - the structure id of the page
aliases - the aliases which should be saved for the page
callback - the async callback

saveProperties

void saveProperties(CmsPropertyChangeSet changes,
                    com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Saves a set of property changes.

Parameters:
changes - the property changes
callback - the asynchronous callback

substituteLinkForRootPath

@SynchronizedRpcRequest
void substituteLinkForRootPath(java.lang.String currentSiteRoot,
                                                      java.lang.String rootPath,
                                                      com.google.gwt.user.client.rpc.AsyncCallback<java.lang.String> callback)
Returns the absolute link to the given root path.

Parameters:
currentSiteRoot - the current site
rootPath - the root path
callback - the asynchronous callback

syncDeleteResource

@SynchronizedRpcRequest
void syncDeleteResource(CmsUUID structureId,
                                               com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Deletes a resource from the VFS.

Parameters:
structureId - the structure id of the resource to delete
callback - the callback

undoChanges

void undoChanges(CmsUUID structureId,
                 boolean undoMove,
                 com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Undoes the changes to a given resource, i.e. restores its online content to its offline version.

Parameters:
structureId - the structure id of the resource to undo
undoMove - true if move operations should be undone
callback - the callback for the result

validateAliases

void validateAliases(CmsUUID structureId,
                     java.util.Map<java.lang.String,java.lang.String> aliasPaths,
                     com.google.gwt.user.client.rpc.AsyncCallback<java.util.Map<java.lang.String,java.lang.String>> callback)
Validates alias paths for a page.

Parameters:
structureId - the structure id of the page
aliasPaths - a map from (arbitrary) id strings to alias paths
callback - the async callback