@Path(value="/template") public interface TemplateResource extends AuthenticatedResource
Modifier and Type | Method and Description |
---|---|
LocalizationInfo |
getLocalizationInfo(List<Integer> ids,
Integer nodeId)
Get localization info for a list of templates for a given channel and all master channels
|
LocalizationInfo |
getLocalizationInfo(String id,
Integer nodeId)
Get localization info for a template for a given channel and all master channels
|
TagListResponse |
getTags(String id,
Integer skipCount,
Integer maxItems,
TagSortAttribute sortBy,
SortOrder sortOrder,
String search)
Get the list of templatetags for this template
|
GenericResponse |
link(MultiLinkRequest request)
Link the given templates to the given folders.
|
GenericResponse |
link(String id,
LinkRequest request)
Link the given template to the given folders.
|
TemplateLoadResponse |
load(String id,
Integer nodeId)
Load the template with the given id and return it.
|
GenericResponse |
pushToMaster(Integer id,
PushToMasterRequest request)
Push a template from a channel into a master
|
GenericResponse |
pushToMaster(MultiPushToMasterRequest request)
Push a list of templates from a channel into a master
|
GenericResponse |
unlink(MultiLinkRequest request)
Unlink the given templates from the given folders.
|
GenericResponse |
unlink(String id,
LinkRequest request)
Unlink the given template from the given folders.
|
GenericResponse |
unlocalize(Integer id,
UnlocalizeRequest request)
Unlocalize the given template
|
GenericResponse |
unlocalize(MultiUnlocalizeRequest request)
Unlocalize templates in a channel
|
setSessionId
@GET @Path(value="/load/{id}") TemplateLoadResponse load(@PathParam(value="id") String id, @QueryParam(value="nodeId") Integer nodeId)
id
- The template idnodeId
- channel id@GET @Path(value="/getTags/{id}") TagListResponse getTags(@PathParam(value="id") String id, @QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") TagSortAttribute sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") SortOrder sortOrder, @QueryParam(value="search") String search)
id
- id of the template. The local or global id@POST @Path(value="/push2master/{id}") GenericResponse pushToMaster(@PathParam(value="id") Integer id, PushToMasterRequest request)
id
- id of the templaterequest
- request@POST @Path(value="/push2master") GenericResponse pushToMaster(MultiPushToMasterRequest request)
request
- request@POST @Path(value="/unlocalize/{id}") GenericResponse unlocalize(@PathParam(value="id") Integer id, UnlocalizeRequest request)
id
- id of the template to unlocalizerequest
- request@POST @Path(value="/unlocalize") GenericResponse unlocalize(MultiUnlocalizeRequest request)
request
- request@GET @Path(value="/localizationinfo") LocalizationInfo getLocalizationInfo(@QueryParam(value="id") List<Integer> ids, @QueryParam(value="nodeId") Integer nodeId)
ids
- list of template idsnodeId
- id of the node to start with@GET @Path(value="/localizationinfo/{id}") LocalizationInfo getLocalizationInfo(@PathParam(value="id") String id, @QueryParam(value="nodeId") Integer nodeId)
id
- id of the template. This can either be the local or global id of the template.nodeId
- id of the node to start with@POST @Path(value="/link/{id}") GenericResponse link(@PathParam(value="id") String id, LinkRequest request)
id
- id of the templaterequest
- request containing the list of folders and other data@POST @Path(value="/link") GenericResponse link(MultiLinkRequest request)
request
- request containing the list of folders and other data@POST @Path(value="/unlink/{id}") GenericResponse unlink(@PathParam(value="id") String id, LinkRequest request)
id
- id of the templaterequest
- request containing the list of folders and other data@POST @Path(value="/unlink") GenericResponse unlink(MultiLinkRequest request)
request
- request containing the list of folders and other dataCopyright © 2019 Gentics Software. All rights reserved.