Interface MCPageResource
@Produces("application/json")
@Consumes("application/json")
@Path("/page")
public interface MCPageResource
Resource for handling multichannelling aspects of pages.
-
Method Summary
Modifier and TypeMethodDescriptiondisinherit
(String id, Integer nodeId) Get the multichannelling exclusion and disinherit status of the pagecom.gentics.contentnode.rest.model.response.GenericResponse
disinherit
(String id, Integer nodeId, long waitMs, DisinheritRequest request) Set the multichannelling exclusion and disinherit statusdisinherit
(List<String> ids, Integer nodeId) Get the multichannelling exclusion and disinherit status for a list of pagescom.gentics.contentnode.rest.model.response.GenericResponse
disinherit
(List<String> ids, Integer nodeId, long waitMs, DisinheritRequest request) Set the multichannelling exclusion and disinherit status for a list of pagesgetLocalizationInfo
(Integer id, Integer nodeId) Get localization info for a page for a given channel and all master channelsgetLocalizationInfo
(List<Integer> ids, Integer nodeId) Get localization info for a list of pages for a given channel and all master channelsgetSyncableObjects
(List<Integer> pageIds, Integer srcNodeId, Integer dstNodeId) localizations
(Integer id, boolean addStatus) Get the IDs an their respective node IDs of localized copies of the specified page.com.gentics.contentnode.rest.model.response.GenericResponse
localize
(Integer id, LocalizeRequest request) Localize the given pagecom.gentics.contentnode.rest.model.response.GenericResponse
pushToMaster
(MultiPushToMasterRequest request) Push a list of pages from a channel into a mastercom.gentics.contentnode.rest.model.response.GenericResponse
pushToMaster
(Integer id, PushToMasterRequest request) Push a page from a channel into a mastercom.gentics.contentnode.rest.model.response.GenericResponse
unlocalize
(MultiUnlocalizeRequest request) Unlocalize pages in a channelcom.gentics.contentnode.rest.model.response.GenericResponse
unlocalize
(Integer id, UnlocalizeRequest request) Unlocalize the given page
-
Method Details
-
getSyncableObjects
@GET @Path("/usage/syncableObjects") ReferencedSyncableObjectsListResponse getSyncableObjects(@QueryParam("ids") List<Integer> pageIds, @QueryParam("srcNodeId") Integer srcNodeId, @QueryParam("dstNodeId") Integer dstNodeId) throws Exception - Throws:
Exception
-
pushToMaster
@POST @Path("/push2master/{id}") com.gentics.contentnode.rest.model.response.GenericResponse pushToMaster(@PathParam("id") Integer id, PushToMasterRequest request) throws Exception Push a page from a channel into a master- Parameters:
id
- id of the pagerequest
- request- Returns:
- generic response
- Throws:
Exception
-
pushToMaster
@POST @Path("/push2master") com.gentics.contentnode.rest.model.response.GenericResponse pushToMaster(MultiPushToMasterRequest request) throws Exception Push a list of pages from a channel into a master- Parameters:
request
- request- Returns:
- generic response
- Throws:
Exception
-
unlocalize
@POST @Path("/unlocalize/{id}") com.gentics.contentnode.rest.model.response.GenericResponse unlocalize(@PathParam("id") Integer id, UnlocalizeRequest request) throws Exception Unlocalize the given page- Parameters:
id
- id of the page to unlocalizerequest
- request- Returns:
- generic response
- Throws:
Exception
-
unlocalize
@POST @Path("/unlocalize") com.gentics.contentnode.rest.model.response.GenericResponse unlocalize(MultiUnlocalizeRequest request) throws Exception Unlocalize pages in a channel- Parameters:
request
- request- Returns:
- generic response
- Throws:
Exception
-
localize
@POST @Path("/localize/{id}") com.gentics.contentnode.rest.model.response.GenericResponse localize(@PathParam("id") Integer id, LocalizeRequest request) throws Exception Localize the given page- Parameters:
id
- id of the page to localizerequest
- request- Returns:
- generic response
- Throws:
Exception
-
getLocalizationInfo
@GET @Path("/localizationinfo") LocalizationInfo getLocalizationInfo(@QueryParam("id") List<Integer> ids, @QueryParam("nodeId") Integer nodeId) throws Exception Get localization info for a list of pages for a given channel and all master channels- Parameters:
ids
- list of page idsnodeId
- id of the node to start with- Returns:
- localization info
- Throws:
Exception
-
getLocalizationInfo
@GET @Path("/localizationinfo/{id}") LocalizationInfo getLocalizationInfo(@PathParam("id") Integer id, @QueryParam("nodeId") Integer nodeId) throws Exception Get localization info for a page for a given channel and all master channels- Parameters:
id
- id of the pagenodeId
- id of the node to start with- Returns:
- localization info
- Throws:
Exception
-
localizations
@GET @Path("/localizations/{id}") LocalizationsResponse localizations(@PathParam("id") Integer id, @QueryParam("status") @DefaultValue("false") boolean addStatus) throws Exception Get the IDs an their respective node IDs of localized copies of the specified page.- Parameters:
id
- The ID of the master page.addStatus
- Whentrue
information about the pages statuses will be added to the response.- Returns:
- A map of page IDs to node IDs of localized copies, with optional status information.
- Throws:
Exception
-
disinherit
@GET @Path("/disinherit/{id}") DisinheritResponse disinherit(@PathParam("id") String id, @QueryParam("nodeId") Integer nodeId) throws Exception Get the multichannelling exclusion and disinherit status of the page- Parameters:
id
- page IDnodeId
- node ID- Returns:
- response containing the exclusion and disinherit status
- Throws:
Exception
-
disinherit
@POST @Path("/disinherit/{id}") com.gentics.contentnode.rest.model.response.GenericResponse disinherit(@PathParam("id") String id, @QueryParam("nodeId") Integer nodeId, @QueryParam("wait") @DefaultValue("0") long waitMs, DisinheritRequest request) throws Exception Set the multichannelling exclusion and disinherit status- Parameters:
id
- page IDnodeId
- node IDwaitMs
- wait timeout in millisecondsrequest
- request object- Returns:
- generic response
- Throws:
Exception
-
disinherit
@GET @Path("/disinherit") MultiDisinheritResponse disinherit(@QueryParam("id") List<String> ids, @QueryParam("nodeId") Integer nodeId) throws Exception Get the multichannelling exclusion and disinherit status for a list of pages- Parameters:
ids
- list of page IDsnodeId
- node ID- Returns:
- response containing the exclusion and disinherit status
- Throws:
Exception
-
disinherit
@POST @Path("/disinherit") com.gentics.contentnode.rest.model.response.GenericResponse disinherit(@QueryParam("id") List<String> ids, @QueryParam("nodeId") Integer nodeId, @QueryParam("wait") @DefaultValue("0") long waitMs, DisinheritRequest request) throws Exception Set the multichannelling exclusion and disinherit status for a list of pages- Parameters:
ids
- list of page IDsnodeId
- node IDwaitMs
- wait timeout in millisecondsrequest
- request object- Returns:
- generic response
- Throws:
Exception
-