com.gentics.contentnode.rest.resource
Interface NodeResource

All Superinterfaces:
AuthenticatedResource

public interface NodeResource
extends AuthenticatedResource

Resource for handling Nodes in GCN


Method Summary
 GenericResponse activateFeatures(String nodeId, NodeFeatureRequest request)
          Activate the given list of features (features not listed will not be changed)
 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
 NodeLoadResponse load(String nodeId, boolean update)
          Load a single node
 GenericResponse setFeatures(String nodeId, NodeFeatureRequest request)
          Set the given list of features.
 
Methods inherited from interface com.gentics.contentnode.rest.resource.AuthenticatedResource
setSessionId
 

Method Detail

load

NodeLoadResponse load(String nodeId,
                      boolean update)
Load a single node

Parameters:
nodeId - id of the node to load. This can be either the localid or a globalid
update - 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.
Returns:
response containing the node to load

getFeatures

NodeFeatureResponse getFeatures(String nodeId)
Load the activated features

Parameters:
nodeId - id of the node
Returns:
response containing the activated features

activateFeatures

GenericResponse activateFeatures(String nodeId,
                                 NodeFeatureRequest request)
Activate the given list of features (features not listed will not be changed)

Parameters:
nodeId - id of the node. This can be either the localid or the globalid
Returns:
generic response

deactivateFeatures

GenericResponse deactivateFeatures(String nodeId,
                                   NodeFeatureRequest request)
Deactivate the given list of features (features not listed will not be changed)

Parameters:
nodeId - id of the node. This can be either the localid or the globalid
Returns:
generic response

setFeatures

GenericResponse setFeatures(String nodeId,
                            NodeFeatureRequest request)
Set the given list of features. Exactly the listed features will be activated, all other will be deactivated

Parameters:
nodeId - id of the node. This can be either the localid or the globalid
Returns:
generic response


Copyright © 2014 Gentics Software GmbH. All Rights Reserved.