|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.opencms.gwt.CmsGwtService
org.opencms.gwt.CmsVfsService
public class CmsVfsService
A service class for reading the VFS tree.
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
CmsVfsService()
|
|
| Method Summary | |
|---|---|
protected Map<String,CmsClientProperty> |
convertProperties(List<CmsProperty> properties)
Converts CmsProperty objects to CmsClientProperty objects. |
protected CmsBrokenLinkBean |
createSitemapBrokenLinkBean(CmsResource resource)
Creates a "broken link" bean based on a resource. |
void |
deleteResource(String sitePath)
Deletes a resource from the VFS. |
void |
forceUnlock(CmsUUID structureId)
Forces a resource to be unlocked. |
CmsAvailabilityInfoBean |
getAvailabilityInfo(CmsUUID structureId)
Returns a CmsAvailabilityInfoBean for a given resource. |
CmsAvailabilityInfoBean |
getAvailabilityInfo(String vfsPath)
Returns a CmsAvailabilityInfoBean for a given resource. |
CmsDeleteResourceBean |
getBrokenLinks(String sitePath)
Returns a list of potentially broken links, if the given resource was deleted. |
List<CmsVfsEntryBean> |
getChildren(String path)
Fetches the list of children of a path. |
CmsLockReportInfo |
getLockReportInfo(CmsUUID structureId)
Returns the lock report info. |
CmsListInfoBean |
getPageInfo(CmsUUID structureId)
Returns a CmsListInfoBean for a given resource. |
CmsListInfoBean |
getPageInfo(String vfsPath)
Returns a CmsListInfoBean for a given resource. |
List<CmsVfsEntryBean> |
getRootEntries()
Returns the root entries of the VFS. |
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,
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 List<CmsVfsEntryBean> |
makeEntryBeans(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,
String pathWithMacros)
Prepares to edit a file in the XML content editor. |
static String |
prepareFileNameForEditor(CmsObject cms,
CmsResource res,
String pathWithMacros)
Processes a file path, which may have macros in it, so it can be opened by the XML content editor. |
void |
saveProperties(CmsPropertyChangeSet changes)
Saves a set of property changes. |
String |
substituteLinkForRootPath(String currentSiteRoot,
String rootPath)
Returns the absolute link to the given root path. |
| Methods inherited from class org.opencms.gwt.CmsGwtService |
|---|
checkPermissions, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, log, log, logError, service, setCms, setContext, setRequest, 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 |
|---|
public CmsVfsService()
| Method Detail |
|---|
public static String prepareFileNameForEditor(CmsObject cms,
CmsResource res,
String pathWithMacros)
cms - the current CMS contextres - the resource for which the context menu option has been selectedpathWithMacros - the file path which may contain macros
public void deleteResource(String sitePath)
throws CmsRpcException
I_CmsVfsService
deleteResource in interface I_CmsVfsServicesitePath - the site path of the resource to delete
CmsRpcException - if something goes wrongI_CmsVfsService.deleteResource(java.lang.String)
public void forceUnlock(CmsUUID structureId)
throws CmsRpcException
I_CmsVfsService
forceUnlock in interface I_CmsVfsServicestructureId - the structure id of the resource to unlock
CmsRpcException - if something goes wrongI_CmsVfsService.forceUnlock(org.opencms.util.CmsUUID)
public CmsAvailabilityInfoBean getAvailabilityInfo(CmsUUID structureId)
throws CmsRpcException
I_CmsVfsServiceCmsAvailabilityInfoBean for a given resource.
getAvailabilityInfo in interface I_CmsVfsServicestructureId - the structure id to create the CmsAvailabilityInfoBean for
CmsAvailabilityInfoBean for a given resource
CmsRpcException - if the RPC call goes wrongI_CmsVfsService.getAvailabilityInfo(org.opencms.util.CmsUUID)
public CmsAvailabilityInfoBean getAvailabilityInfo(String vfsPath)
throws CmsRpcException
I_CmsVfsServiceCmsAvailabilityInfoBean for a given resource.
getAvailabilityInfo in interface I_CmsVfsServicevfsPath - the vfs path to create the CmsAvailabilityInfoBean for
CmsAvailabilityInfoBean for a given resource
CmsRpcException - if the RPC call goes wrongI_CmsVfsService.getAvailabilityInfo(java.lang.String)
public CmsDeleteResourceBean getBrokenLinks(String sitePath)
throws CmsRpcException
I_CmsVfsService
getBrokenLinks in interface I_CmsVfsServicesitePath - the resource site-path
CmsRpcException - if something goes wrongI_CmsVfsService.getBrokenLinks(java.lang.String)
public List<CmsVfsEntryBean> getChildren(String path)
throws CmsRpcException
I_CmsVfsService
getChildren in interface I_CmsVfsServicepath - the path for which the list of children should be retrieved
CmsRpcException - if something goes wrongI_CmsVfsService.getChildren(java.lang.String)
public CmsLockReportInfo getLockReportInfo(CmsUUID structureId)
throws CmsRpcException
I_CmsVfsService
getLockReportInfo in interface I_CmsVfsServicestructureId - the structure id of the resource to get the report for
CmsRpcException - if something goes wrongI_CmsVfsService.getLockReportInfo(org.opencms.util.CmsUUID)
public CmsListInfoBean getPageInfo(CmsUUID structureId)
throws CmsRpcException
I_CmsVfsServiceCmsListInfoBean for a given resource.
getPageInfo in interface I_CmsVfsServicestructureId - the structure id to create the CmsListInfoBean for
CmsListInfoBean for a given resource
CmsRpcException - if the RPC call goes wrongI_CmsVfsService.getPageInfo(org.opencms.util.CmsUUID)
public CmsListInfoBean getPageInfo(String vfsPath)
throws CmsRpcException
I_CmsVfsServiceCmsListInfoBean for a given resource.
getPageInfo in interface I_CmsVfsServicevfsPath - the vfs path to create the CmsListInfoBean for
CmsListInfoBean for a given resource
CmsRpcException - if the RPC call goes wrongI_CmsVfsService.getPageInfo(java.lang.String)
public List<CmsVfsEntryBean> getRootEntries()
throws CmsRpcException
I_CmsVfsService
getRootEntries in interface I_CmsVfsServiceCmsRpcException - if something goes wrongI_CmsVfsService.getRootEntries()public String getSitePath(CmsUUID structureId)
I_CmsVfsService
getSitePath in interface I_CmsVfsServicestructureId - the structure id
null if not availableI_CmsVfsService.getSitePath(org.opencms.util.CmsUUID)
public void internalUpdateProperties(CmsObject cms,
CmsResource ownRes,
List<CmsPropertyModification> propertyModifications)
throws CmsException
cms - the CMS contextownRes - the resourcepropertyModifications - the property modifications
CmsException - if something goes wrong
public CmsPropertiesBean loadPropertyData(CmsUUID id)
throws CmsRpcException
I_CmsVfsService
loadPropertyData in interface I_CmsVfsServiceid - the structure id of a resource
CmsRpcExceptionI_CmsVfsService.loadPropertyData(org.opencms.util.CmsUUID)
public CmsPrepareEditResponse prepareEdit(CmsUUID currentPageId,
String pathWithMacros)
throws CmsRpcException
I_CmsVfsService
prepareEdit in interface I_CmsVfsServicecurrentPageId - the current page from which the editor should be openedpathWithMacros - the file name, which may contain macros
CmsRpcExceptionI_CmsVfsService.prepareEdit(org.opencms.util.CmsUUID, java.lang.String)
public void saveProperties(CmsPropertyChangeSet changes)
throws CmsRpcException
I_CmsVfsService
saveProperties in interface I_CmsVfsServicechanges - a set of property changes
CmsRpcException - if something goes wrongI_CmsVfsService.saveProperties(org.opencms.gwt.shared.property.CmsPropertyChangeSet)
public String substituteLinkForRootPath(String currentSiteRoot,
String rootPath)
throws CmsRpcException
I_CmsVfsService
substituteLinkForRootPath in interface I_CmsVfsServicecurrentSiteRoot - the current siterootPath - the root path
CmsRpcException - if something goes wrong processing the requestI_CmsVfsService.substituteLinkForRootPath(java.lang.String, java.lang.String)protected Map<String,CmsClientProperty> convertProperties(List<CmsProperty> properties)
properties - a list of server-side properties
protected CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource)
throws CmsException
resource - the resource
CmsException - if something goes wrong
protected void internalSaveProperties(CmsPropertyChangeSet changes)
throws CmsException
changes - the set of property changes
CmsException - if something goes wrong
protected CmsVfsEntryBean makeEntryBean(CmsResource resource,
boolean root)
throws CmsException
resource - the resource whose data should be stored in the beanroot - true if the resource is a root resource
CmsException - if something goes wrong
protected List<CmsVfsEntryBean> makeEntryBeans(List<CmsResource> resources,
boolean root)
throws CmsException
resources - the list of resources which should be converted to entry beansroot - true if the resources in the list are root resources
CmsException - if something goes wrong
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||