Method Summary
Public Methods | ||
public |
Add a new comment to the feed. |
|
public |
addGroupPermission(group_name: string, timeout: number): Promise<FeedGroupPermission> Add a group permission to access the feed. |
|
public |
addTagging(tag_id: number, timeout: number): Promise<Tagging> Add a new tagging to the feed (tag the feed) given the id of the tag. |
|
public |
addUserPermission(username: string, timeout: number): Promise<FeedUserPermission> Add a user permission to access the feed. |
|
public |
Make a DELETE request to delete this feed item resource through the REST API. |
|
public |
getComment(id: number, timeout: number): Promise<Comment> Get a feed comment given its id. |
|
public |
getComments(searchParams: Object, timeout: number): Promise<CommentList> Fetch a list of comments associated to this feed from the REST API. |
|
public |
getFolder(timeout: number): Promise<FileBrowserFolder> Fetch the folder associated to this feed from the REST API. |
|
public |
getGroupPermission(group_name: string, timeout: number): Promise<FeedGroupPermission|null> Get a feed group permission given the name of the group. |
|
public |
getGroupPermissions(searchParams: Object, timeout: number): Promise<FeedGroupPermissionList> Fetch a list of group permissions associated to this feed from the REST API. |
|
public |
Fetch the note associated to this feed from the REST API. |
|
public |
getPluginInstances(params: Object, timeout: number): Promise<FeedPluginInstanceList> Fetch a list of plugin instances associated to this feed from the REST API. |
|
public |
getTaggings(params: Object, timeout: number): Promise<FeedTaggingList> Fetch a list of taggings associated to this feed from the REST API. |
|
public |
getTags(params: Object, timeout: number): Promise<FeedTagList> Fetch a list of tags associated to this feed from the REST API. |
|
public |
getUserPermission(username: string, timeout: number): Promise<FeedUserPermission|null> Get a feed user permission given the username of the user. |
|
public |
getUserPermissions(searchParams: Object, timeout: number): Promise<FeedUserPermissionList> Fetch a list of user permissions associated to this feed from the REST API. |
|
public |
makePublic(timeout: number): Promise<this> Make the feed public. |
|
public |
makeUnpublic(timeout: number): Promise<this> Make the feed unpublic. |
|
public |
Make a PUT request to modify this feed item resource through the REST API. |
Inherited Summary
From class Resource | ||
public static |
Helper method to make a deep copy clone of the passed object resource. |
|
public get |
Return true if the resource object contains any data. |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
Make a deep copy clone of this object resource. |
From class ItemResource | ||
public get |
Get the item's data object (REST API descriptors). |
|
public |
collection: * |
|
public |
Fetch this item resource from the REST API. |
|
public |
getPUTParameters(): string[] Get an array of parameter names that can be used as properties of the data object in PUT requests. |
|
private |
Internal helper method to make a DELETE request to this item resource through the REST API. |
|
private |
_getResource(linkRelation: string, ResourceClass: Object, searchParams: Object, timeout: number): Promise<ResourceClass> Internal method to fetch a related resource from the REST API that is referenced by a link relation within the item object. |
|
private |
Internal helper method to make a PUT request to this item resource through the REST API. |
Public Methods
public addComment(title: string, content: string, timeout: number): Promise<Comment> source
Add a new comment to the feed.
public addGroupPermission(group_name: string, timeout: number): Promise<FeedGroupPermission> source
Add a group permission to access the feed.
public addTagging(tag_id: number, timeout: number): Promise<Tagging> source
Add a new tagging to the feed (tag the feed) given the id of the tag.
public addUserPermission(username: string, timeout: number): Promise<FeedUserPermission> source
Add a user permission to access the feed.
public delete(timeout: number): Promise source
Make a DELETE request to delete this feed item resource through the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getComment(id: number, timeout: number): Promise<Comment> source
Get a feed comment given its id.
public getComments(searchParams: Object, timeout: number): Promise<CommentList> source
Fetch a list of comments associated to this feed from the REST API.
Params:
Name | Type | Attribute | Description |
searchParams | Object |
|
search parameters object |
searchParams.limit | number |
|
page limit |
searchParams.offset | number |
|
page offset |
searchParams.id | number |
|
match comment id exactly with this number |
timeout | number |
|
request timeout |
public getFolder(timeout: number): Promise<FileBrowserFolder> source
Fetch the folder associated to this feed from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getGroupPermission(group_name: string, timeout: number): Promise<FeedGroupPermission|null> source
Get a feed group permission given the name of the group.
Return:
Promise<FeedGroupPermission|null> | JS Promise, resolves to a |
public getGroupPermissions(searchParams: Object, timeout: number): Promise<FeedGroupPermissionList> source
Fetch a list of group permissions associated to this feed from the REST API.
Params:
Name | Type | Attribute | Description |
searchParams | Object |
|
search parameters object |
searchParams.limit | number |
|
page limit |
searchParams.offset | number |
|
page offset |
searchParams.id | number |
|
match feed group permission id exactly with this number |
searchParams.group_name | string |
|
match group name exactly with this string |
timeout | number |
|
request timeout |
public getNote(timeout: number): Promise<Note> source
Fetch the note associated to this feed from the REST API.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public getPluginInstances(params: Object, timeout: number): Promise<FeedPluginInstanceList> source
Fetch a list of plugin instances associated to this feed from the REST API.
public getTaggings(params: Object, timeout: number): Promise<FeedTaggingList> source
Fetch a list of taggings associated to this feed from the REST API.
public getTags(params: Object, timeout: number): Promise<FeedTagList> source
Fetch a list of tags associated to this feed from the REST API.
public getUserPermission(username: string, timeout: number): Promise<FeedUserPermission|null> source
Get a feed user permission given the username of the user.
Return:
Promise<FeedUserPermission|null> | JS Promise, resolves to a |
public getUserPermissions(searchParams: Object, timeout: number): Promise<FeedUserPermissionList> source
Fetch a list of user permissions associated to this feed from the REST API.
Params:
Name | Type | Attribute | Description |
searchParams | Object |
|
search parameters object |
searchParams.limit | number |
|
page limit |
searchParams.offset | number |
|
page offset |
searchParams.id | number |
|
match feed user permission id exactly with this number |
searchParams.username | string |
|
match username exactly with this string |
timeout | number |
|
request timeout |
public makePublic(timeout: number): Promise<this> source
Make the feed public.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |
public makeUnpublic(timeout: number): Promise<this> source
Make the feed unpublic.
Params:
Name | Type | Attribute | Description |
timeout | number |
|
request timeout |