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
TemplateLoadResponse load(String id, Integer nodeId)
id
- The template idnodeId
- channel idTagListResponse getTags(String id, Integer skipCount, Integer maxItems, TagSortAttribute sortBy, SortOrder sortOrder, String search)
id
- id of the template. The local or global idGenericResponse pushToMaster(Integer id, PushToMasterRequest request)
id
- id of the templaterequest
- requestGenericResponse pushToMaster(MultiPushToMasterRequest request)
request
- requestGenericResponse unlocalize(Integer id, UnlocalizeRequest request)
id
- id of the template to unlocalizerequest
- requestGenericResponse unlocalize(MultiUnlocalizeRequest request)
request
- requestLocalizationInfo getLocalizationInfo(List<Integer> ids, Integer nodeId)
ids
- list of template idsnodeId
- id of the node to start withLocalizationInfo getLocalizationInfo(String id, 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 withGenericResponse link(String id, LinkRequest request)
id
- id of the templaterequest
- request containing the list of folders and other dataGenericResponse link(MultiLinkRequest request)
request
- request containing the list of folders and other dataGenericResponse unlink(String id, LinkRequest request)
id
- id of the templaterequest
- request containing the list of folders and other dataGenericResponse unlink(MultiLinkRequest request)
request
- request containing the list of folders and other dataCopyright © 2015 Gentics Software. All rights reserved.