org.opencms.gwt
Class CmsVfsService

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.opencms.gwt.CmsGwtService
                      extended by org.opencms.gwt.CmsVfsService
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, I_CmsVfsService

public class CmsVfsService
extends CmsGwtService
implements I_CmsVfsService

A service class for reading the VFS tree.

Since:
8.0.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
CmsVfsService()
           
 
Method Summary
static CmsListInfoBean addLockInfo(CmsObject cms, CmsResource resource, CmsListInfoBean resourceInfo)
          Adds the lock state information to the resource info bean.
protected  java.util.Map<java.lang.String,CmsClientProperty> convertProperties(java.util.List<CmsProperty> properties)
          Converts CmsProperty objects to CmsClientProperty objects.
 void createPropertyDefinition(java.lang.String name)
          Creates a new property definition.
protected  CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource)
          Creates a "broken link" bean based on a resource.
 void deleteResource(CmsUUID structureId)
          Deletes a resource from the VFS.
 void deleteResource(java.lang.String sitePath)
          Deletes a resource from the VFS.
 void forceUnlock(CmsUUID structureId)
          Forces a resource to be unlocked.
 java.util.List<CmsAliasBean> getAliasesForPage(CmsUUID uuid)
          Fetches the aliases for a given page.
 CmsAvailabilityInfoBean getAvailabilityInfo(CmsUUID structureId)
          Returns a CmsAvailabilityInfoBean for a given resource.
 CmsAvailabilityInfoBean getAvailabilityInfo(java.lang.String vfsPath)
          Returns a CmsAvailabilityInfoBean for a given resource.
 CmsDeleteResourceBean getBrokenLinks(CmsUUID structureId)
          Returns a list of potentially broken links, if the given resource was deleted.
 CmsDeleteResourceBean getBrokenLinks(java.lang.String sitePath)
          Returns a list of potentially broken links, if the given resource was deleted.
 java.util.List<CmsVfsEntryBean> getChildren(java.lang.String path)
          Fetches the list of children of a path.
 java.util.ArrayList<java.lang.String> getDefinedProperties()
          Gets the names of defined properties.
 CmsReplaceInfo getFileReplaceInfo(CmsUUID structureId)
          Returns the file replace info.
 CmsLockReportInfo getLockReportInfo(CmsUUID structureId)
          Returns the lock report info.
static java.lang.String getNoPreviewReason(CmsObject cms, CmsResource resource)
          Returns the no preview reason if there is any.
static CmsListInfoBean getPageInfo(CmsObject cms, CmsResource res)
          Gets page information of a resource.
 CmsListInfoBean getPageInfo(CmsUUID structureId)
          Returns a CmsListInfoBean for a given resource.
 CmsListInfoBean getPageInfo(java.lang.String vfsPath)
          Returns a CmsListInfoBean for a given resource.
static CmsListInfoBean getPageInfoWithLock(CmsObject cms, CmsResource resource)
          Returns a bean to display the org.opencms.gwt.client.ui.CmsListItemWidget including the lock state.
 CmsPreviewInfo getPreviewInfo(CmsUUID structureId, java.lang.String locale)
          Returns the preview info for the given resource.
 CmsPreviewInfo getPreviewInfo(java.lang.String sitePath, java.lang.String locale)
          Returns the preview info for the given resource.
 CmsRenameInfoBean getRenameInfo(CmsUUID structureId)
          Gets the information necessary for the rename dialog.
 CmsResourceStatusBean getResourceStatus(CmsUUID structureId, java.lang.String contentLocale)
          Gets a bean containing status information for a given resource.
 CmsRestoreInfoBean getRestoreInfo(CmsUUID structureId)
          Gets the information which is necessary for opening the 'Restore' dialog for a resource.
 java.util.List<CmsVfsEntryBean> getRootEntries()
          Returns the root entries of the VFS.
 java.lang.String getSitePath(CmsUUID structureId)
          Returns the site-path for the resource with the given id.
protected  void internalSaveProperties(CmsPropertyChangeSet changes)
          Saves a set of property changes.
 void internalUpdateProperties(CmsObject cms, CmsResource ownRes, java.util.List<CmsPropertyModification> propertyModifications)
          Updates properties for a resource and possibly its detail page.
 CmsPropertiesBean loadPropertyData(CmsUUID id)
          Load the data necessary to edit the properties of a resource.
protected  CmsVfsEntryBean makeEntryBean(CmsResource resource, boolean root)
          Helper method for creating a VFS entry bean from a resource.
protected  java.util.List<CmsVfsEntryBean> makeEntryBeans(java.util.List<CmsResource> resources, boolean root)
          Helper method for creating a list of VFS entry beans from a list of the corresponding resources.
 CmsPrepareEditResponse prepareEdit(CmsUUID currentPageId, java.lang.String pathWithMacros)
          Prepares to edit a file in the XML content editor.
static java.lang.String prepareFileNameForEditor(CmsObject cms, CmsResource res, java.lang.String pathWithMacros)
          Processes a file path, which may have macros in it, so it can be opened by the XML content editor.
 java.lang.String renameResource(CmsUUID structureId, java.lang.String newName)
          Renames a resource.
 java.lang.String renameResourceInternal(CmsUUID structureId, java.lang.String newName)
          Internal implementation for renaming a resource.
 void saveAliases(CmsUUID structureId, java.util.List<CmsAliasBean> aliasBeans)
          Saves aliases for a page.
 void saveProperties(CmsPropertyChangeSet changes)
          Saves a set of property changes.
 void setCms(CmsObject cms)
          Sets the current cms context.
 java.lang.String substituteLinkForRootPath(java.lang.String currentSiteRoot, java.lang.String rootPath)
          Returns the absolute link to the given root path.
 void syncDeleteResource(CmsUUID structureId)
          Deletes a resource from the VFS.
 void undoChanges(CmsUUID structureId, boolean undoMove)
          Undoes the changes to a given resource, i.e. restores its online content to its offline version.
 java.util.Map<java.lang.String,java.lang.String> validateAliases(CmsUUID uuid, java.util.Map<java.lang.String,java.lang.String> aliasPaths)
          Validates alias paths for a page.
 
Methods inherited from class org.opencms.gwt.CmsGwtService
checkPermissions, clearThreadStorage, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, log, log, logError, service, setContext, setRequest, setResponse, tryUnlock
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsVfsService

public CmsVfsService()
Method Detail

addLockInfo

public static CmsListInfoBean addLockInfo(CmsObject cms,
                                          CmsResource resource,
                                          CmsListInfoBean resourceInfo)
                                   throws CmsException
Adds the lock state information to the resource info bean.

Parameters:
cms - the CMS context
resource - the resource to get the page info for
resourceInfo - the resource info to add the lock state to
Returns:
the resource info bean
Throws:
CmsException - if something else goes wrong

getNoPreviewReason

public static java.lang.String getNoPreviewReason(CmsObject cms,
                                                  CmsResource resource)
Returns the no preview reason if there is any.

Parameters:
cms - the current cms context
resource - the resource to check
Returns:
the no preview reason if there is any

getPageInfo

public static CmsListInfoBean getPageInfo(CmsObject cms,
                                          CmsResource res)
                                   throws CmsException,
                                          CmsLoaderException
Gets page information of a resource.

Parameters:
cms - the CMS context
res - the resource
Returns:
gets the page information for the given resource
Throws:
CmsException
CmsLoaderException

getPageInfoWithLock

public static CmsListInfoBean getPageInfoWithLock(CmsObject cms,
                                                  CmsResource resource)
                                           throws CmsLoaderException,
                                                  CmsException
Returns a bean to display the org.opencms.gwt.client.ui.CmsListItemWidget including the lock state.

Parameters:
cms - the CMS context
resource - the resource to get the page info for
Returns:
a bean to display the org.opencms.gwt.client.ui.CmsListItemWidget.

Throws:
CmsLoaderException - if the resource type could not be found
CmsException - if something else goes wrong

prepareFileNameForEditor

public static java.lang.String prepareFileNameForEditor(CmsObject cms,
                                                        CmsResource res,
                                                        java.lang.String pathWithMacros)
Processes a file path, which may have macros in it, so it can be opened by the XML content editor.

Parameters:
cms - the current CMS context
res - the resource for which the context menu option has been selected
pathWithMacros - the file path which may contain macros
Returns:
the processed file path

createPropertyDefinition

public void createPropertyDefinition(java.lang.String name)
                              throws CmsRpcException
Description copied from interface: I_CmsVfsService
Creates a new property definition.

Specified by:
createPropertyDefinition in interface I_CmsVfsService
Parameters:
name - the name of the property
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.createPropertyDefinition(java.lang.String)

deleteResource

public void deleteResource(CmsUUID structureId)
                    throws CmsRpcException
Description copied from interface: I_CmsVfsService
Deletes a resource from the VFS.

Specified by:
deleteResource in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource to delete
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.deleteResource(org.opencms.util.CmsUUID)

deleteResource

public void deleteResource(java.lang.String sitePath)
                    throws CmsRpcException
Description copied from interface: I_CmsVfsService
Deletes a resource from the VFS.

Specified by:
deleteResource in interface I_CmsVfsService
Parameters:
sitePath - the site path of the resource to delete
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.deleteResource(java.lang.String)

forceUnlock

public void forceUnlock(CmsUUID structureId)
                 throws CmsRpcException
Description copied from interface: I_CmsVfsService
Forces a resource to be unlocked. In case the given resource is a folder, all sub-resources are also unlocked.

Specified by:
forceUnlock in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource to unlock
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.forceUnlock(org.opencms.util.CmsUUID)

getAliasesForPage

public java.util.List<CmsAliasBean> getAliasesForPage(CmsUUID uuid)
                                               throws CmsRpcException
Description copied from interface: I_CmsVfsService
Fetches the aliases for a given page.

Specified by:
getAliasesForPage in interface I_CmsVfsService
Parameters:
uuid - the structure id of the page
Returns:
the lists of aliases for the page
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getAliasesForPage(org.opencms.util.CmsUUID)

getAvailabilityInfo

public CmsAvailabilityInfoBean getAvailabilityInfo(CmsUUID structureId)
                                            throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns a CmsAvailabilityInfoBean for a given resource.

Specified by:
getAvailabilityInfo in interface I_CmsVfsService
Parameters:
structureId - the structure id to create the CmsAvailabilityInfoBean for
Returns:
the CmsAvailabilityInfoBean for a given resource
Throws:
CmsRpcException - if the RPC call goes wrong
See Also:
I_CmsVfsService.getAvailabilityInfo(org.opencms.util.CmsUUID)

getAvailabilityInfo

public CmsAvailabilityInfoBean getAvailabilityInfo(java.lang.String vfsPath)
                                            throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns a CmsAvailabilityInfoBean for a given resource.

Specified by:
getAvailabilityInfo in interface I_CmsVfsService
Parameters:
vfsPath - the vfs path to create the CmsAvailabilityInfoBean for
Returns:
the CmsAvailabilityInfoBean for a given resource
Throws:
CmsRpcException - if the RPC call goes wrong
See Also:
I_CmsVfsService.getAvailabilityInfo(java.lang.String)

getBrokenLinks

public CmsDeleteResourceBean getBrokenLinks(CmsUUID structureId)
                                     throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns a list of potentially broken links, if the given resource was deleted.

Specified by:
getBrokenLinks in interface I_CmsVfsService
Parameters:
structureId - the resource structure id
Returns:
a list of potentially broken links
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getBrokenLinks(org.opencms.util.CmsUUID)

getBrokenLinks

public CmsDeleteResourceBean getBrokenLinks(java.lang.String sitePath)
                                     throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns a list of potentially broken links, if the given resource was deleted.

Specified by:
getBrokenLinks in interface I_CmsVfsService
Parameters:
sitePath - the resource site-path
Returns:
a list of potentially broken links
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getBrokenLinks(java.lang.String)

getChildren

public java.util.List<CmsVfsEntryBean> getChildren(java.lang.String path)
                                            throws CmsRpcException
Description copied from interface: I_CmsVfsService
Fetches the list of children of a path.

Specified by:
getChildren in interface I_CmsVfsService
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
See Also:
I_CmsVfsService.getChildren(java.lang.String)

getDefinedProperties

public java.util.ArrayList<java.lang.String> getDefinedProperties()
                                                           throws CmsRpcException
Description copied from interface: I_CmsVfsService
Gets the names of defined properties.

Specified by:
getDefinedProperties in interface I_CmsVfsService
Returns:
the list of names for all defined properties
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getDefinedProperties()

getFileReplaceInfo

public CmsReplaceInfo getFileReplaceInfo(CmsUUID structureId)
                                  throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns the file replace info.

Specified by:
getFileReplaceInfo in interface I_CmsVfsService
Parameters:
structureId - the structure id of the file to replace
Returns:
the file replace info
Throws:
CmsRpcException - if the RPC call goes wrong
See Also:
I_CmsVfsService.getFileReplaceInfo(org.opencms.util.CmsUUID)

getLockReportInfo

public CmsLockReportInfo getLockReportInfo(CmsUUID structureId)
                                    throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns the lock report info.

Specified by:
getLockReportInfo in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource to get the report for
Returns:
the lock report info
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getLockReportInfo(org.opencms.util.CmsUUID)

getPageInfo

public CmsListInfoBean getPageInfo(CmsUUID structureId)
                            throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns a CmsListInfoBean for a given resource.

Specified by:
getPageInfo in interface I_CmsVfsService
Parameters:
structureId - the structure id to create the CmsListInfoBean for
Returns:
the CmsListInfoBean for a given resource
Throws:
CmsRpcException - if the RPC call goes wrong
See Also:
I_CmsVfsService.getPageInfo(org.opencms.util.CmsUUID)

getPageInfo

public CmsListInfoBean getPageInfo(java.lang.String vfsPath)
                            throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns a CmsListInfoBean for a given resource.

Specified by:
getPageInfo in interface I_CmsVfsService
Parameters:
vfsPath - the vfs path to create the CmsListInfoBean for
Returns:
the CmsListInfoBean for a given resource
Throws:
CmsRpcException - if the RPC call goes wrong
See Also:
I_CmsVfsService.getPageInfo(java.lang.String)

getPreviewInfo

public CmsPreviewInfo getPreviewInfo(CmsUUID structureId,
                                     java.lang.String locale)
                              throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns the preview info for the given resource.

Specified by:
getPreviewInfo in interface I_CmsVfsService
Parameters:
structureId - the resource structure id
locale - the requested locale
Returns:
the preview info
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getPreviewInfo(org.opencms.util.CmsUUID, java.lang.String)

getPreviewInfo

public CmsPreviewInfo getPreviewInfo(java.lang.String sitePath,
                                     java.lang.String locale)
                              throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns the preview info for the given resource.

Specified by:
getPreviewInfo in interface I_CmsVfsService
Parameters:
sitePath - the resource site path
locale - the requested locale
Returns:
the preview info
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getPreviewInfo(java.lang.String, java.lang.String)

getRenameInfo

public CmsRenameInfoBean getRenameInfo(CmsUUID structureId)
                                throws CmsRpcException
Description copied from interface: I_CmsVfsService
Gets the information necessary for the rename dialog.

Specified by:
getRenameInfo in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource to rename
Returns:
the information needed for the rename dialog
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getRenameInfo(org.opencms.util.CmsUUID)

getResourceStatus

public CmsResourceStatusBean getResourceStatus(CmsUUID structureId,
                                               java.lang.String contentLocale)
                                        throws CmsRpcException
Description copied from interface: I_CmsVfsService
Gets a bean containing status information for a given resource.

Specified by:
getResourceStatus in interface I_CmsVfsService
Parameters:
structureId - the structure id of a resource
contentLocale - the locale for which we want the resource information
Returns:
the resource status
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getResourceStatus(org.opencms.util.CmsUUID, java.lang.String)

getRestoreInfo

public CmsRestoreInfoBean getRestoreInfo(CmsUUID structureId)
                                  throws CmsRpcException
Description copied from interface: I_CmsVfsService
Gets the information which is necessary for opening the 'Restore' dialog for a resource.

Specified by:
getRestoreInfo in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource
Returns:
the information for the resource
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getRestoreInfo(org.opencms.util.CmsUUID)

getRootEntries

public java.util.List<CmsVfsEntryBean> getRootEntries()
                                               throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns the root entries of the VFS.

Specified by:
getRootEntries in interface I_CmsVfsService
Returns:
a list of root entries
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.getRootEntries()

getSitePath

public java.lang.String getSitePath(CmsUUID structureId)
Description copied from interface: I_CmsVfsService
Returns the site-path for the resource with the given id.

Specified by:
getSitePath in interface I_CmsVfsService
Parameters:
structureId - the structure id
Returns:
the site-path or null if not available
See Also:
I_CmsVfsService.getSitePath(org.opencms.util.CmsUUID)

internalUpdateProperties

public void internalUpdateProperties(CmsObject cms,
                                     CmsResource ownRes,
                                     java.util.List<CmsPropertyModification> propertyModifications)
                              throws CmsException
Updates properties for a resource and possibly its detail page.

Parameters:
cms - the CMS context
ownRes - the resource
propertyModifications - the property modifications
Throws:
CmsException - if something goes wrong

loadPropertyData

public CmsPropertiesBean loadPropertyData(CmsUUID id)
                                   throws CmsRpcException
Description copied from interface: I_CmsVfsService
Load the data necessary to edit the properties of a resource.

Specified by:
loadPropertyData in interface I_CmsVfsService
Parameters:
id - the structure id of a resource
Returns:
the property information for that resource
Throws:
CmsRpcException
See Also:
I_CmsVfsService.loadPropertyData(org.opencms.util.CmsUUID)

prepareEdit

public CmsPrepareEditResponse prepareEdit(CmsUUID currentPageId,
                                          java.lang.String pathWithMacros)
                                   throws CmsRpcException
Description copied from interface: I_CmsVfsService
Prepares to edit a file in the XML content editor.

Specified by:
prepareEdit in interface I_CmsVfsService
Parameters:
currentPageId - the current page from which the editor should be opened
pathWithMacros - the file name, which may contain macros
Returns:
a bean with more information about the file to edit
Throws:
CmsRpcException
See Also:
I_CmsVfsService.prepareEdit(org.opencms.util.CmsUUID, java.lang.String)

renameResource

public java.lang.String renameResource(CmsUUID structureId,
                                       java.lang.String newName)
                                throws CmsRpcException
Description copied from interface: I_CmsVfsService
Renames a resource.

Specified by:
renameResource in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource to rename
newName - the new resource name
Returns:
null or an error message
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.renameResource(org.opencms.util.CmsUUID, java.lang.String)

renameResourceInternal

public java.lang.String renameResourceInternal(CmsUUID structureId,
                                               java.lang.String newName)
                                        throws CmsException
Internal implementation for renaming a resource.

Parameters:
structureId - the structure id of the resource to rename
newName - the new resource name
Returns:
either null if the rename was successful, or an error message
Throws:
CmsException - if something goes wrong

saveAliases

public void saveAliases(CmsUUID structureId,
                        java.util.List<CmsAliasBean> aliasBeans)
                 throws CmsRpcException
Description copied from interface: I_CmsVfsService
Saves aliases for a page.

Specified by:
saveAliases in interface I_CmsVfsService
Parameters:
structureId - the structure id of the page
aliasBeans - the aliases which should be saved for the page
Throws:
CmsRpcException
See Also:
I_CmsVfsService.saveAliases(org.opencms.util.CmsUUID, java.util.List)

saveProperties

public void saveProperties(CmsPropertyChangeSet changes)
                    throws CmsRpcException
Description copied from interface: I_CmsVfsService
Saves a set of property changes.

Specified by:
saveProperties in interface I_CmsVfsService
Parameters:
changes - a set of property changes
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.saveProperties(org.opencms.gwt.shared.property.CmsPropertyChangeSet)

setCms

public void setCms(CmsObject cms)
Sets the current cms context.

Overrides:
setCms in class CmsGwtService
Parameters:
cms - the current cms context to set

substituteLinkForRootPath

public java.lang.String substituteLinkForRootPath(java.lang.String currentSiteRoot,
                                                  java.lang.String rootPath)
                                           throws CmsRpcException
Description copied from interface: I_CmsVfsService
Returns the absolute link to the given root path.

Specified by:
substituteLinkForRootPath in interface I_CmsVfsService
Parameters:
currentSiteRoot - the current site
rootPath - the root path
Returns:
the absolute link
Throws:
CmsRpcException - if something goes wrong processing the request
See Also:
I_CmsVfsService.substituteLinkForRootPath(java.lang.String, java.lang.String)

syncDeleteResource

public void syncDeleteResource(CmsUUID structureId)
                        throws CmsRpcException
Description copied from interface: I_CmsVfsService
Deletes a resource from the VFS.

Specified by:
syncDeleteResource in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource to delete
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.syncDeleteResource(org.opencms.util.CmsUUID)

undoChanges

public void undoChanges(CmsUUID structureId,
                        boolean undoMove)
                 throws CmsRpcException
Description copied from interface: I_CmsVfsService
Undoes the changes to a given resource, i.e. restores its online content to its offline version.

Specified by:
undoChanges in interface I_CmsVfsService
Parameters:
structureId - the structure id of the resource to undo
undoMove - true if move operations should be undone
Throws:
CmsRpcException - if something goes wrong
See Also:
I_CmsVfsService.undoChanges(org.opencms.util.CmsUUID, boolean)

validateAliases

public java.util.Map<java.lang.String,java.lang.String> validateAliases(CmsUUID uuid,
                                                                        java.util.Map<java.lang.String,java.lang.String> aliasPaths)
                                                                 throws CmsRpcException
Description copied from interface: I_CmsVfsService
Validates alias paths for a page.

Specified by:
validateAliases in interface I_CmsVfsService
Parameters:
uuid - the structure id of the page
aliasPaths - 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
See Also:
I_CmsVfsService.validateAliases(org.opencms.util.CmsUUID, java.util.Map)

convertProperties

protected java.util.Map<java.lang.String,CmsClientProperty> convertProperties(java.util.List<CmsProperty> properties)
Converts CmsProperty objects to CmsClientProperty objects.

Parameters:
properties - a list of server-side properties
Returns:
a map of client-side properties

createSitemapBrokenLinkBean

protected CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource)
                                                 throws CmsException
Creates a "broken link" bean based on a resource.

Parameters:
resource - the resource
Returns:
the "broken link" bean with the data from the resource
Throws:
CmsException - if something goes wrong

internalSaveProperties

protected void internalSaveProperties(CmsPropertyChangeSet changes)
                               throws CmsException
Saves a set of property changes.

Parameters:
changes - the set of property changes
Throws:
CmsException - if something goes wrong

makeEntryBean

protected CmsVfsEntryBean makeEntryBean(CmsResource resource,
                                        boolean root)
                                 throws CmsException
Helper method for creating a VFS entry bean from a resource.

Parameters:
resource - the resource whose data should be stored in the bean
root - true if the resource is a root resource
Returns:
the data bean representing the resource
Throws:
CmsException - if something goes wrong

makeEntryBeans

protected java.util.List<CmsVfsEntryBean> makeEntryBeans(java.util.List<CmsResource> resources,
                                                         boolean root)
                                                  throws CmsException
Helper method for creating a list of VFS entry beans from a list of the corresponding resources.

Parameters:
resources - the list of resources which should be converted to entry beans
root - true if the resources in the list are root resources
Returns:
the list of VFS entry beans for the resources
Throws:
CmsException - if something goes wrong