Interface MCFolderResource
@Produces("application/json")
@Consumes("application/json")
@Path("/folder")
public interface MCFolderResource
Resource for handling multichannelling aspects of folders
-
Method Summary
Modifier and TypeMethodDescriptiondisinherit
(String id, Integer nodeId) Get the multichannelling exclusion and disinherit status of the foldercom.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 folderscom.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 foldersgetLocalizationInfo
(String id, Integer nodeId, boolean recursive) Get localization info for a folder and all subitems for a given channel and all master channelsgetSyncableObjects
(List<Integer> folderIds, Integer srcNodeId, Integer dstNodeId, Boolean recursive, List<PushToMasterRequest.Type> types) Get objects which are directly or indirectly linked by the specified folders, which can be synchronised to a master channel along with the folders themselves.localizations
(Integer id) Get the IDs an their respective node IDs of localized copies of the specified folder.com.gentics.contentnode.rest.model.response.GenericResponse
localize
(Integer id, LocalizeRequest request) Localize the given foldercom.gentics.contentnode.rest.model.response.GenericResponse
pushToMaster
(MultiPushToMasterRequest request) Push a list of folders from a channel into a mastercom.gentics.contentnode.rest.model.response.GenericResponse
pushToMaster
(Integer id, PushToMasterRequest request) Push a folder from a channel into a mastercom.gentics.contentnode.rest.model.response.GenericResponse
unlocalize
(MultiUnlocalizeRequest request) Unlocalize folders in a channelcom.gentics.contentnode.rest.model.response.GenericResponse
unlocalize
(Integer id, UnlocalizeRequest request) Unlocalize the given folder
-
Method Details
-
getSyncableObjects
@GET @Path("/usage/syncableObjects") ReferencedSyncableObjectsListResponse getSyncableObjects(@QueryParam("ids") List<Integer> folderIds, @QueryParam("srcNodeId") Integer srcNodeId, @QueryParam("dstNodeId") Integer dstNodeId, @QueryParam("recursive") Boolean recursive, @QueryParam("types") List<PushToMasterRequest.Type> types) throws Exception Get objects which are directly or indirectly linked by the specified folders, which can be synchronised to a master channel along with the folders themselves. Linked objects are pages, files and images specified inUrlPartTypes
of content or object tags. Direct dependencies are in thepages
,files
andimages
files of the response. Indirect dependencies are mapped independencies
.- Parameters:
folderIds
- The IDs of the folders to get linked objects forsrcNodeId
- The channel ID of the source channeldstNodeId
- The channel ID of the target channelrecursive
- Whether objects in subfolders should be collected (optional, default:false
)types
- The object types which should be synchronised (optional, default: all types)- 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 folder from a channel into a master- Parameters:
id
- id of the folderrequest
- 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 folders 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 folder- Parameters:
id
- id of the folder 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 folders 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 folder- Parameters:
id
- id of the folder to localizerequest
- request- Returns:
- generic response
- Throws:
Exception
-
localizations
@GET @Path("/localizations/{id}") LocalizationsResponse localizations(@PathParam("id") Integer id) throws Exception Get the IDs an their respective node IDs of localized copies of the specified folder.- Parameters:
id
- The ID of the master folder.- Returns:
- A map of folder IDs to node IDs of localized copies.
- Throws:
Exception
-
getLocalizationInfo
@GET @Path("/localizationinfo/{id}") LocalizationInfo getLocalizationInfo(@PathParam("id") String id, @QueryParam("nodeId") Integer nodeId, @QueryParam("recursive") boolean recursive) throws Exception Get localization info for a folder and all subitems for a given channel and all master channels- Parameters:
id
- id of the folder. This can either be the local or global idnodeId
- id of the node to start withrecursive
- true if the localization info shall be fetched recursively, false if not- Returns:
- localization info
- 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 folder- Parameters:
id
- folder 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
- folder 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 folders- Parameters:
ids
- list of folder 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 folders- Parameters:
ids
- list of folder IDsnodeId
- node IDwaitMs
- wait timeout in millisecondsrequest
- request object- Returns:
- generic response
- Throws:
Exception
-