@Path(value="/page") public interface PageResource extends AuthenticatedResource
Modifier and Type | Method and Description |
---|---|
GenericResponse |
assign(MultiPageAssignRequest request)
Inform a list of users that the list of pages have been put back into
revision.
|
String |
autocomplete(String q,
int limit)
Do a quick search for pages that contain the given query string in their name or have it as ID.
|
GenericResponse |
cancel(Integer id,
Integer nodeId)
Cancel editing the page.
|
PageCopyResponse |
copy(PageCopyRequest request,
long waitMs)
Copy a batch of pages or a single copy using the
PageCopyRequest options. |
PageLoadResponse |
create(PageCreateRequest request)
Create a page based on the given pagecreaterequest
|
TagCreateResponse |
createTag(String id,
Integer constructId,
String keyword,
ContentTagCreateRequest request)
Create a new tag in the given page
|
MultiTagCreateResponse |
createTags(String id,
MultiTagCreateRequest request)
Create multiple tags in the given page
|
GenericResponse |
delete(String id,
Integer nodeId)
Delete the page denoted by id.
|
GenericResponse |
deleteFromWastebin(PageIdSetRequest request,
long waitMs)
Remove the given pages from the wastebin
|
GenericResponse |
deleteFromWastebin(String id,
long waitMs)
Remove the page denoted by the given id from the wastebin.
|
MultiDisinheritResponse |
disinherit(List<String> ids,
Integer nodeId)
Get the multichannelling exclusion and disinherit status for a list of pages
|
GenericResponse |
disinherit(List<String> ids,
Integer nodeId,
long waitMs,
DisinheritRequest request)
Set the multichannelling exclusion and disinherit status for a list of pages
|
DisinheritResponse |
disinherit(String id,
Integer nodeId)
Get the multichannelling exclusion and disinherit status of the page
|
GenericResponse |
disinherit(String id,
Integer nodeId,
long waitMs,
DisinheritRequest request)
Set the multichannelling exclusion and disinherit status
|
ReferencedFilesListResponse |
getLinkedFiles(Integer skipCount,
Integer maxItems,
String sortBy,
String sortOrder,
List<Integer> pageId,
Integer nodeId)
Get files, which are used by one of the given pages
|
ReferencedFilesListResponse |
getLinkedImages(Integer skipCount,
Integer maxItems,
String sortBy,
String sortOrder,
List<Integer> pageId,
Integer nodeId)
Get images, which are used by one of the given pages
|
ReferencedPagesListResponse |
getLinkedPages(Integer skipCount,
Integer maxItems,
String sortBy,
String sortOrder,
List<Integer> pageId,
Integer nodeId)
Get pages, which are used by one of the given pages
|
LocalizationInfo |
getLocalizationInfo(Integer id,
Integer nodeId)
Get localization info for a page for a given channel and all master channels
|
LocalizationInfo |
getLocalizationInfo(List<Integer> ids,
Integer nodeId)
Get localization info for a list of pages for a given channel and all master channels
|
PageUsageListResponse |
getPagetagUsageInfo(Integer skipCount,
Integer maxItems,
String sortBy,
String sortOrder,
List<Integer> pageId,
Integer nodeId,
boolean returnPages,
PageModelParameterBean pageModel)
Get the pages containing pagetags pointing to one of the given pages.
|
PageUsageListResponse |
getPageUsageInfo(Integer skipCount,
Integer maxItems,
String sortBy,
String sortOrder,
List<Integer> pageId,
Integer nodeId,
boolean returnPages,
PageModelParameterBean pageModel)
Get the pages using one of the given pages
|
PrivilegesResponse |
getPrivileges(Integer id)
Get the privileges of the current user on the given page
|
ReferencedSyncableObjectsListResponse |
getSyncableObjects(List<Integer> pageIds,
Integer srcNodeId,
Integer dstNodeId) |
TagListResponse |
getTags(Integer id,
Integer skipCount,
Integer maxItems,
TagSortAttribute sortBy,
SortOrder sortOrder,
String search)
Get the list of tags (contenttags and templatetags) for this page
|
TemplateUsageListResponse |
getTemplateUsageInfo(Integer skipCount,
Integer maxItems,
String sortBy,
String sortOrder,
List<Integer> pageId,
Integer nodeId,
boolean returnTemplates)
Get the templates using one of the given pages
|
TotalUsageResponse |
getTotalPageUsage(List<Integer> pageId,
Integer nodeId)
Get the total usage information of the given pages.
|
PageUsageListResponse |
getVariantsUsageInfo(Integer skipCount,
Integer maxItems,
String sortBy,
String sortOrder,
List<Integer> pageId,
Integer nodeId,
boolean returnPages,
PageModelParameterBean pageModel)
Get the page variants of the given pages
|
PageListResponse |
list(InFolderParameterBean inFolder,
PageListParameterBean pageListParams,
FilterParameterBean filterParams,
SortParameterBean sortingParams,
PagingParameterBean pagingParams,
PublishableParameterBean publishParams,
WastebinParameterBean wastebinParams)
Get a list of pages in the specified folder.
The result can be filtered by id
name
fileName
description
niceUrl
alternateUrls
and sorted by
id
name
fileName
niceUrl
alternateUrls
|
MultiPageLoadResponse |
load(MultiPageLoadRequest request,
boolean fillWithNulls)
Load a list of pages specified in the given
request . |
PageLoadResponse |
load(String id,
boolean update,
boolean template,
boolean folder,
boolean languageVariants,
boolean pageVariants,
boolean workflow,
boolean translationStatus,
boolean versionInfo,
boolean disinherited,
boolean construct,
Integer nodeId,
String stagingPackageName)
Loads a page from GCN.
|
LocalizationsResponse |
localizations(Integer id,
boolean addStatus)
Get the IDs an their respective node IDs of localized copies of the
specified page.
|
GenericResponse |
localize(Integer id,
LocalizeRequest request)
Localize the given page
|
GenericResponse |
move(MultiObjectMoveRequest request)
Move multiple pages to another folder
|
GenericResponse |
move(String id,
ObjectMoveRequest request)
Move the given page to another folder
|
PagePreviewResponse |
preview(PagePreviewRequest request)
Render given page in a preview (before actually saving it)
|
GenericResponse |
publish(Integer nodeId,
MultiPagePublishRequest request)
Publish a list of pages.
|
GenericResponse |
publish(String id,
Integer nodeId,
PagePublishRequest request)
Publish the page denoted by id (or send it in the queue when the User has not permission to publish the page).
|
LegacyPageListResponse |
pubqueue(Integer skipCount,
Integer maxItems,
String search,
String sortBy,
String sortOrder)
Get all pages (for all nodes) in the publish queue
|
GenericResponse |
pubqueueApprove(MultiPubqueueApproveRequest request,
long waitMs)
Approved queued changes to online status of pages
|
GenericResponse |
pushToMaster(Integer id,
PushToMasterRequest request)
Push a page from a channel into a master
|
GenericResponse |
pushToMaster(MultiPushToMasterRequest request)
Push a list of pages from a channel into a master
|
PageRenderResponse |
render(Integer nodeId,
String template,
boolean editMode,
String proxyprefix,
LinksType linksType,
boolean tagmap,
boolean inherited,
boolean publish,
Page page)
Render a preview of the posted page
|
PageRenderResponse |
render(String id,
Integer nodeId,
String template,
boolean editMode,
String proxyprefix,
LinksType linksType,
boolean tagmap,
boolean inherited,
boolean publish)
Render the given page
Info: This currently doesn't return tag render errors.
|
PageRenderResponse |
renderTag(String tag,
Integer nodeId,
String proxyprefix,
LinksType linksType,
Page page)
Render a tag preview for the posted page
|
PageRenderResponse |
renderTag(String id,
String tag,
Integer nodeId,
String proxyprefix,
LinksType linksType)
Render a tag of the given page
|
GenericResponse |
restoreFromWastebin(PageIdSetRequest request,
long waitMs)
Restore the given pages from the wastebin
|
GenericResponse |
restoreFromWastebin(String id,
long waitMs)
Restore the given page from the wastebin
|
TagListResponse |
restoreTag(String pageId,
String tag,
Integer versionTimestamp)
Restore a single tag in the page with the given version timestamp
|
PageLoadResponse |
restoreVersion(String id,
Integer versionTimestamp)
Restore the page version with the given version timestamp
|
GenericResponse |
save(String id,
PageSaveRequest request)
Saves a page into GCN
|
PageLoadResponse |
search(boolean update,
boolean template,
boolean folder,
boolean languageVariants,
boolean pageVariants,
boolean workflow,
boolean translationStatus,
boolean versionInfo,
boolean disinherited,
Integer nodeId,
String liveUrl)
NOTE:
This endpoint is currently under construction and will be changed in the future.
|
PageFilenameSuggestResponse |
suggestFilename(PageFilenameSuggestRequest request)
Suggest the filename to be used for a (new) page, based on other metadata
|
GenericResponse |
takeOffline(String id,
PageOfflineRequest request)
Take a specific page offline
|
PageLoadResponse |
translate(Integer id,
String languageCode,
boolean locked,
Integer channelId)
Translate the page into the given language.
|
GenericResponse |
unlocalize(Integer id,
UnlocalizeRequest request)
Unlocalize the given page
|
GenericResponse |
unlocalize(MultiUnlocalizeRequest request)
Unlocalize pages in a channel
|
GenericResponse |
workflowDecline(String id,
WorkflowRequest request)
Decline the workflow for the page (i.e.
|
GenericResponse |
workflowRevoke(Integer id)
Revoke the last step of the workflow
|
setSessionId
@GET PageListResponse list(@BeanParam InFolderParameterBean inFolder, @BeanParam PageListParameterBean pageListParams, @BeanParam FilterParameterBean filterParams, @BeanParam SortParameterBean sortingParams, @BeanParam PagingParameterBean pagingParams, @BeanParam PublishableParameterBean publishParams, @BeanParam WastebinParameterBean wastebinParams)
id
name
fileName
description
niceUrl
alternateUrls
id
name
fileName
niceUrl
alternateUrls
inFolder
- Folder ID and recursive parameterspageListParams
- Further page parametersfilterParams
- Filter parameterssortingParams
- Sorting parameterspagingParams
- Paging parameterspublishParams
- Publishable parameterswastebinParams
- Wastebin parameters@POST @Path(value="/create") @Produces(value="application/json") PageLoadResponse create(PageCreateRequest request)
request
- containing data for creating the page@POST @Path(value="/copy") PageCopyResponse copy(PageCopyRequest request, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs)
PageCopyRequest
options.request
- Request containing data for the batch copywaitMs
- wait timeout in milliseconds@POST @Path(value="/move/{id}") GenericResponse move(@PathParam(value="id") String id, ObjectMoveRequest request)
id
- page idrequest
- request@POST @Path(value="/move") GenericResponse move(MultiObjectMoveRequest request)
request
- request@POST @Path(value="/save/{id}") GenericResponse save(@PathParam(value="id") String id, PageSaveRequest request)
id
- Id of the page to save. This can either be a local or global idrequest
- page save request@GET @Path(value="/load/{id}") PageLoadResponse load(@PathParam(value="id") String id, @DefaultValue(value="false") @QueryParam(value="update") boolean update, @QueryParam(value="template") @DefaultValue(value="false") boolean template, @QueryParam(value="folder") @DefaultValue(value="false") boolean folder, @QueryParam(value="langvars") @DefaultValue(value="false") boolean languageVariants, @QueryParam(value="pagevars") @DefaultValue(value="false") boolean pageVariants, @QueryParam(value="workflow") @DefaultValue(value="false") boolean workflow, @QueryParam(value="translationstatus") @DefaultValue(value="false") boolean translationStatus, @QueryParam(value="versioninfo") @DefaultValue(value="false") boolean versionInfo, @QueryParam(value="disinherited") @DefaultValue(value="false") boolean disinherited, @QueryParam(value="construct") @DefaultValue(value="false") boolean construct, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="package") String stagingPackageName)
id
- The id of the page to load. This can either be a localid or a globalidupdate
- true when the page shall be locked, false if nottemplate
- true if the template information shall be addedfolder
- true if the folder information shall be addedlanguageVariants
- true if the language variants shall be addedworkflow
- true if the workflow information shall be addedtranslationStatus
- true if the translationstatus information shall be addedversionInfo
- true if version information shall be addeddisinherited
- if true, disinherited channel nodes shall be addedconstruct
- if true, the construct info will be added to tagsnodeId
- channel idstagingPackageName
- name of a content staging package, to check the page status in it@POST @Path(value="/load") MultiPageLoadResponse load(MultiPageLoadRequest request, @QueryParam(value="fillWithNulls") @DefaultValue(value="false") boolean fillWithNulls)
request
.
Page ids for which no pages exist, or the user does not have the necessary
permissions, are silently ignored.request
- The request with he list of page ids to load.fillWithNulls
- flag to have items, which cannot be loaded returned as "null" objects in the response (instead of just omitting them)@POST @Path(value="/preview") PagePreviewResponse preview(PagePreviewRequest request)
NodeException
@POST @Path(value="/assign") GenericResponse assign(MultiPageAssignRequest request)
request
- @POST @Path(value="/publish") GenericResponse publish(@QueryParam(value="nodeId") Integer nodeId, MultiPagePublishRequest request)
nodeId
- channel idrequest
- publish request@POST @Path(value="/publish/{id}") GenericResponse publish(@PathParam(value="id") String id, @QueryParam(value="nodeId") Integer nodeId, PagePublishRequest request)
id
- id of the Page to publish. This can either be a local or globalidnodeId
- channel idrequest
- publish page request@POST @Path(value="/delete/{id}") GenericResponse delete(@PathParam(value="id") String id, @QueryParam(value="nodeId") Integer nodeId)
id
- id of the Page to delete. This can either be a local or global idnodeId
- channel id@POST @Path(value="/wastebin/delete/{id}") GenericResponse deleteFromWastebin(@PathParam(value="id") String id, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs)
id
- id of the page to remove from the wastebin. This can either be
a local or global idwaitMs
- time in ms for the request to be done in foreground@POST @Path(value="/wastebin/delete") GenericResponse deleteFromWastebin(PageIdSetRequest request, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs)
request
- request containing the page IDswaitMs
- time in ms for the request to be done in foreground@POST @Path(value="/wastebin/restore/{id}") GenericResponse restoreFromWastebin(@PathParam(value="id") String id, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs)
id
- id of the page to restore from the wastebin. This can either
be a local or global idwaitMs
- time in ms for the request to be done in foreground@POST @Path(value="/wastebin/restore") GenericResponse restoreFromWastebin(PageIdSetRequest request, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs)
request
- request containing the page IDswaitMs
- time in ms for the request to be done in foreground@POST @Path(value="/cancel/{id}") GenericResponse cancel(@PathParam(value="id") Integer id, @QueryParam(value="nodeId") Integer nodeId)
id
- id of the Page which is currently editednodeId
- channel id@POST @Path(value="/render") PageRenderResponse render(@QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="template") String template, @QueryParam(value="edit") @DefaultValue(value="false") boolean editMode, @QueryParam(value="proxyprefix") String proxyprefix, @QueryParam(value="links") @DefaultValue(value="backend") LinksType linksType, @QueryParam(value="tagmap") @DefaultValue(value="false") boolean tagmap, @QueryParam(value="inherited") @DefaultValue(value="false") boolean inherited, @QueryParam(value="publish") @DefaultValue(value="false") boolean publish, Page page)
nodeId
- node id (if rendering a page for a channel)template
- template to render (if not set, the page's template will be rendered)editMode
- true for rendering in edit mode, false for preview modeproxyprefix
- proxyprefixlinksType
- type of links (frontend or backend)tagmap
- true to also render the tagmap entriesinherited
- true to render the inherited content and propertiespublish
- True to render in publish mode@GET @Path(value="/render/{id}") PageRenderResponse render(@PathParam(value="id") String id, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="template") String template, @QueryParam(value="edit") @DefaultValue(value="false") boolean editMode, @QueryParam(value="proxyprefix") String proxyprefix, @QueryParam(value="links") @DefaultValue(value="backend") LinksType linksType, @QueryParam(value="tagmap") @DefaultValue(value="false") boolean tagmap, @QueryParam(value="inherited") @DefaultValue(value="false") boolean inherited, @QueryParam(value="publish") @DefaultValue(value="false") boolean publish)
id
- id of the pagenodeId
- node id (if rendering a page for a channel)template
- template to render (if not set, the page's template will be rendered)editMode
- true for rendering in edit mode, false for preview modeproxyprefix
- proxyprefixlinksType
- type of links (frontend or backend)tagmap
- true to also render the tagmap entriesinherited
- true to render the inherited content and propertiespublish
- True to render in publish mode@POST @Path(value="/renderTag/{tag}") PageRenderResponse renderTag(@PathParam(value="tag") String tag, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="proxyprefix") String proxyprefix, @QueryParam(value="links") @DefaultValue(value="backend") LinksType linksType, Page page)
tag
- name of the tag to rendernodeId
- node id (if rendering a page for a channel)proxyprefix
- proxyprefixlinksType
- type of links (frontend or backend)page
- posted page@GET @Path(value="/renderTag/{id}/{tag}") PageRenderResponse renderTag(@PathParam(value="id") String id, @PathParam(value="tag") String tag, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="proxyprefix") String proxyprefix, @QueryParam(value="links") @DefaultValue(value="backend") LinksType linksType)
id
- id of the pagetag
- name of the tag to rendernodeId
- node id (if rendering a page for a channel)proxyprefix
- proxyprefixlinksType
- type of links (frontend or backend)@GET @Path(value="/getTags/{id}") TagListResponse getTags(@PathParam(value="id") Integer 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 pagePrivilegesResponse getPrivileges(@PathParam(value="id") Integer id)
id
- id of the page@POST @Path(value="/newtag/{id}") TagCreateResponse createTag(@PathParam(value="id") String id, @QueryParam(value="constructId") Integer constructId, @QueryParam(value="keyword") String keyword, ContentTagCreateRequest request)
id
- id of the page. This can either be a local or globalidconstructId
- id of the tags constructkeyword
- keyword of the constructrequest
- tag create request@POST @Path(value="/newtags/{id}") MultiTagCreateResponse createTags(@PathParam(value="id") String id, MultiTagCreateRequest request)
id
- id of the pagerequest
- tag create request@POST @Path(value="/restore/{id}") PageLoadResponse restoreVersion(@PathParam(value="id") String id, @QueryParam(value="version") Integer versionTimestamp)
id
- The id of the page that should be restored. This can either be a local or globalidversionTimestamp
- version timestamp@POST @Path(value="/restore/{pageid}/{tag}") TagListResponse restoreTag(@PathParam(value="pageid") String pageId, @PathParam(value="tag") String tag, @QueryParam(value="version") Integer versionTimestamp)
pageId
- id of the page. This can either be a local or globalidtag
- id or name of the tagversionTimestamp
- version timestamp@POST @Path(value="/translate/{id}") PageLoadResponse translate(@PathParam(value="id") Integer id, @QueryParam(value="language") String languageCode, @QueryParam(value="locked") @DefaultValue(value="true") boolean locked, @QueryParam(value="channelId") Integer channelId)
id
- id of the page to translatelanguageCode
- code of the language into which the page shall be translatedlocked
- true if the translation shall be locked, false if notchannelId
- for multichannelling, specify channel in which to create page (can be 0 or equal to node ID to be ignored)@POST @Path(value="/workflow/revoke/{id}") GenericResponse workflowRevoke(@PathParam(value="id") Integer id)
id
- id of the page@POST @Path(value="/workflow/decline/{id}") GenericResponse workflowDecline(@PathParam(value="id") String id, WorkflowRequest request)
id
- id of the page. This can either be a local or globalidrequest
- request object containing what should be changed about the workflow@GET @Path(value="/usage/total") TotalUsageResponse getTotalPageUsage(@QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId)
pageId
- list of page idsnodeId
- id of the node@GET @Path(value="/usage/tag") PageUsageListResponse getPagetagUsageInfo(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder, @QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="pages") @DefaultValue(value="true") boolean returnPages, @BeanParam PageModelParameterBean pageModel)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssortBy
- (optional) attribute to sort by. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".pageId
- list of page idsnodeId
- id of the nodereturnPages
- true (default) if the pages shall be returned, false for only returning the countspageModel
- page model parameters@GET @Path(value="/usage/variant") PageUsageListResponse getVariantsUsageInfo(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder, @QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="pages") @DefaultValue(value="true") boolean returnPages, @BeanParam PageModelParameterBean pageModel)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssortBy
- (optional) attribute to sort by. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".pageId
- list of page idsnodeId
- id of the nodereturnPages
- true (default) if the pages shall be returned, false for only returning the countspageModel
- page model parameters@GET @Path(value="/usage/page") PageUsageListResponse getPageUsageInfo(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder, @QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="pages") @DefaultValue(value="true") boolean returnPages, @BeanParam PageModelParameterBean pageModel)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssortBy
- (optional) attribute to sort by. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".pageId
- list of page ids, for which the usage shall be fetchednodeId
- id of the nodereturnPages
- true (default) if the pages shall be returned, false for only returning the countspageModel
- page model parameters@GET @Path(value="/usage/template") TemplateUsageListResponse getTemplateUsageInfo(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder, @QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="templates") @DefaultValue(value="true") boolean returnTemplates)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssortBy
- (optional) attribute to sort by. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".pageId
- list of page ids, for which the usage shall be fetchednodeId
- id of the nodereturnTemplates
- true (default) if the templates shall be returned, false for only returning the counts@GET @Path(value="/usage/syncableObjects") ReferencedSyncableObjectsListResponse getSyncableObjects(@QueryParam(value="ids") List<Integer> pageIds, @QueryParam(value="srcNodeId") Integer srcNodeId, @QueryParam(value="dstNodeId") Integer dstNodeId)
@GET @Path(value="/usage/linkedPage") ReferencedPagesListResponse getLinkedPages(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder, @QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssortBy
- (optional) attribute to sort by. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".pageId
- list of page ids, for which the usage shall be fetchednodeId
- id of the node@GET @Path(value="/usage/linkedFile") ReferencedFilesListResponse getLinkedFiles(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder, @QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssortBy
- (optional) attribute to sort by. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".pageId
- list of page ids, for which the usage shall be fetchednodeId
- id of the node@GET @Path(value="/usage/linkedImage") ReferencedFilesListResponse getLinkedImages(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder, @QueryParam(value="id") List<Integer> pageId, @QueryParam(value="nodeId") Integer nodeId)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssortBy
- (optional) attribute to sort by. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".pageId
- list of page ids, for which the usage shall be fetchednodeId
- id of the node@POST @Path(value="/push2master/{id}") GenericResponse pushToMaster(@PathParam(value="id") Integer id, PushToMasterRequest request)
id
- id of the pagerequest
- 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 page to unlocalizerequest
- request@POST @Path(value="/unlocalize") GenericResponse unlocalize(MultiUnlocalizeRequest request)
request
- request@POST @Path(value="/localize/{id}") GenericResponse localize(@PathParam(value="id") Integer id, LocalizeRequest request)
id
- id of the page to localizerequest
- request@GET @Path(value="/localizationinfo") LocalizationInfo getLocalizationInfo(@QueryParam(value="id") List<Integer> ids, @QueryParam(value="nodeId") Integer nodeId)
ids
- list of page idsnodeId
- id of the node to start with@GET @Path(value="/localizationinfo/{id}") LocalizationInfo getLocalizationInfo(@PathParam(value="id") Integer id, @QueryParam(value="nodeId") Integer nodeId)
id
- id of the pagenodeId
- id of the node to start with@GET @Path(value="/localizations/{id}") LocalizationsResponse localizations(@PathParam(value="id") Integer id, @QueryParam(value="status") @DefaultValue(value="false") boolean addStatus)
id
- The ID of the master page.addStatus
- When true
information about the pages statuses
will be added to the response.@POST @Path(value="/takeOffline/{id}") GenericResponse takeOffline(@PathParam(value="id") String id, PageOfflineRequest request)
id
- ID of the page@GET @Path(value="/autocomplete") @Produces(value="text/html") String autocomplete(@QueryParam(value="q") String q, @QueryParam(value="limit") int limit)
q
- query string, must contain at least three characters (otherwise an empty result is returned).limit
- maximum number of results returned. Default is 15@GET @Path(value="/disinherit/{id}") DisinheritResponse disinherit(@PathParam(value="id") String id, @QueryParam(value="nodeId") Integer nodeId) throws Exception
id
- page IDnodeId
- node IDException
@POST @Path(value="/disinherit/{id}") GenericResponse disinherit(@PathParam(value="id") String id, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs, DisinheritRequest request) throws Exception
id
- page IDnodeId
- node IDwaitMs
- wait timeout in millisecondsrequest
- request objectException
@GET @Path(value="/disinherit") MultiDisinheritResponse disinherit(@QueryParam(value="id") List<String> ids, @QueryParam(value="nodeId") Integer nodeId) throws Exception
ids
- list of page IDsnodeId
- node IDException
@POST @Path(value="/disinherit") GenericResponse disinherit(@QueryParam(value="id") List<String> ids, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs, DisinheritRequest request) throws Exception
ids
- list of page IDsnodeId
- node IDwaitMs
- wait timeout in millisecondsrequest
- request objectException
@GET @Path(value="/search") PageLoadResponse search(@DefaultValue(value="false") @QueryParam(value="update") boolean update, @QueryParam(value="template") @DefaultValue(value="false") boolean template, @QueryParam(value="folder") @DefaultValue(value="false") boolean folder, @QueryParam(value="langvars") @DefaultValue(value="false") boolean languageVariants, @QueryParam(value="pagevars") @DefaultValue(value="false") boolean pageVariants, @QueryParam(value="workflow") @DefaultValue(value="false") boolean workflow, @QueryParam(value="translationstatus") @DefaultValue(value="false") boolean translationStatus, @QueryParam(value="versioninfo") @DefaultValue(value="false") boolean versionInfo, @QueryParam(value="disinherited") @DefaultValue(value="false") boolean disinherited, @QueryParam(value="nodeId") Integer nodeId, @QueryParam(value="liveUrl") String liveUrl)
update
- true when the page shall be locked, false if nottemplate
- true if the template information shall be addedfolder
- true if the folder information shall be addedlanguageVariants
- true if the language variants shall be addedworkflow
- true if the workflow information shall be addedtranslationStatus
- true if the translationstatus information shall be addedversionInfo
- true if version information shall be addeddisinherited
- if true, disinherited channel nodes shall be addednodeId
- Optional channel id which can be specified to restrict search to a specific channel. Adding the channel id will speed up the search process.liveUrl
- Live url to search for. (e.g.: hostname.tld/folderA/index.html)@GET @Path(value="/pubqueue") LegacyPageListResponse pubqueue(@QueryParam(value="skipCount") @DefaultValue(value="0") Integer skipCount, @QueryParam(value="maxItems") @DefaultValue(value="-1") Integer maxItems, @QueryParam(value="search") String search, @QueryParam(value="sortby") @DefaultValue(value="name") String sortBy, @QueryParam(value="sortorder") @DefaultValue(value="asc") String sortOrder)
skipCount
- number of items to be skipped, set to 0 for skipping no itemsmaxItems
- maximum number of items to be returned, set to -1 for
returning all itemssearch
- (optional) search string (may be empty for no search) - this will
filter the results if either the ID, the name (partial match or
the description (partial match) matches the given search string.sortBy
- (optional) attribute to sort by. It is possible to sort by name,
cdate, edate, pdate, filename, template, folder, masterNode,
priority, excluded, deletedat. defaults to namesortOrder
- (optional) result sort order - may be "asc" for ascending or
"desc" for descending other strings will be ignored. defaults
to "asc".@POST @Path(value="/pubqueue/approve") GenericResponse pubqueueApprove(MultiPubqueueApproveRequest request, @QueryParam(value="wait") @DefaultValue(value="0") long waitMs) throws Exception
request
- request containing page IDswaitMs
- wait timeout in millisecondsException
@POST @Path(value="/suggest/filename") PageFilenameSuggestResponse suggestFilename(PageFilenameSuggestRequest request) throws Exception
request
- requestException
Copyright © 2024 Gentics Software. All rights reserved.