Class FolderElementEntity

Inheritance
System.Object
FolderElementEntity
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Assets
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class FolderElementEntity : EntityObject

Constructors

FolderElementEntity()

Declaration
public FolderElementEntity()

FolderElementEntity(PrimaryKeyId)

Declaration
public FolderElementEntity(PrimaryKeyId primaryKeyId)
Parameters
Type Name Description
PrimaryKeyId primaryKeyId

FolderElementEntity(String)

Declaration
public FolderElementEntity(string metaClassName)
Parameters
Type Name Description
System.String metaClassName

FolderElementEntity(String, PrimaryKeyId)

Declaration
public FolderElementEntity(string metaClassName, PrimaryKeyId primaryKeyId)
Parameters
Type Name Description
System.String metaClassName
PrimaryKeyId primaryKeyId

Fields

ClassName

Declaration
public const string ClassName = "FolderElement"
Field Value
Type Description
System.String

FieldBlobStorageProvider

Declaration
public const string FieldBlobStorageProvider = "BlobStorageProvider"
Field Value
Type Description
System.String

FieldBlobUid

Declaration
public const string FieldBlobUid = "BlobUid"
Field Value
Type Description
System.String

FieldCard

Declaration
public const string FieldCard = "Card"
Field Value
Type Description
System.String

FieldContentSize

Declaration
public const string FieldContentSize = "ContentSize"
Field Value
Type Description
System.String

FieldContentType

Declaration
public const string FieldContentType = "ContentType"
Field Value
Type Description
System.String

FieldCreated

Declaration
public const string FieldCreated = "Created"
Field Value
Type Description
System.String

FieldCreatorId

Declaration
public const string FieldCreatorId = "CreatorId"
Field Value
Type Description
System.String

FieldDescription

Declaration
public const string FieldDescription = "Description"
Field Value
Type Description
System.String

FieldModified

Declaration
public const string FieldModified = "Modified"
Field Value
Type Description
System.String

FieldModifierId

Declaration
public const string FieldModifierId = "ModifierId"
Field Value
Type Description
System.String

FieldName

Declaration
public const string FieldName = "Name"
Field Value
Type Description
System.String

FieldParent

Declaration
public const string FieldParent = "Parent"
Field Value
Type Description
System.String

FieldParentId

Declaration
public const string FieldParentId = "ParentId"
Field Value
Type Description
System.String

PrimaryKeyName

Declaration
public const string PrimaryKeyName = "PrimaryKeyId"
Field Value
Type Description
System.String

Properties

BlobStorageProvider

Declaration
public string BlobStorageProvider { get; set; }
Property Value
Type Description
System.String

BlobUid

Declaration
public Guid? BlobUid { get; set; }
Property Value
Type Description
System.Nullable<System.Guid>

Card

Declaration
public string Card { get; set; }
Property Value
Type Description
System.String

ContentSize

Declaration
public int? ContentSize { get; set; }
Property Value
Type Description
System.Nullable<System.Int32>

ContentType

Declaration
public string ContentType { get; set; }
Property Value
Type Description
System.String

Created

Declaration
public DateTime Created { get; set; }
Property Value
Type Description
System.DateTime

CreatorId

Declaration
public string CreatorId { get; set; }
Property Value
Type Description
System.String

Description

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String

ExtendedProperties

Declaration
public EntityObjectProperty[] ExtendedProperties { get; set; }
Property Value
Type Description
EntityObjectProperty[]

Modified

Declaration
public DateTime Modified { get; set; }
Property Value
Type Description
System.DateTime

ModifierId

Declaration
public string ModifierId { get; set; }
Property Value
Type Description
System.String

Name

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

Parent

Declaration
public string Parent { get; }
Property Value
Type Description
System.String

ParentId

Declaration
public PrimaryKeyId? ParentId { get; set; }
Property Value
Type Description
System.Nullable<PrimaryKeyId>

Methods

Copy(FolderElementEntity, Int32)

Copies the specified folder element.

Declaration
public static void Copy(FolderElementEntity folderElement, int parentId)
Parameters
Type Name Description
FolderElementEntity folderElement

The folder element.

System.Int32 parentId

The parent id.

Copy(Int32, Int32)

Copies the specified folder element id.

Declaration
public static void Copy(int folderElementId, int parentId)
Parameters
Type Name Description
System.Int32 folderElementId

The folder element id.

System.Int32 parentId

The parent id.

Create(Int32, String, Stream)

Creates a new folder element.

Declaration
public static FolderElementEntity Create(int parentId, string fileName, Stream content)
Parameters
Type Name Description
System.Int32 parentId

The parent id.

System.String fileName

The Name of the file.

System.IO.Stream content

The content stream.

Returns
Type Description
FolderElementEntity

Create(Int32, String, Stream, Guid)

Creates a new folder element.

Declaration
public static FolderElementEntity Create(int parentId, string fileName, Stream content, Guid progressId)
Parameters
Type Name Description
System.Int32 parentId

The parent id.

System.String fileName

The Name of the file.

System.IO.Stream content

The content stream.

System.Guid progressId

The progress id.

Returns
Type Description
FolderElementEntity

Delete(FolderElementEntity)

Deletes the specified folder element.

Declaration
public static void Delete(FolderElementEntity folderElement)
Parameters
Type Name Description
FolderElementEntity folderElement

The folder element.

Delete(Int32)

Deletes the specified folder element by id.

Declaration
public static void Delete(int folderElementId)
Parameters
Type Name Description
System.Int32 folderElementId

The folder element id.

GetBlobInfo()

Gets the BLOB info.

Declaration
public BlobInfo GetBlobInfo()
Returns
Type Description
BlobInfo

GetElementPath(String)

Gets the hierarhy.

Declaration
public string GetElementPath(string delimeter)
Parameters
Type Name Description
System.String delimeter

The delimeter.

Returns
Type Description
System.String

GetElementsByPath(String)

Gets the element by path.

Declaration
public static FolderElementEntity[] GetElementsByPath(string path)
Parameters
Type Name Description
System.String path

The path.

Returns
Type Description
FolderElementEntity[]

GetTotalCount()

Returns total object count.

Declaration
public static int GetTotalCount()
Returns
Type Description
System.Int32

GetUrl()

Gets the URL.

Declaration
public string GetUrl()
Returns
Type Description
System.String

InitializeProperties()

Declaration
protected void InitializeProperties()

Move(FolderElementEntity, Int32)

Moves the specified folder element.

Declaration
public static void Move(FolderElementEntity folderElement, int newParentId)
Parameters
Type Name Description
FolderElementEntity folderElement

The folder element.

System.Int32 newParentId

The new parent id.

Move(Int32, Int32)

Moves the specified folder element id.

Declaration
public static void Move(int folderElementId, int newParentId)
Parameters
Type Name Description
System.Int32 folderElementId

The folder element id.

System.Int32 newParentId

The new parent id.

TryRecognizeStorageProvider(FolderElementEntity, String, String, Int64, out String)

Tries the recognize storage provider.

Declaration
public static bool TryRecognizeStorageProvider(FolderElementEntity element, string fileName, string contentType, long fileSize, out string providerName)
Parameters
Type Name Description
FolderElementEntity element

The element.

System.String fileName

Name of the file.

System.String contentType

Type of the content.

System.Int64 fileSize

Size of the file.

System.String providerName

Name of the provider.

Returns
Type Description
System.Boolean

TryRecognizeStorageProvider(FolderElementEntity, String, String, Int64, out String, out String)

Tries the recognize provider.

Declaration
public static bool TryRecognizeStorageProvider(FolderElementEntity element, string fileName, string contentType, long fileSize, out string providerName, out string profileName)
Parameters
Type Name Description
FolderElementEntity element

The element.

System.String fileName

Name of the file.

System.String contentType

Type of the content.

System.Int64 fileSize

Size of the file.

System.String providerName

Name of the provider.

System.String profileName

Name of the profile.

Returns
Type Description
System.Boolean