C# Class ScrewTurn.Wiki.Collisions

Manages Page Editing collisions.
显示文件 Open project: mono/ScrewTurnWiki Class Usage Examples

Public Methods

Method Description
CancelEditingSession ( System.PageInfo page, string user ) : void

Cancels an editing session.

IsPageBeingEdited ( System.PageInfo page, string currentUser ) : bool

Finds whether a Page is being edited by a different user.

RenewEditingSession ( System.PageInfo page, string user ) : void

Adds or updates an editing session.

WhosEditing ( System.PageInfo page ) : string

Gets the username of the user who's editing a page.

Method Details

CancelEditingSession() public static method

Cancels an editing session.
public static CancelEditingSession ( System.PageInfo page, string user ) : void
page System.PageInfo The Page.
user string The User.
return void

IsPageBeingEdited() public static method

Finds whether a Page is being edited by a different user.
public static IsPageBeingEdited ( System.PageInfo page, string currentUser ) : bool
page System.PageInfo The Page.
currentUser string The User who is requesting the status of the Page.
return bool

RenewEditingSession() public static method

Adds or updates an editing session.
public static RenewEditingSession ( System.PageInfo page, string user ) : void
page System.PageInfo The edited Page.
user string The User who is editing the Page.
return void

WhosEditing() public static method

Gets the username of the user who's editing a page.
public static WhosEditing ( System.PageInfo page ) : string
page System.PageInfo The page.
return string