C# Class ScrewTurn.Wiki.FileManager

Mostra file Open project: mono/ScrewTurnWiki

Protected Properties

Property Type Description
btnCancel global::Anthem.Button
btnNewDirectory global::Anthem.Button
btnRename global::Anthem.Button
btnUpload global::System.Web.UI.WebControls.Button
chkOverwrite global::System.Web.UI.WebControls.CheckBox
fileUpload global::System.Web.UI.WebControls.FileUpload
lblDirectoryName global::System.Web.UI.WebControls.Literal
lblItem global::Anthem.Label
lblManagePermissions global::System.Web.UI.WebControls.Literal
lblNewDirectoryResult global::Anthem.Label
lblNewDirectoryTitle global::System.Web.UI.WebControls.Literal
lblNoList global::Anthem.Label
lblRename global::System.Web.UI.WebControls.Literal
lblRenameResult global::Anthem.Label
lblRoot global::Anthem.Label
lblStrings global::System.Web.UI.WebControls.Literal
lblUploadFiles global::System.Web.UI.WebControls.Literal
lblUploadFilesInfo global::System.Web.UI.WebControls.Literal
lblUploadResult global::System.Web.UI.WebControls.Label
lnkRoot global::Anthem.LinkButton
lstProviders global::Anthem.DropDownList
permissionsManager global::ScrewTurn.Wiki.PermissionsManager
plhDirectory global::Anthem.PlaceHolder
pnlNewDirectory global::Anthem.Panel
pnlPermissions global::Anthem.Panel
pnlRename global::Anthem.Panel
pnlUpload global::Anthem.Panel
rptItems global::Anthem.Repeater
txtNewDirectoryName global::Anthem.TextBox
txtNewName global::Anthem.TextBox

Private Properties

Property Type Description
DeletePermissions void
DetectPermissions void
EnterDirectory void
GetItemName string
LoadProviders void
MovePermissions void
PopulateBreadcrumb void
SetupControlsForPermissions void
linkButton_Click void

Public Methods

Method Description
GoToRoot ( ) : void

Returns to the root.

TryEnterDirectory ( string provider, string directory ) : void

Tries to enter a directory.

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void
btnCancel_Click ( object sender, EventArgs e ) : void
btnNewDirectory_Click ( object sender, EventArgs e ) : void
btnRename_Click ( object sender, EventArgs e ) : void
btnUpload_Click ( object sender, EventArgs e ) : void
lnkRoot_Click ( object sender, EventArgs e ) : void
lstProviders_SelectedIndexChanged ( object sender, EventArgs e ) : void
rptItems_DataBinding ( object sender, EventArgs e ) : void
rptItems_ItemCommand ( object sender, RepeaterCommandEventArgs e ) : void

Private Methods

Method Description
DeletePermissions ( string directory ) : void

Deletes the permissions of a directory.

DetectPermissions ( ) : void

Detects the permissions of the current user for the current directory.

EnterDirectory ( string name ) : void

Enters a sub-directory of the current directory.

GetItemName ( string path ) : string

Gets the name of an item.

LoadProviders ( ) : void

Loads the providers.

MovePermissions ( string oldDirectory, string newDirectory ) : void

Recursively moves permissions from the old (renamed) directory to the new one.

PopulateBreadcrumb ( ) : void

Populates the directory breadcrumb placeholder. See also methods linkButton_Click e lnkRoot_Click.

SetupControlsForPermissions ( ) : void

Sets the controls depending on the current permissions.

linkButton_Click ( object sender, EventArgs e ) : void

Method Details

GoToRoot() public method

Returns to the root.
public GoToRoot ( ) : void
return void

Page_Load() protected method

protected Page_Load ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

TryEnterDirectory() public method

Tries to enter a directory.
public TryEnterDirectory ( string provider, string directory ) : void
provider string The provider.
directory string The full path of the directory.
return void

btnCancel_Click() protected method

protected btnCancel_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnNewDirectory_Click() protected method

protected btnNewDirectory_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnRename_Click() protected method

protected btnRename_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

btnUpload_Click() protected method

protected btnUpload_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

lnkRoot_Click() protected method

protected lnkRoot_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

lstProviders_SelectedIndexChanged() protected method

protected lstProviders_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

rptItems_DataBinding() protected method

protected rptItems_DataBinding ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

rptItems_ItemCommand() protected method

protected rptItems_ItemCommand ( object sender, RepeaterCommandEventArgs e ) : void
sender object
e RepeaterCommandEventArgs
return void

Property Details

btnCancel protected_oe property

btnCancel control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Button btnCancel
return global::Anthem.Button

btnNewDirectory protected_oe property

btnNewDirectory control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Button btnNewDirectory
return global::Anthem.Button

btnRename protected_oe property

btnRename control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Button btnRename
return global::Anthem.Button

btnUpload protected_oe property

btnUpload control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Button btnUpload
return global::System.Web.UI.WebControls.Button

chkOverwrite protected_oe property

chkOverwrite control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.CheckBox chkOverwrite
return global::System.Web.UI.WebControls.CheckBox

fileUpload protected_oe property

fileUpload control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.FileUpload fileUpload
return global::System.Web.UI.WebControls.FileUpload

lblDirectoryName protected_oe property

lblDirectoryName control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblDirectoryName
return global::System.Web.UI.WebControls.Literal

lblItem protected_oe property

lblItem control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Label lblItem
return global::Anthem.Label

lblManagePermissions protected_oe property

lblManagePermissions control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblManagePermissions
return global::System.Web.UI.WebControls.Literal

lblNewDirectoryResult protected_oe property

lblNewDirectoryResult control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Label lblNewDirectoryResult
return global::Anthem.Label

lblNewDirectoryTitle protected_oe property

lblNewDirectoryTitle control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblNewDirectoryTitle
return global::System.Web.UI.WebControls.Literal

lblNoList protected_oe property

lblNoList control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Label lblNoList
return global::Anthem.Label

lblRename protected_oe property

lblRename control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblRename
return global::System.Web.UI.WebControls.Literal

lblRenameResult protected_oe property

lblRenameResult control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Label lblRenameResult
return global::Anthem.Label

lblRoot protected_oe property

lblRoot control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Label lblRoot
return global::Anthem.Label

lblStrings protected_oe property

lblStrings control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblStrings
return global::System.Web.UI.WebControls.Literal

lblUploadFiles protected_oe property

lblUploadFiles control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblUploadFiles
return global::System.Web.UI.WebControls.Literal

lblUploadFilesInfo protected_oe property

lblUploadFilesInfo control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Literal lblUploadFilesInfo
return global::System.Web.UI.WebControls.Literal

lblUploadResult protected_oe property

lblUploadResult control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::System.Web.UI.WebControls.Label lblUploadResult
return global::System.Web.UI.WebControls.Label

lnkRoot protected_oe property

lnkRoot control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.LinkButton lnkRoot
return global::Anthem.LinkButton

lstProviders protected_oe property

lstProviders control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.DropDownList lstProviders
return global::Anthem.DropDownList

permissionsManager protected_oe property

permissionsManager control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::ScrewTurn.Wiki.PermissionsManager permissionsManager
return global::ScrewTurn.Wiki.PermissionsManager

plhDirectory protected_oe property

plhDirectory control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.PlaceHolder plhDirectory
return global::Anthem.PlaceHolder

pnlNewDirectory protected_oe property

pnlNewDirectory control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Panel pnlNewDirectory
return global::Anthem.Panel

pnlPermissions protected_oe property

pnlPermissions control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Panel pnlPermissions
return global::Anthem.Panel

pnlRename protected_oe property

pnlRename control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Panel pnlRename
return global::Anthem.Panel

pnlUpload protected_oe property

pnlUpload control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Panel pnlUpload
return global::Anthem.Panel

rptItems protected_oe property

rptItems control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.Repeater rptItems
return global::Anthem.Repeater

txtNewDirectoryName protected_oe property

txtNewDirectoryName control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.TextBox txtNewDirectoryName
return global::Anthem.TextBox

txtNewName protected_oe property

txtNewName control.
Auto-generated field. To modify move field declaration from designer file to code-behind file.
protected global::Anthem.TextBox txtNewName
return global::Anthem.TextBox