|
||||||||
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.containerpage.CmsContainerpageService
public class CmsContainerpageService
The RPC service used by the container-page editor.
Field Summary |
---|
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
---|
perThreadRequest, perThreadResponse |
Constructor Summary | |
---|---|
CmsContainerpageService()
|
Method Summary | |
---|---|
void |
addToFavoriteList(String clientId)
Adds an element specified by it's id to the favorite list. |
void |
addToRecentList(String clientId)
Adds an element specified by it's id to the recent list. |
CmsCreateElementData |
checkCreateNewElement(CmsUUID pageStructureId,
String clientId,
String resourceType,
String locale)
To create a new element of the given type this method will check if a model resource needs to be selected, otherwise creates the new element. |
CmsUUID |
convertToServerId(String id)
Parses an element id. |
CmsContainerElement |
createNewElement(CmsUUID pageStructureId,
String clientId,
String resourceType,
CmsUUID modelResourceStructureId,
String locale)
Creates a new element of the given type and returns the new element data containing structure id and site path. |
Map<String,CmsContainerElementData> |
getElementsData(CmsUUID pageStructureId,
String reqParams,
Collection<String> clientIds,
Collection<CmsContainer> containers,
String locale)
Returns container element data by client id. |
CmsContainerElementData |
getElementWithSettings(CmsUUID pageStructureId,
String uriParams,
String clientId,
Map<String,String> settings,
Collection<CmsContainer> containers,
String locale)
Gets the element data for an id and a map of settings. |
List<CmsContainerElementData> |
getFavoriteList(CmsUUID pageStructureId,
Collection<CmsContainer> containers,
String locale)
Returns the container element data of the favorite list. |
CmsContainerElementData |
getNewElementData(CmsUUID pageStructureId,
String reqParams,
String resourceType,
Collection<CmsContainer> containers,
String localeName)
Returns new container element data for the given resource type name. |
List<CmsContainerElementData> |
getRecentList(CmsUUID pageStructureId,
Collection<CmsContainer> containers,
String locale)
Returns the container element data of the recent list. |
static CmsContainerpageService |
newInstance(javax.servlet.http.HttpServletRequest request)
Returns a new configured service instance. |
CmsCntPageData |
prefetch()
Returns the initialization data. |
void |
saveContainerpage(CmsUUID pageStructureId,
List<CmsContainer> containers,
String locale)
Saves the container-page. |
void |
saveFavoriteList(List<String> clientIds)
Saves the favorite list. |
Map<String,CmsContainerElementData> |
saveGroupContainer(CmsUUID pageStructureId,
String reqParams,
CmsGroupContainer groupContainer,
Collection<CmsContainer> containers,
String locale)
Saves a group-container element. |
void |
saveRecentList(List<String> clientIds)
Saves the recent list. |
void |
syncSaveContainerpage(CmsUUID pageStructureId,
List<CmsContainer> containers,
String locale)
Saves the container-page in a synchronized RPC call. |
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 CmsContainerpageService()
Method Detail |
---|
public static CmsContainerpageService newInstance(javax.servlet.http.HttpServletRequest request)
request
- the current request
public void addToFavoriteList(String clientId) throws CmsRpcException
I_CmsContainerpageService
addToFavoriteList
in interface I_CmsContainerpageService
clientId
- the element id
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.addToFavoriteList(java.lang.String)
public void addToRecentList(String clientId) throws CmsRpcException
I_CmsContainerpageService
addToRecentList
in interface I_CmsContainerpageService
clientId
- the element id
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.addToRecentList(java.lang.String)
public CmsCreateElementData checkCreateNewElement(CmsUUID pageStructureId, String clientId, String resourceType, String locale) throws CmsRpcException
I_CmsContainerpageService
checkCreateNewElement
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idclientId
- the client id of the new element (this will be the structure id of the configured new resource)resourceType
- the resource tape of the new elementlocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.checkCreateNewElement(org.opencms.util.CmsUUID, java.lang.String, java.lang.String, java.lang.String)
public CmsUUID convertToServerId(String id) throws CmsIllegalArgumentException
id
- the element id
CmsIllegalArgumentException
- if the id has not the right formatpublic CmsContainerElement createNewElement(CmsUUID pageStructureId, String clientId, String resourceType, CmsUUID modelResourceStructureId, String locale) throws CmsRpcException
I_CmsContainerpageService
createNewElement
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idclientId
- the client id of the new element (this will be the structure id of the configured new resource)resourceType
- the resource tape of the new elementmodelResourceStructureId
- the model resource structure idlocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.createNewElement(org.opencms.util.CmsUUID, java.lang.String, java.lang.String, org.opencms.util.CmsUUID, java.lang.String)
public Map<String,CmsContainerElementData> getElementsData(CmsUUID pageStructureId, String reqParams, Collection<String> clientIds, Collection<CmsContainer> containers, String locale) throws CmsRpcException
I_CmsContainerpageService
getElementsData
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idreqParams
- optional request parametersclientIds
- the requested element id'scontainers
- the containers of the current pagelocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.getElementsData(org.opencms.util.CmsUUID, java.lang.String, java.util.Collection, java.util.Collection, java.lang.String)
public CmsContainerElementData getElementWithSettings(CmsUUID pageStructureId, String uriParams, String clientId, Map<String,String> settings, Collection<CmsContainer> containers, String locale) throws CmsRpcException
I_CmsContainerpageService
getElementWithSettings
in interface I_CmsContainerpageService
pageStructureId
- the container page structure iduriParams
- optional request parametersclientId
- the requested element idssettings
- the settings for which the element data should be loadedcontainers
- the containers of the current pagelocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.getElementWithSettings(org.opencms.util.CmsUUID, java.lang.String, java.lang.String, java.util.Map, java.util.Collection, java.lang.String)
public List<CmsContainerElementData> getFavoriteList(CmsUUID pageStructureId, Collection<CmsContainer> containers, String locale) throws CmsRpcException
I_CmsContainerpageService
getFavoriteList
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idcontainers
- the containers of the current pagelocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.getFavoriteList(org.opencms.util.CmsUUID, java.util.Collection, java.lang.String)
public CmsContainerElementData getNewElementData(CmsUUID pageStructureId, String reqParams, String resourceType, Collection<CmsContainer> containers, String localeName) throws CmsRpcException
I_CmsContainerpageService
getNewElementData
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idreqParams
- optional request parametersresourceType
- the requested element resource type namecontainers
- the containers of the current pagelocaleName
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.getNewElementData(org.opencms.util.CmsUUID, java.lang.String, java.lang.String, java.util.Collection, java.lang.String)
public List<CmsContainerElementData> getRecentList(CmsUUID pageStructureId, Collection<CmsContainer> containers, String locale) throws CmsRpcException
I_CmsContainerpageService
getRecentList
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idcontainers
- the containers of the current pagelocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.getRecentList(org.opencms.util.CmsUUID, java.util.Collection, java.lang.String)
public CmsCntPageData prefetch() throws CmsRpcException
I_CmsContainerpageService
prefetch
in interface I_CmsContainerpageService
CmsRpcException
- if something goes wrongI_CmsContainerpageService.prefetch()
public void saveContainerpage(CmsUUID pageStructureId, List<CmsContainer> containers, String locale) throws CmsRpcException
I_CmsContainerpageService
saveContainerpage
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idcontainers
- the container-page's containerslocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.saveContainerpage(org.opencms.util.CmsUUID, java.util.List, java.lang.String)
public void saveFavoriteList(List<String> clientIds) throws CmsRpcException
I_CmsContainerpageService
saveFavoriteList
in interface I_CmsContainerpageService
clientIds
- favorite list element id's
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.saveFavoriteList(java.util.List)
public Map<String,CmsContainerElementData> saveGroupContainer(CmsUUID pageStructureId, String reqParams, CmsGroupContainer groupContainer, Collection<CmsContainer> containers, String locale) throws CmsRpcException
I_CmsContainerpageService
saveGroupContainer
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idreqParams
- optional request parametersgroupContainer
- the group-container to savecontainers
- the containers of the current pagelocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.saveGroupContainer(org.opencms.util.CmsUUID, java.lang.String, org.opencms.ade.containerpage.shared.CmsGroupContainer, java.util.Collection, java.lang.String)
public void saveRecentList(List<String> clientIds) throws CmsRpcException
I_CmsContainerpageService
saveRecentList
in interface I_CmsContainerpageService
clientIds
- recent list element id's
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.saveRecentList(java.util.List)
public void syncSaveContainerpage(CmsUUID pageStructureId, List<CmsContainer> containers, String locale) throws CmsRpcException
I_CmsContainerpageService
syncSaveContainerpage
in interface I_CmsContainerpageService
pageStructureId
- the container page structure idcontainers
- the container-page's containerslocale
- the content locale
CmsRpcException
- if something goes wrong processing the requestI_CmsContainerpageService.syncSaveContainerpage(org.opencms.util.CmsUUID, java.util.List, java.lang.String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |