Package org.opencms.gwt.shared.rpc
Interface I_CmsVfsService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
CmsVfsService
A service interface for retrieving information about the VFS tree.
- Since:
- 8.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createNewExternalLink
(String title, String link, String resourceName, String parentFolderPath) Creates a new external link resource.void
createPropertyDefinition
(String propDef) Creates a new property definition.void
deleteResource
(String sitePath) Deletes a resource from the VFS.void
deleteResource
(CmsUUID structureId) Deletes a resource from the VFS.void
forceUnlock
(CmsUUID structureId) Forces a resource to be unlocked.getAliasesForPage
(CmsUUID uuid) Fetches the aliases for a given page.getBrokenLinks
(String sitePath) Returns a list of potentially broken links, if the given resource was deleted.getBrokenLinks
(CmsUUID structureId) Returns a list of potentially broken links, if the given resource was deleted.getChildren
(String path) Fetches the list of children of a path.getDataViewThumbnail
(String config, String id) Loads a thumbnail for a dataview record.getDefaultProperties
(List<CmsUUID> structureIds) Gets the default property configurations for the given structure ids.Gets the names of defined properties.getDetailName
(CmsUUID id, String locale) Gets the detail name for the given structure id.getFileReplaceInfo
(CmsUUID structureId) Returns the file replace info.getHistoryPreviewInfo
(CmsUUID structureId, String locale, CmsHistoryVersion version) Gets the preview information for a historic version.getLockReportInfo
(CmsUUID structureId) Returns the lock report info.getPageInfo
(String vfsPath) Returns aCmsListInfoBean
for a given resource.getPageInfo
(CmsUUID structureId) Returns aCmsListInfoBean
for a given resource.getPreviewInfo
(String sitePath, String locale) Returns the preview info for the given resource.getPreviewInfo
(CmsUUID structureId, String locale) Returns the preview info for the given resource.getRenameInfo
(CmsUUID structureId) Gets the information necessary for the rename dialog.getResourceHistory
(CmsUUID structureId) Gets the resource history for a given structure id.getResourceStatus
(CmsUUID structureId, String locale, boolean includeTargets, CmsUUID detailContentId, Map<String, String> context) Gets a bean containing status information for a given resource.getRestoreInfo
(CmsUUID structureId) Gets the information which is necessary for opening the 'Restore' dialog for a resource.Returns the root entries of the VFS.getSitePath
(CmsUUID structureId) Returns the site-path for the resource with the given id.getSitePaths
(List<CmsUUID> ids) Gets the site paths corresponding to a list of structure ids.getStructureId
(String vfsPath) Gets the structure id for a given site path.getUploadFolderInfo
(String path) Gets the resource info to display for an upload folder.loadLinkInfo
(CmsUUID structureId) Loads the external link info.Load the data necessary to edit the properties of a resource.Loads the items for the quick launch menu.prepareEdit
(CmsUUID currentPage, String fileNameWithMacros) Prepares to edit a file in the XML content editor.renameResource
(CmsUUID structureId, String newName) Renames a resource.void
restoreResource
(CmsUUID structureId, int version) Reverts a resource to a previous historic version.void
saveAliases
(CmsUUID structureId, List<CmsAliasBean> aliases) Saves aliases for a page.void
saveExternalLink
(CmsUUID structureId, String title, String link, String fileName) Saves the external link.void
saveProperties
(CmsPropertyChangeSet changes, boolean updateIndex) Saves a set of property changes.substituteLinkForRootPath
(String currentSiteRoot, String rootPath) Returns the absolute link to the given root path.void
syncDeleteResource
(CmsUUID structureId) Deletes a resource from the VFS.void
Undeletes a resource.void
undoChanges
(CmsUUID structureId, boolean undoMove) Undoes the changes to a given resource, i.e.validateAliases
(CmsUUID uuid, Map<String, String> aliasPaths) Validates alias paths for a page.
-
Method Details
-
createNewExternalLink
void createNewExternalLink(String title, String link, String resourceName, String parentFolderPath) throws CmsRpcException Creates a new external link resource.- Parameters:
title
- the titlelink
- the linkresourceName
- the name of the link resource to createparentFolderPath
- the parent folder site path- Throws:
CmsRpcException
- if something goes wrong
-
createPropertyDefinition
Creates a new property definition.- Parameters:
propDef
- the name of the property- Throws:
CmsRpcException
- if something goes wrong
-
deleteResource
Deletes a resource from the VFS.- Parameters:
structureId
- the structure id of the resource to delete- Throws:
CmsRpcException
- if something goes wrong
-
deleteResource
Deletes a resource from the VFS.- Parameters:
sitePath
- the site path of the resource to delete- Throws:
CmsRpcException
- if something goes wrong
-
forceUnlock
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- Throws:
CmsRpcException
- if something goes wrong
-
getAliasesForPage
Fetches the aliases for a given page.- Parameters:
uuid
- the structure id of the page- Returns:
- the lists of aliases for the page
- Throws:
CmsRpcException
- if something goes wrong
-
getBrokenLinks
Returns a list of potentially broken links, if the given resource was deleted.- Parameters:
structureId
- the resource structure id- Returns:
- a list of potentially broken links
- Throws:
CmsRpcException
- if something goes wrong
-
getBrokenLinks
Returns a list of potentially broken links, if the given resource was deleted.- Parameters:
sitePath
- the resource site-path- Returns:
- a list of potentially broken links
- Throws:
CmsRpcException
- if something goes wrong
-
getChildren
Fetches the list of children of a path.- Parameters:
path
- the path for which the list of children should be retrieved- Returns:
- the children of the path
- Throws:
CmsRpcException
- if something goes wrong
-
getDataViewThumbnail
Loads a thumbnail for a dataview record.- Parameters:
config
- the dataview configuration stringid
- the record id- Returns:
- the URL of the thumbnail
- Throws:
CmsRpcException
- if something goes wrong
-
getDefaultProperties
Map<CmsUUID,Map<String, getDefaultPropertiesCmsXmlContentProperty>> (List<CmsUUID> structureIds) throws CmsRpcException Gets the default property configurations for the given structure ids.- Parameters:
structureIds
- the structure ids for which the property configurations should be fetched- Returns:
- a map from the given structure ids to their default property configurations
- Throws:
CmsRpcException
- if something goes wrong
-
getDefinedProperties
Gets the names of defined properties.- Returns:
- the list of names for all defined properties
- Throws:
CmsRpcException
- if something goes wrong
-
getDetailName
Gets the detail name for the given structure id.- Parameters:
id
- the structure id of a contentlocale
- the locale to use- Returns:
- the detail name for the structure id
- Throws:
CmsRpcException
- if something goes wrong
-
getFileReplaceInfo
Returns the file replace info.- Parameters:
structureId
- the structure id of the file to replace- Returns:
- the file replace info
- Throws:
CmsRpcException
- if the RPC call goes wrong
-
getLockReportInfo
Returns the lock report info.- Parameters:
structureId
- the structure id of the resource to get the report for- Returns:
- the lock report info
- Throws:
CmsRpcException
- if something goes wrong
-
getPageInfo
Returns aCmsListInfoBean
for a given resource.- Parameters:
structureId
- the structure id to create theCmsListInfoBean
for- Returns:
- the
CmsListInfoBean
for a given resource - Throws:
CmsRpcException
- if the RPC call goes wrong
-
getPageInfo
Returns aCmsListInfoBean
for a given resource.- Parameters:
vfsPath
- the vfs path to create theCmsListInfoBean
for- Returns:
- the
CmsListInfoBean
for a given resource - Throws:
CmsRpcException
- if the RPC call goes wrong
-
getPreviewInfo
Returns the preview info for the given resource.- Parameters:
structureId
- the resource structure idlocale
- the requested locale- Returns:
- the preview info
- Throws:
CmsRpcException
- if something goes wrong
-
getPreviewInfo
Returns the preview info for the given resource.- Parameters:
sitePath
- the resource site pathlocale
- the requested locale- Returns:
- the preview info
- Throws:
CmsRpcException
- if something goes wrong
-
getRenameInfo
Gets the information necessary for the rename dialog.- Parameters:
structureId
- the structure id of the resource to rename- Returns:
- the information needed for the rename dialog
- Throws:
CmsRpcException
- if something goes wrong
-
getResourceHistory
Gets the resource history for a given structure id.- Parameters:
structureId
- the structure id of a resource- Returns:
- the history for the given resource
- Throws:
CmsRpcException
- if something goes wrong
-
getResourceStatus
CmsResourceStatusBean getResourceStatus(CmsUUID structureId, String locale, boolean includeTargets, CmsUUID detailContentId, Map<String, String> context) throws CmsRpcExceptionGets a bean containing status information for a given resource.- Parameters:
structureId
- the structure id of a resourcelocale
- the locale for which we want the resource informationincludeTargets
- true if relation targets should also be fetcheddetailContentId
- the structure id of the detail content if presentcontext
- additional context-dependent parameters used for providing additional information- Returns:
- the resource status
- Throws:
CmsRpcException
- if something goes wrong
-
getRestoreInfo
Gets the information which is necessary for opening the 'Restore' dialog for a resource.- Parameters:
structureId
- the structure id of the resource- Returns:
- the information for the resource
- Throws:
CmsRpcException
- if something goes wrong
-
getRootEntries
Returns the root entries of the VFS.- Returns:
- a list of root entries
- Throws:
CmsRpcException
- if something goes wrong
-
getSitePath
Returns the site-path for the resource with the given id.- Parameters:
structureId
- the structure id- Returns:
- the site-path or
null
if not available - Throws:
CmsRpcException
- if something goes wrong
-
getSitePaths
Gets the site paths corresponding to a list of structure ids.If for any of the structure ids in the input list the corresponding resource can not be read, it will be skipped.
- Parameters:
ids
- a list of structure ids- Returns:
- the list of paths corresponding to the structure ids
- Throws:
CmsRpcException
-
getStructureId
Gets the structure id for a given site path.- Parameters:
vfsPath
- the site path- Returns:
- the structure id
- Throws:
CmsRpcException
- if something goes wrong
-
getUploadFolderInfo
Gets the resource info to display for an upload folder.- Parameters:
path
- the folder path- Returns:
- the info to display
- Throws:
CmsRpcException
- if something goes wrong
-
loadLinkInfo
Loads the external link info.- Parameters:
structureId
- the external link structure id- Returns:
- the external link info
- Throws:
CmsRpcException
- if something goes wrong
-
loadPropertyData
Load the data necessary to edit the properties of a resource.- Parameters:
id
- the structure id of a resource- Returns:
- the property information for that resource
- Throws:
CmsRpcException
- if something goes wrong
-
prepareEdit
CmsPrepareEditResponse prepareEdit(CmsUUID currentPage, String fileNameWithMacros) throws CmsRpcException Prepares to edit a file in the XML content editor.- Parameters:
currentPage
- the current page from which the editor should be openedfileNameWithMacros
- the file name, which may contain macros- Returns:
- a bean with more information about the file to edit
- Throws:
CmsRpcException
- if something goes wrong
-
renameResource
Renames a resource.- Parameters:
structureId
- the structure id of the resource to renamenewName
- the new resource name- Returns:
- null or an error message
- Throws:
CmsRpcException
- if something goes wrong
-
restoreResource
Reverts a resource to a previous historic version.- Parameters:
structureId
- the structure id of the resource to revertversion
- the version to which the resource should be reverted- Throws:
CmsRpcException
- if something goes wrong
-
saveAliases
Saves aliases for a page.- Parameters:
structureId
- the structure id of the pagealiases
- the aliases which should be saved for the page- Throws:
CmsRpcException
- if something goes wrong
-
saveExternalLink
void saveExternalLink(CmsUUID structureId, String title, String link, String fileName) throws CmsRpcException Saves the external link.- Parameters:
structureId
- the link structure idtitle
- the link titlelink
- the linkfileName
- the file name- Throws:
CmsRpcException
- if something goes wrong
-
substituteLinkForRootPath
Returns the absolute link to the given root path.- Parameters:
currentSiteRoot
- the current siterootPath
- the root path- Returns:
- the absolute link
- Throws:
CmsRpcException
- if something goes wrong processing the request
-
syncDeleteResource
Deletes a resource from the VFS.- Parameters:
structureId
- the structure id of the resource to delete- Throws:
CmsRpcException
- if something goes wrong
-
undelete
Undeletes a resource.- Parameters:
structureId
- the structure id of the resource to undelete- Throws:
CmsRpcException
- if something goes wrong
-
undoChanges
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 undoundoMove
- true if move operations should be undone- Throws:
CmsRpcException
- if something goes wrong
-
validateAliases
Map<String,String> validateAliases(CmsUUID uuid, Map<String, String> aliasPaths) throws CmsRpcExceptionValidates alias paths for a page.- Parameters:
uuid
- the structure id of the pagealiasPaths
- a map from (arbitrary) id strings to alias paths- Returns:
- a map which maps the same id strings to validation results
- Throws:
CmsRpcException
- if something goes wrong
-