|
||||||||
| 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.CmsGalleryService
public class CmsGalleryService
Handles all RPC services related to the gallery dialog.
CmsGalleryService,
I_CmsGalleryService,
I_CmsGalleryServiceAsync,
Serialized Form| Nested Class Summary | |
|---|---|
protected class |
CmsGalleryService.CmsGalleryTypeInfo
Gallery info object. |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
CmsGalleryService()
|
|
| Method Summary | |
|---|---|
void |
deleteResource(java.lang.String resourcePath)
Deletes the given resource. |
java.util.List<CmsGalleryFolderBean> |
getGalleries(java.util.List<java.lang.String> resourceTypes)
Returns the available galleries depending on the given resource types. |
CmsResultItemBean |
getInfoForResource(java.lang.String linkPath,
java.lang.String locale)
Returns the resource info for a single resource. |
CmsGalleryDataBean |
getInitialSettings(CmsGalleryConfiguration conf)
Returns the initial data for the given gallery mode. |
static CmsGalleryDataBean |
getInitialSettings(javax.servlet.http.HttpServletRequest request,
CmsGalleryConfiguration config)
Returns the initial gallery settings. |
CmsGallerySearchBean |
getSearch(CmsGalleryDataBean data)
Performs an initial search based on the given data bean and the available parameters of the request. |
CmsGallerySearchBean |
getSearch(CmsGallerySearchBean searchObj)
Returns the gallery search object containing search results and the currant search parameter. |
static CmsGallerySearchBean |
getSearch(javax.servlet.http.HttpServletRequest request,
CmsGalleryDataBean config)
Returns the initial search data. |
protected java.util.List<CmsResource> |
getSitemapSubEntryResources(java.lang.String rootPath)
Gets the sitemap sub entries for a given path as resources. |
java.util.List<CmsSitemapEntryBean> |
getSubEntries(java.lang.String rootPath,
boolean isRoot)
Returns the sub entries to the given sitemap path. |
protected java.util.List<CmsSitemapEntryBean> |
getSubEntriesInternal(java.lang.String rootPath,
boolean isRoot)
Internal method for getting sitemap sub entries for a given root path. |
java.util.List<CmsVfsEntryBean> |
getSubFolders(java.lang.String rootPath)
Gets the sub-folders of a folder. |
protected boolean |
isSitemapEntry(CmsObject cms,
CmsResource resource)
Checks whether a given resource is a sitemap entry. |
CmsVfsEntryBean |
loadVfsEntryBean(java.lang.String path)
Loads the root VFS entry bean for the given site root. |
protected java.util.List<CmsResource> |
readAll(java.util.Collection<CmsUUID> structureIds,
CmsResourceFilter filter)
Reads the resources for a collection of structure ids and returns the list of resources which could be read. |
void |
saveTreeOpenState(java.lang.String treeName,
java.lang.String treeToken,
java.lang.String siteRoot,
java.util.Set<CmsUUID> openItems)
Saves the tree open state for a tree tab. |
void |
updateIndex()
Updates the offline indices. |
| 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, setCms, 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 |
|---|
public CmsGalleryService()
| Method Detail |
|---|
public static CmsGalleryDataBean getInitialSettings(javax.servlet.http.HttpServletRequest request,
CmsGalleryConfiguration config)
throws CmsRpcException
request - the current requestconfig - the gallery configuration
CmsRpcException - if something goes wrong
public static CmsGallerySearchBean getSearch(javax.servlet.http.HttpServletRequest request,
CmsGalleryDataBean config)
request - the current requestconfig - the gallery configuration
public void deleteResource(java.lang.String resourcePath)
throws CmsRpcException
I_CmsGalleryService
deleteResource in interface I_CmsGalleryServiceresourcePath - the resource path of the resource to delete
CmsRpcException - if something goes wrongI_CmsGalleryService.deleteResource(java.lang.String)public java.util.List<CmsGalleryFolderBean> getGalleries(java.util.List<java.lang.String> resourceTypes)
I_CmsGalleryService
getGalleries in interface I_CmsGalleryServiceresourceTypes - the resource types
I_CmsGalleryService.getGalleries(java.util.List)
public CmsResultItemBean getInfoForResource(java.lang.String linkPath,
java.lang.String locale)
throws CmsRpcException
I_CmsGalleryService
getInfoForResource in interface I_CmsGalleryServicelinkPath - the resource pathlocale - the content locale
CmsRpcException - if something goes wrongI_CmsGalleryService.getInfoForResource(java.lang.String, java.lang.String)
public CmsGalleryDataBean getInitialSettings(CmsGalleryConfiguration conf)
throws CmsRpcException
I_CmsGalleryService
getInitialSettings in interface I_CmsGalleryServiceconf - the gallery configuration
CmsRpcException - if something goes wrongI_CmsGalleryService.getInitialSettings(org.opencms.ade.galleries.shared.CmsGalleryConfiguration)public CmsGallerySearchBean getSearch(CmsGalleryDataBean data)
I_CmsGalleryService
getSearch in interface I_CmsGalleryServicedata - the data bean
I_CmsGalleryService.getSearch(org.opencms.ade.galleries.shared.CmsGalleryDataBean)
public CmsGallerySearchBean getSearch(CmsGallerySearchBean searchObj)
throws CmsRpcException
I_CmsGalleryService
getSearch in interface I_CmsGalleryServicesearchObj - the current search object
CmsRpcException - is something goes wrongI_CmsGalleryService.getSearch(CmsGallerySearchBean)
public java.util.List<CmsSitemapEntryBean> getSubEntries(java.lang.String rootPath,
boolean isRoot)
throws CmsRpcException
I_CmsGalleryService
getSubEntries in interface I_CmsGalleryServicerootPath - the root pathisRoot - true if the requested entry is the root entry
CmsRpcException - if something goes wrongI_CmsGalleryService.getSubEntries(java.lang.String, boolean)
public java.util.List<CmsVfsEntryBean> getSubFolders(java.lang.String rootPath)
throws CmsRpcException
I_CmsGalleryService
getSubFolders in interface I_CmsGalleryServicerootPath - the path of a folder
CmsRpcException - if something goes wrongI_CmsGalleryService.getSubFolders(java.lang.String)
public CmsVfsEntryBean loadVfsEntryBean(java.lang.String path)
throws CmsRpcException
I_CmsGalleryService
loadVfsEntryBean in interface I_CmsGalleryServicepath - the site root
CmsRpcException - if something goes wrongI_CmsGalleryService.loadVfsEntryBean(java.lang.String)
public void saveTreeOpenState(java.lang.String treeName,
java.lang.String treeToken,
java.lang.String siteRoot,
java.util.Set<CmsUUID> openItems)
throws CmsRpcException
I_CmsGalleryService
saveTreeOpenState in interface I_CmsGalleryServicetreeName - the tree name for which to save the tree statetreeToken - the tree token for which to save the tree statesiteRoot - the site rootopenItems - the set of structure ids of open tree items
CmsRpcException - if something goes wrongI_CmsGalleryService.saveTreeOpenState(java.lang.String, java.lang.String, java.lang.String, java.util.Set)
public void updateIndex()
throws CmsRpcException
I_CmsGalleryService
updateIndex in interface I_CmsGalleryServiceCmsRpcException - if something goes wrongI_CmsGalleryService.updateIndex()
protected java.util.List<CmsResource> getSitemapSubEntryResources(java.lang.String rootPath)
throws CmsException
rootPath - the root path
CmsException - if something goes wrong
protected java.util.List<CmsSitemapEntryBean> getSubEntriesInternal(java.lang.String rootPath,
boolean isRoot)
throws CmsException
rootPath - the root pathisRoot - true if this method is used to get the root entries of a sitemap
CmsException - if something goes wrong
protected boolean isSitemapEntry(CmsObject cms,
CmsResource resource)
throws CmsException
This is used for preselected entries in the gallery widget.
cms - the current CMS contextresource - the resource to check
CmsException - if something goes wrong
protected java.util.List<CmsResource> readAll(java.util.Collection<CmsUUID> structureIds,
CmsResourceFilter filter)
structureIds - the structure ids for which we want to read the resourcesfilter - the filter used to read the resource
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||