|
||||||||
| 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.sitemap.CmsVfsSitemapService
public class CmsVfsSitemapService
Handles all RPC services related to the vfs sitemap.
I_CmsSitemapService,
I_CmsSitemapServiceAsync,
Serialized Form| Nested Class Summary | |
|---|---|
protected class |
CmsVfsSitemapService.LockInfo
Helper class for representing information about a lock. |
| Field Summary | |
|---|---|
static java.lang.String |
ALIAS_DOWNLOAD_PATH
The path of the JSP used to download aliases. |
static java.lang.String |
ALIAS_IMPORT_PATH
The path to the JSP used to upload aliases. |
static java.lang.String |
KEY_FUNCTION_DETAIL
The configuration key for the functionDetail attribute in the container.info property. |
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
CmsVfsSitemapService()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
addAliasImportResult(java.util.List<CmsAliasImportResult> results)
Adds an alias import result. |
protected CmsBrokenLinkBean |
createSitemapBrokenLinkBean(CmsResource resource)
Creates a "broken link" bean based on a resource. |
CmsSitemapChange |
createSubSitemap(CmsUUID entryId)
Creates a sub-sitemap of the given sitemap starting from the given entry. |
protected CmsVfsSitemapService.LockInfo |
ensureLockAndGetInfo(CmsResource resource)
Locks the given resource with a temporary, if not already locked by the current user. |
java.util.List<CmsAliasImportResult> |
getAliasImportResult(java.lang.String resultKey)
Gets the alias import results from the server. |
CmsAliasInitialFetchResult |
getAliasTable()
Gets the initial data for the bulk alias editor. |
CmsClientSitemapEntry |
getChildren(java.lang.String entryPointUri,
CmsUUID entryId,
int levels)
Returns the sitemap children for the given path. |
CmsSitemapChange |
mergeSubSitemap(java.lang.String entryPoint,
CmsUUID subSitemapId)
Merges a sub-sitemap into it's parent sitemap. |
static CmsSitemapData |
prefetch(javax.servlet.http.HttpServletRequest request,
java.lang.String sitemapUri)
Fetches the sitemap data. |
CmsSitemapData |
prefetch(java.lang.String sitemapUri)
Returns the initialization data for the given sitemap. |
CmsSitemapChange |
save(java.lang.String entryPoint,
CmsSitemapChange change)
Saves the change to the given sitemap. |
CmsAliasEditValidationReply |
saveAliases(CmsAliasSaveValidationRequest saveRequest)
Saves the aliases for the bulk alias editor. |
protected CmsSitemapChange |
saveInternal(java.lang.String entryPoint,
CmsSitemapChange change)
Internal method for saving a sitemap. |
CmsSitemapChange |
saveSync(java.lang.String entryPoint,
CmsSitemapChange change)
Saves the change to the given sitemap. |
void |
updateAliasEditorStatus(boolean editing)
Updates the alias editor status. |
CmsAliasEditValidationReply |
validateAliases(CmsAliasEditValidationRequest validationRequest)
Validates the aliases for the bulk alias editor. |
CmsRewriteAliasValidationReply |
validateRewriteAliases(CmsRewriteAliasValidationRequest validationRequest)
Validates rewrite aliases. |
| 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 |
| Field Detail |
|---|
public static final java.lang.String ALIAS_DOWNLOAD_PATH
public static final java.lang.String ALIAS_IMPORT_PATH
public static final java.lang.String KEY_FUNCTION_DETAIL
| Constructor Detail |
|---|
public CmsVfsSitemapService()
| Method Detail |
|---|
public static java.lang.String addAliasImportResult(java.util.List<CmsAliasImportResult> results)
results - the list of alias import results to add
public static CmsSitemapData prefetch(javax.servlet.http.HttpServletRequest request,
java.lang.String sitemapUri)
throws CmsRpcException
request - the current requestsitemapUri - the site relative path
CmsRpcException - if something goes wrong
public CmsSitemapChange createSubSitemap(CmsUUID entryId)
throws CmsRpcException
I_CmsSitemapService
createSubSitemap in interface I_CmsSitemapServiceentryId - the structure id of the sitemap entry to create a sub sitemap of
CmsRpcException - if something goes wrongI_CmsSitemapService.createSubSitemap(org.opencms.util.CmsUUID)public java.util.List<CmsAliasImportResult> getAliasImportResult(java.lang.String resultKey)
I_CmsSitemapService
getAliasImportResult in interface I_CmsSitemapServiceresultKey - the key which identifies the alias import results to get
I_CmsSitemapService.getAliasImportResult(java.lang.String)
public CmsAliasInitialFetchResult getAliasTable()
throws CmsRpcException
I_CmsSitemapService
getAliasTable in interface I_CmsSitemapServiceCmsRpcException - if something goes wrongI_CmsSitemapService.getAliasTable()
public CmsClientSitemapEntry getChildren(java.lang.String entryPointUri,
CmsUUID entryId,
int levels)
throws CmsRpcException
I_CmsSitemapService
getChildren in interface I_CmsSitemapServiceentryPointUri - the URI of the sitemap entry pointentryId - the entry idlevels - the count of child levels to read
CmsRpcException - if something goes wrongI_CmsSitemapService.getChildren(java.lang.String, org.opencms.util.CmsUUID, int)
public CmsSitemapChange mergeSubSitemap(java.lang.String entryPoint,
CmsUUID subSitemapId)
throws CmsRpcException
I_CmsSitemapService
mergeSubSitemap in interface I_CmsSitemapServiceentryPoint - the sitemap entry pointsubSitemapId - the structure id of the sub sitemap folder
CmsRpcException - if something goes wrongI_CmsSitemapService.mergeSubSitemap(java.lang.String, org.opencms.util.CmsUUID)
public CmsSitemapData prefetch(java.lang.String sitemapUri)
throws CmsRpcException
I_CmsSitemapService
prefetch in interface I_CmsSitemapServicesitemapUri - the site relative path
CmsRpcException - if something goes wrongI_CmsSitemapService.prefetch(java.lang.String)
public CmsSitemapChange save(java.lang.String entryPoint,
CmsSitemapChange change)
throws CmsRpcException
I_CmsSitemapService
save in interface I_CmsSitemapServiceentryPoint - the sitemap URIchange - the change to save
CmsRpcException - if something goes wrongI_CmsSitemapService.save(java.lang.String, org.opencms.ade.sitemap.shared.CmsSitemapChange)
public CmsAliasEditValidationReply saveAliases(CmsAliasSaveValidationRequest saveRequest)
throws CmsRpcException
I_CmsSitemapService
saveAliases in interface I_CmsSitemapServicesaveRequest - the object containing the data to save
CmsRpcException - if something goes wrongI_CmsSitemapService.saveAliases(org.opencms.gwt.shared.alias.CmsAliasSaveValidationRequest)
public CmsSitemapChange saveSync(java.lang.String entryPoint,
CmsSitemapChange change)
throws CmsRpcException
I_CmsSitemapService
saveSync in interface I_CmsSitemapServiceentryPoint - the sitemap URIchange - the change to save
CmsRpcException - if something goes wrongI_CmsSitemapService.saveSync(java.lang.String, org.opencms.ade.sitemap.shared.CmsSitemapChange)public void updateAliasEditorStatus(boolean editing)
I_CmsSitemapServiceThis is used to keep two users from editing the alias table for a site root concurrently.
updateAliasEditorStatus in interface I_CmsSitemapServiceediting - true to indicate that the table is still being edited, false to indicate that the table isn't being edited anymoreI_CmsSitemapService.updateAliasEditorStatus(boolean)public CmsAliasEditValidationReply validateAliases(CmsAliasEditValidationRequest validationRequest)
I_CmsSitemapService
validateAliases in interface I_CmsSitemapServicevalidationRequest - an object indicating the type of validation to perform
I_CmsSitemapService.validateAliases(org.opencms.gwt.shared.alias.CmsAliasEditValidationRequest)public CmsRewriteAliasValidationReply validateRewriteAliases(CmsRewriteAliasValidationRequest validationRequest)
I_CmsSitemapService
validateRewriteAliases in interface I_CmsSitemapServicevalidationRequest - the rewrite alias data to validate
I_CmsSitemapService.validateRewriteAliases(org.opencms.gwt.shared.alias.CmsRewriteAliasValidationRequest)
protected CmsBrokenLinkBean createSitemapBrokenLinkBean(CmsResource resource)
throws CmsException
resource - the resource
CmsException - if something goes wrong
protected CmsVfsSitemapService.LockInfo ensureLockAndGetInfo(CmsResource resource)
throws CmsException
resource - the resource to lock
CmsException - if the resource could not be locked
protected CmsSitemapChange saveInternal(java.lang.String entryPoint,
CmsSitemapChange change)
throws CmsException
entryPoint - the URI of the sitemap to savechange - the change to save
CmsException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||