TrashedEntity Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

A class that represents a trashed entity.

public class TrashedEntity : ISpaceEntity, ITrashable, IEntity, ICloneable
Inheritance:
System.Object → TrashedEntity
Implements:
ISpaceEntity, ITrashable, IEntity

Constructors

TrashedEntity()

Properties

CreatedAt Gets the date and time (UTC) the entity was created.
CreatedById Gets the id of the user that created the entity.
Id Gets the id of the entity.
ModifiedAt Gets the date and time (UTC) the entity was modified.
ModifiedById Gets the id of the user that modified the entity.
SpaceId Gets the id of the Space where the entity is located.
Timestamp Gets the timestamp.
Title Gets a title suitable for display in lists and search results.
TrashedAt Gets the date and time (UTC) the entity was trashed.
TrashedById Gets the id of the user that trashed the entity.
Type Gets the type of entity.

Methods

Clone() Create a deep copy of the current object.
GetExcerpt(bool) Gets an excerpt or summary suitable for display in lists and search results.
GetIcon() Gets an icon suitable for display in the user interface.
GetTitle() Gets an excerpt or summary suitable for display in lists and search results.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Assert(IEntity, Permission, User) Throws a ForbiddenException if a user does not have the requested permission to an entity.
Boost(IEntity) Gets the boost factor for the fulltext index.
HasPermission(IEntity, Permission, User) Check if the current user has the requested permission to the specified entity.
HasValue(IEntity, bool) Returns true if the entity has a value otherwise false.
Value(IEntity, bool) Returns the actual underlying value of an IEntity.
Kind(IEntity) Returns a label that is suitable for display in lists and search results.
CssClass(IEntity) CSS class for an entity.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
Breadcrumbs(IEntity, bool, bool) Returns the breadcrumb segments for en entity.
DavUrl(IEntity, bool) Returns an url that can be used by WebDAV clients.
ThumbPlaceholderUrl(IEntity, bool, bool) Returns a placeholder url to a thumbnail image of the specified entity. The url contains the string "{options}" which can be replaced with the desired resize options, e.g. "128", "128x0", "0x128", "128x256" etc.
ThumbUrl(IEntity, int?, int?, bool, FitMode, ScaleMode, ContentAlignment, Color?, int, int, bool, bool, bool, bool) Returns an url to a thumbnail image for the specified entity.
Url(IEntity, bool) Returns the url to an entity.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.
IsTrashed(ITrashable) Gets a value indicating whether the entity is trashed.
TrashedBy(ITrashable, bool) Gets the User that trashed the entity.
IsBuiltIn(IEntity) Gets a value indicating whether the specified entity is built-in.
CreatedBy(IEntity, bool) Gets the User that created the item.
ModifiedBy(IEntity, bool) Gets the User that modified the item.
Space(ISpaceEntity, bool) Gets the Space where the entity is located.
TableName(IEntity) Gets the table name where the reference should be stored.
Link(IEntity) Returns a link to the entity.