public class CmsGalleryService extends CmsGwtService implements I_CmsGalleryService
CmsGalleryService,
I_CmsGalleryService,
I_CmsGalleryServiceAsync,
序列化表格| 限定符和类型 | 类和说明 |
|---|---|
protected class |
CmsGalleryService.CmsGalleryTypeInfo
Gallery info object.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
KEY_LAST_USED_GALLERY_ADEVIEW
The key used for storing the last used gallery in adeview mode.
|
| 构造器和说明 |
|---|
CmsGalleryService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteResource(java.lang.String resourcePath)
Deletes the given resource.
|
CmsGalleryConfiguration |
getAdeViewModeConfiguration()
Loads the gallery configuration for the adeView mode.
|
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 java.util.List<java.lang.String> |
getTypeNames(CmsGalleryDataBean data)
Gets the type names from the gallery data bean.
|
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.
|
checkPermissions, clearThreadStorage, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, log, log, logError, service, setCms, setContext, setRequest, setResponse, tryUnlockcheckPermutationStrongName, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, servicepublic static final java.lang.String KEY_LAST_USED_GALLERY_ADEVIEW
public static CmsGalleryDataBean getInitialSettings(javax.servlet.http.HttpServletRequest request, CmsGalleryConfiguration config) throws CmsRpcException
request - the current requestconfig - the gallery configurationCmsRpcException - if something goes wrongpublic static CmsGallerySearchBean getSearch(javax.servlet.http.HttpServletRequest request, CmsGalleryDataBean config)
request - the current requestconfig - the gallery configurationpublic void deleteResource(java.lang.String resourcePath)
throws CmsRpcException
I_CmsGalleryServicedeleteResource 在接口中 I_CmsGalleryServiceresourcePath - the resource path of the resource to deleteCmsRpcException - if something goes wrongI_CmsGalleryService.deleteResource(java.lang.String)public CmsGalleryConfiguration getAdeViewModeConfiguration()
I_CmsGalleryServicegetAdeViewModeConfiguration 在接口中 I_CmsGalleryServiceI_CmsGalleryService.getAdeViewModeConfiguration()public java.util.List<CmsGalleryFolderBean> getGalleries(java.util.List<java.lang.String> resourceTypes)
I_CmsGalleryServicegetGalleries 在接口中 I_CmsGalleryServiceresourceTypes - the resource typesI_CmsGalleryService.getGalleries(java.util.List)public CmsResultItemBean getInfoForResource(java.lang.String linkPath, java.lang.String locale) throws CmsRpcException
I_CmsGalleryServicegetInfoForResource 在接口中 I_CmsGalleryServicelinkPath - the resource pathlocale - the content localeCmsRpcException - if something goes wrongI_CmsGalleryService.getInfoForResource(java.lang.String, java.lang.String)public CmsGalleryDataBean getInitialSettings(CmsGalleryConfiguration conf) throws CmsRpcException
I_CmsGalleryServicegetInitialSettings 在接口中 I_CmsGalleryServiceconf - the gallery configurationCmsRpcException - if something goes wrongI_CmsGalleryService.getInitialSettings(org.opencms.ade.galleries.shared.CmsGalleryConfiguration)public CmsGallerySearchBean getSearch(CmsGalleryDataBean data)
I_CmsGalleryServicegetSearch 在接口中 I_CmsGalleryServicedata - the data beanI_CmsGalleryService.getSearch(org.opencms.ade.galleries.shared.CmsGalleryDataBean)public CmsGallerySearchBean getSearch(CmsGallerySearchBean searchObj) throws CmsRpcException
I_CmsGalleryServicegetSearch 在接口中 I_CmsGalleryServicesearchObj - the current search objectCmsRpcException - is something goes wrongI_CmsGalleryService.getSearch(CmsGallerySearchBean)public java.util.List<CmsSitemapEntryBean> getSubEntries(java.lang.String rootPath, boolean isRoot) throws CmsRpcException
I_CmsGalleryServicegetSubEntries 在接口中 I_CmsGalleryServicerootPath - the root pathisRoot - true if the requested entry is the root entryCmsRpcException - if something goes wrongI_CmsGalleryService.getSubEntries(java.lang.String, boolean)public java.util.List<CmsVfsEntryBean> getSubFolders(java.lang.String rootPath) throws CmsRpcException
I_CmsGalleryServicegetSubFolders 在接口中 I_CmsGalleryServicerootPath - the path of a folderCmsRpcException - if something goes wrongI_CmsGalleryService.getSubFolders(java.lang.String)public CmsVfsEntryBean loadVfsEntryBean(java.lang.String path) throws CmsRpcException
I_CmsGalleryServiceloadVfsEntryBean 在接口中 I_CmsGalleryServicepath - the site rootCmsRpcException - 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_CmsGalleryServicesaveTreeOpenState 在接口中 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 itemsCmsRpcException - if something goes wrongI_CmsGalleryService.saveTreeOpenState(java.lang.String, java.lang.String, java.lang.String, java.util.Set)public void updateIndex()
throws CmsRpcException
I_CmsGalleryServiceupdateIndex 在接口中 I_CmsGalleryServiceCmsRpcException - if something goes wrongI_CmsGalleryService.updateIndex()protected java.util.List<CmsResource> getSitemapSubEntryResources(java.lang.String rootPath) throws CmsException
rootPath - the root pathCmsException - if something goes wrongprotected 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 sitemapCmsException - if something goes wrongprotected java.util.List<java.lang.String> getTypeNames(CmsGalleryDataBean data)
data - the gallery data beanprotected 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 checkCmsException - if something goes wrongprotected 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