C# Class SenseNet.Portal.Handlers.UploadHelper

Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
CheckAllowedContentType ( GenericContent parent, Node child ) : bool

Checks if a content of the given ContentType is allowed under a given parent content

CheckAllowedContentType ( GenericContent parent, string contentTypeName ) : bool

Checks if a content of the given ContentType is allowed under a given parent content

CreateBinaryData ( System.Web.HttpPostedFile file ) : BinaryData

Creates BinaryData from HttpPostedFile

CreateBinaryData ( string fileName, Stream stream ) : BinaryData

Creates BinaryData from filename and stream

CreateNodeOfType ( string contentTypeName, Node parent, string fileName, Stream stream ) : void

Creates new Node of specified Content Type

GetContentType ( string fileName, string contentType ) : string

Determines content type from fileextension or given contentType

ModifyNode ( Node node, Stream stream ) : void

Modify node's binary

Method Details

CheckAllowedContentType() public static méthode

Checks if a content of the given ContentType is allowed under a given parent content
public static CheckAllowedContentType ( GenericContent parent, Node child ) : bool
parent SenseNet.ContentRepository.GenericContent
child Node child node whose NodeType will be checked
Résultat bool

CheckAllowedContentType() public static méthode

Checks if a content of the given ContentType is allowed under a given parent content
public static CheckAllowedContentType ( GenericContent parent, string contentTypeName ) : bool
parent SenseNet.ContentRepository.GenericContent
contentTypeName string
Résultat bool

CreateBinaryData() public static méthode

Creates BinaryData from HttpPostedFile
public static CreateBinaryData ( System.Web.HttpPostedFile file ) : BinaryData
file System.Web.HttpPostedFile
Résultat SenseNet.ContentRepository.Storage.BinaryData

CreateBinaryData() public static méthode

Creates BinaryData from filename and stream
public static CreateBinaryData ( string fileName, Stream stream ) : BinaryData
fileName string
stream Stream
Résultat SenseNet.ContentRepository.Storage.BinaryData

CreateNodeOfType() public static méthode

Creates new Node of specified Content Type
public static CreateNodeOfType ( string contentTypeName, Node parent, string fileName, Stream stream ) : void
contentTypeName string
parent Node
fileName string
stream Stream
Résultat void

GetContentType() public static méthode

Determines content type from fileextension or given contentType
public static GetContentType ( string fileName, string contentType ) : string
fileName string
contentType string
Résultat string

ModifyNode() public static méthode

Modify node's binary
public static ModifyNode ( Node node, Stream stream ) : void
node Node
stream Stream
Résultat void