@Path(value="node")
public interface NodeResource
| Modifier and Type | Method and Description |
|---|---|
GenericResponse |
activateFeature(String nodeId,
NodeFeature feature)
Activate the feature for the node
|
GenericResponse |
activateFeatures(String nodeId,
NodeFeatureRequest request)
Deprecated.
|
NodeLoadResponse |
add(NodeSaveRequest request)
Create a new node.
|
GenericResponse |
addConstruct(String nodeId,
String constructId)
Add a construct to a node.
|
GenericResponse |
addLanguage(String nodeId,
String languageId)
Add language to node
|
GenericResponse |
addObjectProperty(String nodeId,
String opId)
Add an object property to a node.
|
GenericResponse |
addTemplate(String nodeId,
String templateId)
Add a template to a node.
|
FeatureModelList |
availableFeatures(FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging)
Get list of available node features.
The result can be filtered by id
name
description
and sorted by
id
name
description
|
LanguageList |
availableLanguages(String nodeId,
FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging)
Get list of languages, which can be assigned to the node.
The result can be filtered by id
globalId
name
code
and sorted by
id
globalId
name
code
|
GenericResponse |
copy(String nodeId,
long waitMs,
NodeCopyRequest request)
Copy the given node.
|
NodeLoadResponse |
create(NodeSaveRequest request)
Deprecated.
|
GenericResponse |
deactivateFeature(String nodeId,
NodeFeature feature)
Deactivate the feature for the node
|
GenericResponse |
deactivateFeatures(String nodeId,
NodeFeatureRequest request)
Deprecated.
|
GenericResponse |
delete(String nodeId,
long waitMs)
Delete the given node
|
FeatureList |
features(String nodeId,
FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging)
Get list of features activated for the node.
The result can be filtered by name
and sorted by
name
|
NodeLoadResponse |
get(String nodeId,
boolean update)
Load a single node
|
PagedConstructListResponse |
getConstructs(String nodeId,
FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
PermsParameterBean perms)
Get the constructs assigned to this node.
The result can be filtered by keyword
name
description
and sorted by
id
globalId
keyword
name
description
|
NodeFeatureResponse |
getFeatures(String nodeId)
Deprecated.
|
PagedObjectPropertyListResponse |
getObjectProperties(String nodeId,
FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
PermsParameterBean perms)
Get the object properties assigned to this node.
The result can be filtered by keyword
name
description
and sorted by
keyword
name
description
|
TemplateLoadResponse |
getTemplate(String nodeId,
String templateId)
Get the template, if it is assigned to the node
|
PagedTemplateListResponse |
getTemplates(String nodeId,
FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
PermsParameterBean perms)
Get the templates assigned to this node.
|
LanguageListResponse |
languages(String nodeId)
Deprecated.
|
LanguageList |
languages(String nodeId,
FilterParameterBean filter,
PagingParameterBean paging)
Get list of languages in the node.
|
NodeList |
list(FilterParameterBean filter,
SortParameterBean sorting,
PagingParameterBean paging,
PermsParameterBean perms,
String stagingPackageName)
List nodes.
The result can be filtered by id
name
and sorted by
id
name
|
NodeLoadResponse |
load(String nodeId,
boolean update)
Deprecated.
|
GenericResponse |
removeConstruct(String nodeId,
String constructId)
Remove a construct from a node.
|
GenericResponse |
removeLanguage(String nodeId,
String languageId)
Remove language from node
|
GenericResponse |
removeObjectProperty(String nodeId,
String opId)
Remove an object property from a node.
|
GenericResponse |
removeTemplate(String nodeId,
String templateId)
Remove a template from a node.
|
GenericResponse |
save(String nodeId,
NodeSaveRequest request)
Deprecated.
|
GenericResponse |
setFeatures(String nodeId,
NodeFeatureRequest request)
Deprecated.
|
LanguageList |
setLanguages(String nodeId,
List<ContentLanguage> languages)
Set ordered list of languages
|
NodeSettingsResponse |
settings(String nodeId)
Load settings specific to the specified node.
|
GenericResponse |
update(String nodeId,
NodeSaveRequest request)
Saves the values specified in the request to the
node.
|
@PUT @Path(value="/") NodeLoadResponse add(NodeSaveRequest request) throws Exception
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.Exception@GET
@Path(value="/{id}")
NodeLoadResponse get(@PathParam(value="id")
String nodeId,
@DefaultValue(value="false") @QueryParam(value="update")
boolean update)
throws Exception
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.Exception@POST
@Path(value="/{id}")
GenericResponse update(@PathParam(value="id")
String nodeId,
NodeSaveRequest request)
throws Exception
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.Exception@DELETE
@Path(value="/{id}")
GenericResponse delete(@PathParam(value="id")
String nodeId,
@QueryParam(value="wait") @DefaultValue(value="0")
long waitMs)
throws Exception
nodeId - id of the nodewaitMs - wait timeout in millisecondsException@GET NodeList list(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging, @BeanParam PermsParameterBean perms, @QueryParam(value="package") String stagingPackageName) throws Exception
idnameidnamefilter - filter parameterssorting - sorting parameterspaging - paging parametersperms - perms parametersstagingPackageName - if given, check the node status against the staging packageException - in case of errors@GET
@Path(value="/{id}/languages")
LanguageList languages(@PathParam(value="id")
String nodeId,
@BeanParam
FilterParameterBean filter,
@BeanParam
PagingParameterBean paging)
throws Exception
idglobalIdnamecodenodeId - node idfilter - filter parameterspaging - paging parametersException@GET
@Path(value="/{id}/availableLanguages")
LanguageList availableLanguages(@PathParam(value="id")
String nodeId,
@BeanParam
FilterParameterBean filter,
@BeanParam
SortParameterBean sorting,
@BeanParam
PagingParameterBean paging)
throws Exception
idglobalIdnamecodeidglobalIdnamecodenodeId - node idfilter - filter parameterssorting - sorting parameterspaging - paging parametersException@PUT
@Path(value="/{id}/languages/{languageId}")
GenericResponse addLanguage(@PathParam(value="id")
String nodeId,
@PathParam(value="languageId")
String languageId)
throws Exception
nodeId - node idlanguageId - language id or language codeException@DELETE
@Path(value="/{id}/languages/{languageId}")
GenericResponse removeLanguage(@PathParam(value="id")
String nodeId,
@PathParam(value="languageId")
String languageId)
throws Exception
nodeId - node idlanguageId - language id or language codeException@POST
@Path(value="/{id}/languages")
LanguageList setLanguages(@PathParam(value="id")
String nodeId,
List<ContentLanguage> languages)
throws Exception
nodeId - node idlanguages - ordered list of languagesException@POST @Path(value="/create") @Deprecated NodeLoadResponse create(NodeSaveRequest request) throws Exception
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.Exception@POST
@Path(value="/save/{id}")
@Deprecated
GenericResponse save(@PathParam(value="id")
String nodeId,
NodeSaveRequest request)
throws Exception
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.Exception@GET
@Path(value="/load/{id}")
@Deprecated
NodeLoadResponse load(@PathParam(value="id")
String nodeId,
@DefaultValue(value="false") @QueryParam(value="update")
boolean update)
throws Exception
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.Exception@GET
@Path(value="/getLanguages/{id}")
@Deprecated
LanguageListResponse languages(@PathParam(value="id")
String nodeId)
throws Exception
nodeId - node idException@GET
@Path(value="/{id}/features")
FeatureList features(@PathParam(value="id")
String nodeId,
@BeanParam
FilterParameterBean filter,
@BeanParam
SortParameterBean sorting,
@BeanParam
PagingParameterBean paging)
throws Exception
namenamenodeId - node IDfilter - filter parameterssorting - sorting parameterspaging - paging parametersException@PUT
@Path(value="/{id}/features/{feature}")
GenericResponse activateFeature(@PathParam(value="id")
String nodeId,
@PathParam(value="feature")
NodeFeature feature)
throws Exception
nodeId - node IDfeature - feature to activateException@DELETE
@Path(value="/{id}/features/{feature}")
GenericResponse deactivateFeature(@PathParam(value="id")
String nodeId,
@PathParam(value="feature")
NodeFeature feature)
throws Exception
nodeId - node IDfeature - feature to activateException@GET
@Path(value="/features/{id}")
@Deprecated
NodeFeatureResponse getFeatures(@PathParam(value="id")
String nodeId)
throws Exception
nodeId - id of the nodeException@POST
@Path(value="/features/activate/{id}")
@Deprecated
GenericResponse activateFeatures(@PathParam(value="id")
String nodeId,
NodeFeatureRequest request)
throws Exception
nodeId - id of the node. This can be either the localid or the globalidException@POST
@Path(value="/features/deactivate/{id}")
@Deprecated
GenericResponse deactivateFeatures(@PathParam(value="id")
String nodeId,
NodeFeatureRequest request)
throws Exception
nodeId - id of the node. This can be either the localid or the globalidException@POST
@Path(value="/features/set/{id}")
@Deprecated
GenericResponse setFeatures(@PathParam(value="id")
String nodeId,
NodeFeatureRequest request)
throws Exception
nodeId - id of the node. This can be either the localid or the globalidException@GET
@Path(value="/{nodeId}/templates")
PagedTemplateListResponse getTemplates(@PathParam(value="nodeId")
String nodeId,
@BeanParam
FilterParameterBean filter,
@BeanParam
SortParameterBean sorting,
@BeanParam
PagingParameterBean paging,
@BeanParam
PermsParameterBean perms)
throws Exception
namedescriptionnamedescriptionnodeId - Node ID (local or global)filter - filter parameterssorting - sorting parameterspaging - paging parametersperms - permissions parametersException@GET
@Path(value="/{nodeId}/templates/{templateId}")
TemplateLoadResponse getTemplate(@PathParam(value="nodeId")
String nodeId,
@PathParam(value="templateId")
String templateId)
throws Exception
nodeId - Node ID (local or global)templateId - Template ID (local or global)Exception@PUT
@Path(value="/{nodeId}/templates/{templateId}")
GenericResponse addTemplate(@PathParam(value="nodeId")
String nodeId,
@PathParam(value="templateId")
String templateId)
throws Exception
nodeId - Node ID (local or global)templateId - Template ID (local or global)Exception@DELETE
@Path(value="/{nodeId}/templates/{templateId}")
GenericResponse removeTemplate(@PathParam(value="nodeId")
String nodeId,
@PathParam(value="templateId")
String templateId)
throws Exception
nodeId - Node ID (local or global)templateId - Template ID (local or global)Exception@GET
@Path(value="/{nodeId}/constructs")
PagedConstructListResponse getConstructs(@PathParam(value="nodeId")
String nodeId,
@BeanParam
FilterParameterBean filter,
@BeanParam
SortParameterBean sorting,
@BeanParam
PagingParameterBean paging,
@BeanParam
PermsParameterBean perms)
throws Exception
keywordnamedescriptionidglobalIdkeywordnamedescriptionnodeId - Node ID (local or global)filter - filter parameterssorting - sorting parameterspaging - paging parametersperms - permissions parametersException@PUT
@Path(value="/{nodeId}/constructs/{constructId}")
GenericResponse addConstruct(@PathParam(value="nodeId")
String nodeId,
@PathParam(value="constructId")
String constructId)
throws Exception
nodeId - Node ID (local or global)constructId - Construct ID (local or global)Exception@DELETE
@Path(value="/{nodeId}/constructs/{constructId}")
GenericResponse removeConstruct(@PathParam(value="nodeId")
String nodeId,
@PathParam(value="constructId")
String constructId)
throws Exception
nodeId - Node ID (local or global)constructId - Construct ID (local or global)Exception@GET
@Path(value="/{nodeId}/objectproperties")
PagedObjectPropertyListResponse getObjectProperties(@PathParam(value="nodeId")
String nodeId,
@BeanParam
FilterParameterBean filter,
@BeanParam
SortParameterBean sorting,
@BeanParam
PagingParameterBean paging,
@BeanParam
PermsParameterBean perms)
throws Exception
keywordnamedescriptionkeywordnamedescriptionnodeId - Node ID (local or global)filter - filter parameterssorting - sorting parameterspaging - paging parametersperms - permissions parametersException@PUT
@Path(value="/{nodeId}/objectproperties/{objectPropertyId}")
GenericResponse addObjectProperty(@PathParam(value="nodeId")
String nodeId,
@PathParam(value="objectPropertyId")
String opId)
throws Exception
nodeId - Node ID (local or global)objectPropertyId - Property IDException@DELETE
@Path(value="/{nodeId}/objectproperties/{objectPropertyId}")
GenericResponse removeObjectProperty(@PathParam(value="nodeId")
String nodeId,
@PathParam(value="objectPropertyId")
String opId)
throws Exception
nodeId - Node ID (local or global)opId - Construct ID (local or global)Exception@GET
@Path(value="/{nodeId}/settings")
NodeSettingsResponse settings(@PathParam(value="nodeId")
String nodeId)
throws Exception
$NODE_SETTINGS_GLOBAL are loaded and then the values from $NODE_SETTINGS[nodeId]
are added.nodeId - Node ID (local or global)Exception - On errors@GET @Path(value="/features") FeatureModelList availableFeatures(@BeanParam FilterParameterBean filter, @BeanParam SortParameterBean sorting, @BeanParam PagingParameterBean paging) throws Exception
idnamedescriptionidnamedescriptionfilter - filter parameterssorting - sorting parameterspaging - paging parametersException@POST
@Path(value="/{nodeId}/copy")
GenericResponse copy(@PathParam(value="nodeId")
String nodeId,
@QueryParam(value="wait") @DefaultValue(value="0")
long waitMs,
NodeCopyRequest request)
throws Exception
nodeId - node IDwaitMs - wait timeout in millisecondsrequest - copy requestExceptionCopyright © 2024 Gentics Software. All rights reserved.