ContentRepo Class

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

Repo for Content objects.

public static class ContentRepo
Inheritance:
System.Object → ContentRepo

Methods

Backup(int) Copies the current Content item to the the version history.
Delete(int) Permanently deletes a Content item from the repository.
Delete(int, long) Permanently deletes the specified Content version.
Discard(int) Permanently deletes a draft.
Get(int) Gets the specified Content from the repository.
Get(int, long) Gets a specified Content version from the repository.
GetAncestors(int) Get ancestors of the specified Content, starting with the closest parent and ending with the root item.
GetDescendants(int, int?) Returns the descendants of a content item. The apps are sorted like a tree.
GetDraft(int) Gets a draft from the repository.
GetHierarchy(int, int?) Returns the content hierarchy in the specified App sorted like a tree.
GetSiblingByName(Content) Gets an Content item by name from the repository (used to check for duplicates before insert/update).
GetVersions(int) Gets the version history for an Content item.
Insert(Content, int?, int?) Inserts a Content item the repository.
Lock(int, int) Lock a content item for edit.
Move(Content) Moves an Content item and its descendants to the scecified destination.
Restore(int) Restores a Content item from the trash.
Search(ContentQuery) Performs a search according to the specified ContentQuery object.
Trash(int) Trash a Content item.
Unlock(int) Unlock an item.
Update(Content, Content, Content) Updates a Content item in the repository.