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(Int32, Boolean) Permanently deletes an Content item and its descendants from the repository.
Delete(Int32, Int64, Boolean) Permanently deletes the specified Content version from the version history.
Discard(Int32, Boolean) Discard pending changes, i.e. the current draft of the content item with the specified id.
Get(Int32, Boolean) Get the specified Content item.
Get(Int32, Int64, Boolean) Get the specified Content version.
Get(Int32, Boolean) Get the (latest version) of the specified Content item.
Get(Int32, Int64, Boolean) Get the specified Content version.
GetAncestors(Int32, Boolean) Get ancestors of the specified content item, starting with the closest parent and ending with the root.
GetAncestors(Int32, Boolean) Get ancestors of the specified content item, starting with the closest parent and ending with the root.
GetChildren(Int32, Boolean) Get child items of the specified content item.
GetChildren(Int32, Boolean) Get child items of the specified content item.
GetDescendants(Int32, Nullable, Boolean) Returns (a flat list) of descendants for a content item. The items are sorted like a tree.
GetDraft(Int32, Boolean) Gets the current draft of the specified Content item.
GetDraft(Int32, Boolean) Gets the current draft of the specified Content item.
GetHierarchy(Int32, Nullable, Boolean) Returns the content hierarchy for the specified App .
GetRoots(Int32, Boolean) Get content in the root of the specified app.
GetRoots(Int32, Boolean) Get content of the specified T in the root of specified app.
GetSiblingByName(Content, Boolean) Get sibling with same name as specified content item.
GetThumb(Content, Nullable, Nullable, FitMode, ScaleMode, ContentAlignment, Nullable, Int32, Int32, Boolean, String) Gets a thumbnail image for the specified content object.
GetVersions(Int32, Boolean) 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.
GetVersions(T, Boolean) Gets the version history for a Content item.
GetZipArchive(IEnumerable) Creates a zip archive with the specified files.
Insert(T, App, IEnumerable, Boolean) Inserts a new content item in the root of the specified App.
Insert(T, Content, IEnumerable, Boolean) Inserts a new content item as child to the specified parent.
IsNameTaken(Content) Check if name of specified content item is already used by a sibling.
Lock(Int32, Boolean) Locks a Content item for editing. Only the user that has the lock may update the Content item.
Lock(Int32, Boolean) Locks a Content item for editing. Only the user that has the lock may update the Content item.
Move(T, App, Boolean) Moves an Content item (and its descendants) to the root of the specified app.
Move(T, Content, Boolean) Moves an Content item and its descendants to the specified parent item.
New(Guid) Initializes a new content item from the specified guid.
Restore(Int32, Boolean) Restores a trashed content item (and its descendants).
Restore(Int32, Boolean) Restores a trashed content item (and its descendants).
Revert(Int32, Int64, Boolean) Revert to a previous version of a Content item.
Search(ContentQuery) Search content according to the specified ContentQuery object.
Search(ContentQuery) Search content according to the specified ContentQuery object.
Trash(Int32, Boolean) Sends a content item (and it's descendants) to the trash.
Trash(Int32) Sends a content item (and it's descendants) to the trash.
Unlock(Int32, Boolean) Unlocks a content item, making it possible for others to edit.
Unlock(Int32, Boolean) Unlocks a content item, making it possible for others to edit.
Update(T, IEnumerable, Boolean, Boolean) Updates an existing Content item.