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()
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
public class FolderElementEntity : EntityObject
Constructors
Declaration
public FolderElementEntity()
Declaration
public FolderElementEntity(PrimaryKeyId primaryKeyId)
Parameters
Declaration
public FolderElementEntity(string metaClassName)
Parameters
Type |
Name |
Description |
System.String |
metaClassName |
|
Declaration
public FolderElementEntity(string metaClassName, PrimaryKeyId primaryKeyId)
Parameters
Type |
Name |
Description |
System.String |
metaClassName |
|
PrimaryKeyId |
primaryKeyId |
|
Fields
Declaration
public const string ClassName = "FolderElement"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldBlobStorageProvider = "BlobStorageProvider"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldBlobUid = "BlobUid"
Field Value
Type |
Description |
System.String |
|
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 |
|
Declaration
public const string FieldCreated = "Created"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldCreatorId = "CreatorId"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldDescription = "Description"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldModified = "Modified"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldModifierId = "ModifierId"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldName = "Name"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldParent = "Parent"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string FieldParentId = "ParentId"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string PrimaryKeyName = "PrimaryKeyId"
Field Value
Type |
Description |
System.String |
|
Properties
Declaration
public string BlobStorageProvider { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public Guid? BlobUid { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Guid> |
|
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 |
|
Declaration
public DateTime Created { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Declaration
public string CreatorId { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string Description { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public EntityObjectProperty[] ExtendedProperties { get; set; }
Property Value
Declaration
public DateTime Modified { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Declaration
public string ModifierId { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string Parent { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public PrimaryKeyId? ParentId { get; set; }
Property Value
Methods
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.
|
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.
|
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
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
Deletes the specified folder element.
Declaration
public static void Delete(FolderElementEntity folderElement)
Parameters
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.
|
Declaration
public BlobInfo GetBlobInfo()
Returns
Declaration
public string GetElementPath(string delimeter)
Parameters
Type |
Name |
Description |
System.String |
delimeter |
The delimeter.
|
Returns
Type |
Description |
System.String |
|
Gets the element by path.
Declaration
public static FolderElementEntity[] GetElementsByPath(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
The path.
|
Returns
Returns total object count.
Declaration
public static int GetTotalCount()
Returns
Type |
Description |
System.Int32 |
|
Declaration
Returns
Type |
Description |
System.String |
|
Declaration
protected void InitializeProperties()
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.
|
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.
|
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 |
|
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 |
|