C# Class Subtext.Framework.BlogInfo

Show file Open project: ayende/Subtext Class Usage Examples

Public Methods

Method Description
ClearBlogContent ( int blogId ) : void
Equals ( object obj ) : bool

Returns true if the two instances are equal

GetAlternateHostAlias ( string host ) : string

If the host starts with www., gets the host without the www. If it doesn't start with www., returns the host with www.

GetBlogAliases ( int pageIndex, int pageSize ) : IPagedCollection
GetBlogById ( int blogId ) : BlogInfo

Gets the blog by id.

GetBlogs ( int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection

Returns a IList{T} containing ACTIVE the BlogInfo instances within the specified range.

GetBlogsByHost ( string host, int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection

Gets the active blog count by host.

GetHashCode ( ) : int

Serves as the hash function for the type BlogInfo, suitable for use in hashing functions.

StripPortFromHost ( string host ) : string

Strips the port number from the host name.

StripWwwPrefixFromHost ( string host ) : string

Strips www prefix from host name.

Protected Methods

Method Description
FlagPropertyCheck ( ConfigurationFlags cf ) : bool

Checks to see if the specified ConfigurationFlag matches a flag set for this blog.

FlagSetter ( ConfigurationFlags cf, bool select ) : void

Adds or removes a ConfigurationFlag to the flags set for this blog via bitmask operations.

Private Methods

Method Description
InitAggregateBlog ( ) : BlogInfo

Method Details

ClearBlogContent() public static method

public static ClearBlogContent ( int blogId ) : void
blogId int
return void

Equals() public method

Returns true if the two instances are equal
public Equals ( object obj ) : bool
obj object Obj.
return bool

FlagPropertyCheck() protected method

Checks to see if the specified ConfigurationFlag matches a flag set for this blog.
protected FlagPropertyCheck ( ConfigurationFlags cf ) : bool
cf ConfigurationFlags Cf.
return bool

FlagSetter() protected method

Adds or removes a ConfigurationFlag to the flags set for this blog via bitmask operations.
protected FlagSetter ( ConfigurationFlags cf, bool select ) : void
cf ConfigurationFlags Cf.
select bool Select.
return void

GetAlternateHostAlias() public static method

If the host starts with www., gets the host without the www. If it doesn't start with www., returns the host with www.
public static GetAlternateHostAlias ( string host ) : string
host string Host.
return string

GetBlogAliases() public method

public GetBlogAliases ( int pageIndex, int pageSize ) : IPagedCollection
pageIndex int
pageSize int
return IPagedCollection

GetBlogById() public static method

Gets the blog by id.
public static GetBlogById ( int blogId ) : BlogInfo
blogId int Blog id.
return BlogInfo

GetBlogs() public static method

Returns a IList{T} containing ACTIVE the BlogInfo instances within the specified range.
public static GetBlogs ( int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection
pageIndex int Page index.
pageSize int Size of the page.
flags ConfigurationFlags
return IPagedCollection

GetBlogsByHost() public static method

Gets the active blog count by host.
public static GetBlogsByHost ( string host, int pageIndex, int pageSize, ConfigurationFlags flags ) : IPagedCollection
host string The host.
pageIndex int Zero based index of the page to retrieve.
pageSize int Number of records to display on the page.
flags ConfigurationFlags Configuration flags to filter blogs retrieved.
return IPagedCollection

GetHashCode() public method

Serves as the hash function for the type BlogInfo, suitable for use in hashing functions.
public GetHashCode ( ) : int
return int

StripPortFromHost() public static method

Strips the port number from the host name.
public static StripPortFromHost ( string host ) : string
host string Host.
return string

StripWwwPrefixFromHost() public static method

Strips www prefix from host name.
public static StripWwwPrefixFromHost ( string host ) : string
host string Host.
return string