public interface NodeResource extends AuthenticatedResource
Modifier and Type | Method and Description |
---|---|
GenericResponse |
activateFeatures(String nodeId,
NodeFeatureRequest request)
Activate the given list of features (features not listed will not be changed)
|
NodeLoadResponse |
create(NodeSaveRequest request)
Create a new node.
|
GenericResponse |
deactivateFeatures(String nodeId,
NodeFeatureRequest request)
Deactivate the given list of features (features not listed will not be changed)
|
NodeFeatureResponse |
getFeatures(String nodeId)
Load the activated features
|
LanguageListResponse |
languages(String nodeId)
Get the ordered list of languages of the node
|
NodeLoadResponse |
load(String nodeId,
boolean update)
Load a single node
|
GenericResponse |
save(String nodeId,
NodeSaveRequest request)
Saves the values specified in the request to the
node.
|
GenericResponse |
setFeatures(String nodeId,
NodeFeatureRequest request)
Set the given list of features.
|
setSessionId
NodeLoadResponse create(NodeSaveRequest request)
NodeResourceImpl#checkCreateRequest
for a detailed list of
constraints on the given request. In short:
request
- The request containing a REST model of
the node to be created.GenericResponse save(String nodeId, NodeSaveRequest request)
NodeResourceImpl#checkRequestConsistency
for a detailed
list of constraints on the request. In short:
id
- The id of the node to save.request
- The request containing the fields
to be updated in the node.NodeLoadResponse load(String nodeId, boolean update)
nodeId
- id of the node to load. This can be either the localid or a globalidupdate
- true when the folder is fetched for updating. Currently, nodes
cannot be locked in the backend, but it is still recommended
to set this parameter to true when the node shall be modified.LanguageListResponse languages(String nodeId) throws Exception
nodeId
- node idException
NodeFeatureResponse getFeatures(String nodeId)
nodeId
- id of the nodeGenericResponse activateFeatures(String nodeId, NodeFeatureRequest request)
nodeId
- id of the node. This can be either the localid or the globalidGenericResponse deactivateFeatures(String nodeId, NodeFeatureRequest request)
nodeId
- id of the node. This can be either the localid or the globalidGenericResponse setFeatures(String nodeId, NodeFeatureRequest request)
nodeId
- id of the node. This can be either the localid or the globalidCopyright © 2018 Gentics Software. All rights reserved.