Interface I_CmsContainerpageServiceAsync
public interface I_CmsContainerpageServiceAsync
The RPC service asynchronous interface used by the container-page editor.
- Since:
- 8.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddToFavoriteList(CmsContainerPageRpcContext context, String clientId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Adds an element specified by it's id to the favorite list.voidaddToRecentList(CmsContainerPageRpcContext context, String clientId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Adds an element specified by it's id to the recent list.voidcheckContainerpageOrElementsChanged(CmsUUID structureId, CmsUUID detailContentId, String contentLocale, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback) Check if a page or its elements have been changed.voidcheckCreateNewElement(CmsUUID pageStructureId, CmsUUID detailContentId, String clientId, String resourceType, CmsContainer container, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsCreateElementData> callback) 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.voidcheckNewWidgetsAvailable(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> resultCallback) Checks whether the Acacia widgets are available for all fields of the content.voidcopyElement(CmsUUID pageId, CmsUUID originalElementId, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> resultCallback) Creates a new element with a given model element and returns the copy'S structure id.voidcreateNewElement(CmsUUID pageStructureId, CmsUUID detailContentId, String clientId, String resourceType, CmsUUID modelResourceStructureId, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerElement> callback) Creates a new element of the given type and returns the new element data containing structure id and site path.voidgetContainerInfo(com.google.gwt.user.client.rpc.AsyncCallback<CmsContainer> callback) This method is used for serialization purposes only.voidgetDeleteOptions(String clientId, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<CmsDialogOptionsAndInfo> callback) Returns the delete options.voidgetEditOptions(String clientId, CmsUUID pageStructureId, String requestParams, boolean isListElement, com.google.gwt.user.client.rpc.AsyncCallback<CmsDialogOptionsAndInfo> callback) Returns the edit options.voidgetElementInfo(com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerElement> callback) This method is used for serialization purposes only.voidgetElementsData(CmsContainerPageRpcContext context, CmsUUID detailContentId, String reqParams, Collection<String> clientIds, Collection<CmsContainer> containers, boolean alwaysCopy, String dndSource, String locale, com.google.gwt.user.client.rpc.AsyncCallback<Map<String, CmsContainerElementData>> callback) Requests container element data by client id.voidgetElementSettingsConfig(CmsContainerPageRpcContext context, String clientId, String containerId, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsElementSettingsConfig> callback) Returns container element settings config data.voidgetElementsLockedForPublishing(Set<CmsUUID> idsToCheck, com.google.gwt.user.client.rpc.AsyncCallback<Set<CmsUUID>> callback) Checks which structure ids of a given set belong to resources locked for publishing by the current user, and then returns those.voidgetElementWithSettings(CmsContainerPageRpcContext context, CmsUUID detailContentId, String reqParams, String clientId, Map<String, String> settings, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerElementData> callback) Gets the element data for an id and a map of settings.voidgetFavoriteList(CmsUUID pageStructureId, CmsUUID detailContentId, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsContainerElementData>> callback) Requests the container element data of the favorite list.voidgetGalleryDataForPage(List<CmsContainer> containers, CmsUUID elementView, String uri, CmsUUID detailContentId, String locale, CmsTemplateContextInfo contextInfo, com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerPageGalleryData> callback) Returns the gallery configuration data according to the current page containers and the selected element view.voidgetListElementCreationOptions(CmsUUID structureId, String jsonListAddData, com.google.gwt.user.client.rpc.AsyncCallback<CmsListElementCreationDialogData> callback) Loads the data for the list element creation dialog.voidgetNewElementData(CmsContainerPageRpcContext context, CmsUUID detailContentId, String reqParams, String resourceType, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerElementData> callback) Returns new container element data for the given resource type name.voidgetNewOptions(String clientId, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<CmsDialogOptionsAndInfo> callback) Gets the edit handler options for creating a new element.voidgetRecentList(CmsUUID pageStructureId, CmsUUID detailContentId, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsContainerElementData>> callback) Requests the container element data of the recent list.voidgetRemovedElementStatus(String id, CmsUUID contextId, CmsUUID containerpageId, com.google.gwt.user.client.rpc.AsyncCallback<CmsRemovedElementStatus> callback) Gets the status of a removed element.voidgetReuseInfo(CmsUUID pageId, CmsUUID detailId, CmsUUID elementId, com.google.gwt.user.client.rpc.AsyncCallback<CmsReuseInfo> callback) Loads reuse information for a container element.voidhandleDelete(String clientId, String deleteOption, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Handles the element deletion.voidloadClipboardTab(com.google.gwt.user.client.rpc.AsyncCallback<Integer> resultCallback) Loads the clipboard tab to initially select.voidprefetch(com.google.gwt.user.client.rpc.AsyncCallback<CmsCntPageData> callback) Returns the initialization data.voidprepareForEdit(String clientId, String editOption, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> callback) Prepares an element to be edited.voidreplaceElement(CmsContainerPageRpcContext context, CmsUUID detailContentId, String reqParams, String clientId, String replaceId, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerElementData> callback) Returns the element data to replace a given content element with another while keeping it's settings.voidsaveClipboardTab(int tabIndex, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the selected clipboard tab.voidsaveContainerpage(CmsUUID pageStructureId, List<CmsContainer> containers, com.google.gwt.user.client.rpc.AsyncCallback<CmsPageSaveStatus> callback) Saves the container-page.voidsaveDetailContainers(CmsUUID detailId, String detailContainerResource, List<CmsContainer> containers, com.google.gwt.user.client.rpc.AsyncCallback<CmsPageSaveStatus> callback) Saves the detail containers.voidsaveElementSettings(CmsContainerPageRpcContext context, CmsUUID detailContentId, String reqParams, String clientId, Map<String, String> settings, List<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerElementData> callback) Saves the settings for the given element to the container page and returns the updated element data.voidsaveFavoriteList(List<String> clientIds, String uri, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the favorite list.voidsaveGroupContainer(CmsContainerPageRpcContext context, CmsUUID detailContentId, String reqParams, CmsGroupContainer groupContainer, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsGroupContainerSaveResult> callback) Saves a group-container element.voidsaveInheritanceContainer(CmsUUID pageStructureId, CmsUUID detailContentId, CmsInheritanceContainer inheritanceContainer, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<Map<String, CmsContainerElementData>> callback) Saves an inheritance container.voidsaveRecentList(List<String> clientIds, String uri, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the recent list.voidsetEditSmallElements(boolean editSmallElements, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the default value for small element editability on page load.voidsetElementView(CmsUUID elementView, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Sets the element view.voidsetLastPage(CmsUUID pageId, CmsUUID detailId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Stores information about the container page last edited.
-
Method Details
-
checkContainerpageOrElementsChanged
void checkContainerpageOrElementsChanged(CmsUUID structureId, CmsUUID detailContentId, String contentLocale, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback) Check if a page or its elements have been changed.- Parameters:
structureId- the id of the container pagedetailContentId- the structure id of the detail content (may be null)contentLocale- the content localecallback- the callback for the result
-
checkNewWidgetsAvailable
void checkNewWidgetsAvailable(CmsUUID structureId, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> resultCallback) Checks whether the Acacia widgets are available for all fields of the content.- Parameters:
structureId- the structure id of the content to check.resultCallback- the callback for the result
-
copyElement
void copyElement(CmsUUID pageId, CmsUUID originalElementId, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> resultCallback) Creates a new element with a given model element and returns the copy'S structure id.- Parameters:
pageId- the container page idoriginalElementId- the model element idlocale- the content localeresultCallback- the callback for the result
-
createNewElement
void createNewElement(CmsUUID pageStructureId, CmsUUID detailContentId, String clientId, String resourceType, CmsUUID modelResourceStructureId, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsContainerElement> callback) Creates a new element of the given type and returns the new element data containing structure id and site path.- Parameters:
pageStructureId- the container page structure iddetailContentId- the structure id of the detail contentclientId- 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 localecallback- the call-back executed on response
-
getContainerInfo
This method is used for serialization purposes only.- Parameters:
callback- the callback
-
getDeleteOptions
void getDeleteOptions(String clientId, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<CmsDialogOptionsAndInfo> callback) Returns the delete options.- Parameters:
clientId- the client element idpageStructureId- the current page structure idrequestParams- optional request parameterscallback- the async callback
-
getEditOptions
void getEditOptions(String clientId, CmsUUID pageStructureId, String requestParams, boolean isListElement, com.google.gwt.user.client.rpc.AsyncCallback<CmsDialogOptionsAndInfo> callback) Returns the edit options.- Parameters:
clientId- the client element idpageStructureId- the current page structure idrequestParams- optional request parametersisListElement- in case a list element, not a container element is about to be editedcallback- the async callback
-
getElementInfo
This method is used for serialization purposes only.- Parameters:
callback- the callback
-
getElementsLockedForPublishing
void getElementsLockedForPublishing(Set<CmsUUID> idsToCheck, com.google.gwt.user.client.rpc.AsyncCallback<Set<CmsUUID>> callback) Checks which structure ids of a given set belong to resources locked for publishing by the current user, and then returns those.- Parameters:
idsToCheck- the set of ids to checkcallback- the callback to call with the result
-
getFavoriteList
void getFavoriteList(CmsUUID pageStructureId, CmsUUID detailContentId, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsContainerElementData>> callback) Requests the container element data of the favorite list.- Parameters:
pageStructureId- the container page structure iddetailContentId- the detail content structure idcontainers- the containers of the current pagelocale- the content localecallback- the call-back executed on response
-
getListElementCreationOptions
void getListElementCreationOptions(CmsUUID structureId, String jsonListAddData, com.google.gwt.user.client.rpc.AsyncCallback<CmsListElementCreationDialogData> callback) Loads the data for the list element creation dialog.- Parameters:
structureId- the structure id of the container element for which we want to load the optionsjsonListAddData- the list-add metadata read from the DOMcallback- the callback for the result
-
getNewOptions
void getNewOptions(String clientId, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<CmsDialogOptionsAndInfo> callback) Gets the edit handler options for creating a new element.- Parameters:
clientId- the client id of the selected elementpageStructureId- the container page structure idrequestParams- the request parameter stringcallback- the callback to call when done
-
getRecentList
void getRecentList(CmsUUID pageStructureId, CmsUUID detailContentId, Collection<CmsContainer> containers, String locale, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsContainerElementData>> callback) Requests the container element data of the recent list.- Parameters:
pageStructureId- the container page structure iddetailContentId- the detail content structure idcontainers- the containers of the current pagelocale- the content localecallback- the call-back executed on response
-
getRemovedElementStatus
void getRemovedElementStatus(String id, CmsUUID contextId, CmsUUID containerpageId, com.google.gwt.user.client.rpc.AsyncCallback<CmsRemovedElementStatus> callback) Gets the status of a removed element.- Parameters:
id- the element's client idcontextId- the structure id of the resource from which the sitemap configuration should be looked upcontainerpageId- the id of the container page which should be excluded from the relation check, or null if no page should be excludedcallback- the asynchronous callback to execute with the results
-
getReuseInfo
void getReuseInfo(CmsUUID pageId, CmsUUID detailId, CmsUUID elementId, com.google.gwt.user.client.rpc.AsyncCallback<CmsReuseInfo> callback) Loads reuse information for a container element.- Parameters:
pageId- the id of the current pagedetailId- the detail id for the current pageelementId- the id of the container elementcallback- the callback to call with the result
-
handleDelete
void handleDelete(String clientId, String deleteOption, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Handles the element deletion.- Parameters:
clientId- the client element iddeleteOption- the selected delete optionpageStructureId- the current page structure idrequestParams- optional request parameterscallback- the asynchronous callback to execute with the results
-
loadClipboardTab
Loads the clipboard tab to initially select.- Parameters:
resultCallback- the result callback
-
prefetch
Returns the initialization data.- Parameters:
callback- the async callback
-
prepareForEdit
void prepareForEdit(String clientId, String editOption, CmsUUID pageStructureId, String requestParams, com.google.gwt.user.client.rpc.AsyncCallback<CmsUUID> callback) Prepares an element to be edited.- Parameters:
clientId- the client element ideditOption- the selected delete optionpageStructureId- the current page structure idrequestParams- optional request parameterscallback- the async callback
-
saveClipboardTab
Saves the selected clipboard tab.- Parameters:
tabIndex- the index of the selected clipboard tabcallback- the result callback
-
saveContainerpage
void saveContainerpage(CmsUUID pageStructureId, List<CmsContainer> containers, com.google.gwt.user.client.rpc.AsyncCallback<CmsPageSaveStatus> callback) Saves the container-page. Returning the save time stamp.- Parameters:
pageStructureId- the container page structure idcontainers- the container-page's containerscallback- the call-back executed on response
-
saveDetailContainers
void saveDetailContainers(CmsUUID detailId, String detailContainerResource, List<CmsContainer> containers, com.google.gwt.user.client.rpc.AsyncCallback<CmsPageSaveStatus> callback) Saves the detail containers. Returning the save time stamp.- Parameters:
detailId- the detail content iddetailContainerResource- the detail container resource pathcontainers- the container-page's containerscallback- the call-back executed on response
-
saveFavoriteList
void saveFavoriteList(List<String> clientIds, String uri, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the favorite list.- Parameters:
clientIds- favorite list element id'suri- the container page URIcallback- the call-back executed on response
-
saveRecentList
void saveRecentList(List<String> clientIds, String uri, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the recent list.- Parameters:
clientIds- recent list element id'suri- the container page URIcallback- the call-back executed on response
-
setEditSmallElements
void setEditSmallElements(boolean editSmallElements, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the default value for small element editability on page load.- Parameters:
editSmallElements- the default valuecallback- the callback for the response
-
setElementView
void setElementView(CmsUUID elementView, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Sets the element view.- Parameters:
elementView- the element viewcallback- the call-back executed on response
-
setLastPage
void setLastPage(CmsUUID pageId, CmsUUID detailId, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Stores information about the container page last edited.- Parameters:
pageId- the page iddetailId- the detail content idcallback- the callback