ContentService Class
- Namespace:
- Weavy.Core.Services
- Assembly:
- Weavy.Core.dll
Service layer for Content objects.
public static class ContentService
- Inheritance:
- System.Object → ContentService
Methods
Delete(int, bool) | Permanently deletes an Content item and its descendants from the repository. |
Delete(int, long, bool) | Permanently deletes the specified Content version from the version history. |
Discard(int, bool) |
Discard pending changes, i.e. the current draft of the content item with the specified id .
|
Get(int, bool, bool) | Get the (latest version) of the specified Content item. |
Get(int, long, bool, bool) | Get the specified Content version. |
Get |
Get the (latest version) of the specified Content item. |
Get |
Get the specified Content version. |
Get |
Get ancestors of the specified content item, starting with the closest parent and ending with the root. |
Get |
Get ancestors of the specified content item, starting with the closest parent and ending with the root. |
Get |
Creates a zip archive with the specified files. |
Get |
Get child items of the specified content item. |
Get |
Get child items of the specified content item. |
Get |
Returns (a flat list) of descendants for a content item. The items are sorted like a tree. |
Get |
Gets the current draft of the specified Content item. |
Get |
Gets the current draft of the specified Content item. |
Get |
Get closest (previous and next) siblings for the specified content item. |
Get |
Gets the version history for a Content item. The first item in the list is the current version. The last item is the oldest version. |
Get |
Gets the version history for a Content item. |
Insert |
Inserts a new content item in the root of the specified App. |
Insert |
Inserts a new content item as child to the specified parent. |
Lock(int, bool) | Locks a Content item for editing. Only the user that has the lock may update the Content item. |
Lock |
Locks a Content item for editing. Only the user that has the lock may update the Content item. |
Move |
Moves an Content item (and its descendants) to the root of the specified app. |
Move |
Moves an Content item and its descendants to the specified parent item. |
New(Guid) | Initializes a new content item from the specified guid. |
Restore(int, bool) | Restores a trashed content item (and its descendants). |
Restore |
Restores a trashed content item (and its descendants). |
Revert(int, long, bool) | Revert to a previous version of a Content item. |
Search(Content |
Search content according to the specified ContentQuery object. |
Search |
Search content according to the specified ContentQuery object. |
Tag(Content, IList |
Tags a ITaggable content. |
Trash(int, bool) | Sends a content item (and it's descendants) to the trash. |
Trash |
Sends a content item (and it's descendants) to the trash. |
Unlock(int, bool) | Unlocks a content item, making it possible for others to edit. |
Unlock |
Unlocks a content item, making it possible for others to edit. |
Update |
Updates an existing Content item. |