|
||||||||
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.ade.galleries.CmsPreviewService
public class CmsPreviewService
Handles all RPC services related to the gallery preview dialog.
Field Summary |
---|
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
---|
perThreadRequest, perThreadResponse |
Constructor Summary | |
---|---|
CmsPreviewService()
|
Method Summary | |
---|---|
CmsImageInfoBean |
getImageInfo(String resourcePath,
String locale)
Returns the image resource data to be displayed in the preview dialog. |
CmsResourceInfoBean |
getResourceInfo(String resourcePath,
String locale)
Returns the data to be displayed in the preview dialog. |
void |
readResourceInfo(CmsObject cms,
CmsResource resource,
CmsResourceInfoBean resInfo,
String locale)
Retrieves the resource information and puts it into the provided resource info bean. |
CmsImageInfoBean |
syncGetImageInfo(String resourcePath,
String locale)
Returns the image resource data to be displayed in the preview dialog. |
CmsImageInfoBean |
updateImageProperties(String resourcePath,
String locale,
Map<String,String> properties)
Saves the given properties to the resource and returns the data to be displayed in the preview dialog. |
CmsResourceInfoBean |
updateResourceProperties(String resourcePath,
String locale,
Map<String,String> properties)
Saves the given properties to the resource and returns the data to be displayed in the preview dialog. |
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 CmsPreviewService()
Method Detail |
---|
public CmsImageInfoBean getImageInfo(String resourcePath, String locale) throws CmsRpcException
I_CmsPreviewService
getImageInfo
in interface I_CmsPreviewService
resourcePath
- the resource pathlocale
- the content locale
CmsRpcException
- if something goes wrongI_CmsPreviewService.getImageInfo(java.lang.String, java.lang.String)
public CmsResourceInfoBean getResourceInfo(String resourcePath, String locale) throws CmsRpcException
I_CmsPreviewService
getResourceInfo
in interface I_CmsPreviewService
resourcePath
- the path to the selected resourcelocale
- the content locale
CmsRpcException
- if something goes wrongI_CmsPreviewService.getResourceInfo(java.lang.String, java.lang.String)
public void readResourceInfo(CmsObject cms, CmsResource resource, CmsResourceInfoBean resInfo, String locale) throws CmsException
cms
- the initialized cms objectresource
- the resourceresInfo
- the resource info beanlocale
- the content locale
CmsException
- if something goes wrongpublic CmsImageInfoBean syncGetImageInfo(String resourcePath, String locale) throws CmsRpcException
I_CmsPreviewService
syncGetImageInfo
in interface I_CmsPreviewService
resourcePath
- the resource pathlocale
- the content locale
CmsRpcException
- if something goes wrongI_CmsPreviewService.syncGetImageInfo(java.lang.String, java.lang.String)
public CmsImageInfoBean updateImageProperties(String resourcePath, String locale, Map<String,String> properties) throws CmsRpcException
I_CmsPreviewService
updateImageProperties
in interface I_CmsPreviewService
resourcePath
- the path to the selected resourcelocale
- the content localeproperties
- a map with the key/value pairs of the properties to be updated
CmsRpcException
- if something goes wrongI_CmsPreviewService.updateImageProperties(java.lang.String, java.lang.String, java.util.Map)
public CmsResourceInfoBean updateResourceProperties(String resourcePath, String locale, Map<String,String> properties) throws CmsRpcException
I_CmsPreviewService
updateResourceProperties
in interface I_CmsPreviewService
resourcePath
- the path to the selected resourcelocale
- the content localeproperties
- a map with the key/value pairs of the properties to be updated
CmsRpcException
- if something goes wrongI_CmsPreviewService.updateResourceProperties(java.lang.String, java.lang.String, java.util.Map)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |