C# Class Phun.ContentConnector

Inheritance: IContentConnector
Afficher le fichier Open project: noogen/phuncms

Méthodes publiques

Méthode Description
ContentConnector ( ) : System

Initializes a new instance of the ContentConnector class.

Create ( string path, string data, Uri uri ) : ContentModel

Create the file.

CreateOrUpdate ( string path, Uri uri, byte data ) : ContentModel

Creates the or update.

CreateOrUpdate ( string path, string data, Uri uri ) : ContentModel

Update the file.

Delete ( string path, Uri uri ) : ContentModel

Deletes the specified model.

GetTenantHost ( Uri url ) : string

Gets the current host.

List ( string path, Uri uri ) : IQueryable

Lists the specified path.

Normalize ( string path ) : string

Applies the path convention.

OnContentEvent ( ContentConnectorEventArgument e ) : void

Called when [content event].

OnContentEvent ( string eventName, ContentModel model ) : void

Called when [content event].

RenderPage ( System.Web.HttpContextBase httpContext ) : ContentModel

View content.

ResolvePath ( string path, string tenantHost, System.Web.HttpContextBase context ) : string

Resolves the path. Also allow for caching path resolution.

Retrieve ( string path, Uri uri ) : ContentModel

Retrieves the specified path.

Private Methods

Méthode Description
CheckPage ( string path, string tenantHost, string extension ) : string

Checks the page.

Method Details

ContentConnector() public méthode

Initializes a new instance of the ContentConnector class.
public ContentConnector ( ) : System
Résultat System

Create() public méthode

Create the file.
500;Cannot create or overwrite an existing content of path: + path
public Create ( string path, string data, Uri uri ) : ContentModel
path string The path.
data string The data.
uri System.Uri The URI.
Résultat Phun.Data.ContentModel

CreateOrUpdate() public méthode

Creates the or update.
Cannot update root path.;path
public CreateOrUpdate ( string path, Uri uri, byte data ) : ContentModel
path string The path.
uri System.Uri The URI.
data byte The data.
Résultat Phun.Data.ContentModel

CreateOrUpdate() public méthode

Update the file.
public CreateOrUpdate ( string path, string data, Uri uri ) : ContentModel
path string The path.
data string The data.
uri System.Uri The URI.
Résultat Phun.Data.ContentModel

Delete() public méthode

Deletes the specified model.
500;Unable to delete protected path '/'.
public Delete ( string path, Uri uri ) : ContentModel
path string The path.
uri System.Uri The URI.
Résultat Phun.Data.ContentModel

GetTenantHost() public méthode

Gets the current host.
public GetTenantHost ( Uri url ) : string
url System.Uri The URL.
Résultat string

List() public méthode

Lists the specified path.
public List ( string path, Uri uri ) : IQueryable
path string The path.
uri System.Uri The URI.
Résultat IQueryable

Normalize() public méthode

Applies the path convention.
public Normalize ( string path ) : string
path string The path.
Résultat string

OnContentEvent() public méthode

Called when [content event].
public OnContentEvent ( ContentConnectorEventArgument e ) : void
e ContentConnectorEventArgument The instance containing the event data.
Résultat void

OnContentEvent() public méthode

Called when [content event].
public OnContentEvent ( string eventName, ContentModel model ) : void
eventName string Name of the event.
model Phun.Data.ContentModel The model.
Résultat void

RenderPage() public méthode

View content.
public RenderPage ( System.Web.HttpContextBase httpContext ) : ContentModel
httpContext System.Web.HttpContextBase The HTTP context.
Résultat Phun.Data.ContentModel

ResolvePath() public méthode

Resolves the path. Also allow for caching path resolution.
404;Failed on all attempt to search vash file for: + path
public ResolvePath ( string path, string tenantHost, System.Web.HttpContextBase context ) : string
path string The path.
tenantHost string The tenant host.
context System.Web.HttpContextBase The context.
Résultat string

Retrieve() public méthode

Retrieves the specified path.
404;PhunCms path not found.
public Retrieve ( string path, Uri uri ) : ContentModel
path string The path.
uri System.Uri The URI.
Résultat Phun.Data.ContentModel