C# Class ScrewTurn.Wiki.PermissionsManager

Inheritance: System.Web.UI.UserControl
显示文件 Open project: mono/ScrewTurnWiki

Protected Properties

Property Type Description
aclActionsSelector global::ScrewTurn.Wiki.AclActionsSelector
btnAdd global::Anthem.Button
btnRemove global::Anthem.Button
btnSave global::Anthem.Button
btnSearch global::Anthem.Button
lblAddResult global::Anthem.Label
lblPermissionsFor global::System.Web.UI.WebControls.Literal
lblSaveResult global::Anthem.Label
lblSelectedSubject global::System.Web.UI.WebControls.Literal
lblSubjects global::System.Web.UI.WebControls.Literal
lstFoundSubjects global::Anthem.DropDownList
lstSubjects global::Anthem.ListBox
txtNewSubject global::Anthem.TextBox

Protected Methods

Method Description
Page_Load ( object sender, EventArgs e ) : void
btnAdd_Click ( object sender, EventArgs e ) : void
btnRemove_Click ( object sender, EventArgs e ) : void
btnSave_Click ( object sender, EventArgs e ) : void
btnSearch_Click ( object sender, EventArgs e ) : void
lstSubjects_SelectedIndexChanged ( object sender, EventArgs e ) : void

Private Methods

Method Description
AddAclEntriesForDirectory ( string subject, IFilesStorageProviderV30 provider, string directory, string grants, string denials ) : bool

Adds some ACL entries for a subject.

AddAclEntriesForNamespace ( string subject, string nspace, string grants, string denials ) : bool

Adds some ACL entries for a subject.

AddAclEntriesForPage ( string subject, string page, string grants, string denials ) : bool

Adds some ACL entries for a subject.

ClearPermissions ( ) : void

Clears the actions matrix.

DisplaySubjectPermissions ( string subject, SubjectType type ) : void

Displays the permissions for a subject in the actions matrix.

GetSubjects ( ) : ScrewTurn.Wiki.SubjectInfo[]

Gets the subjects for the current resource.

IsAlreadyPresent ( string subject, SubjectType type, SubjectInfo allSubjects ) : bool

Determines whether a subject is already in a list.

PopulateSubjectsList ( ) : void

Populates the subjects list.

RemoveAllAclEntriesForDirectory ( string subject, IFilesStorageProviderV30 provider, string directory ) : bool

Removes all the ACL entries for a subject.

RemoveAllAclEntriesForNamespace ( string subject, string nspace ) : bool

Removes all the ACL entries for a subject.

RemoveAllAclEntriesForPage ( string subject, string page ) : bool

Removes all the ACL entries for a subject.

Method Details

Page_Load() protected method

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

btnAdd_Click() protected method

protected btnAdd_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnRemove_Click() protected method

protected btnRemove_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnSave_Click() protected method

protected btnSave_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

btnSearch_Click() protected method

protected btnSearch_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

lstSubjects_SelectedIndexChanged() protected method

protected lstSubjects_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

aclActionsSelector protected_oe property

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

btnAdd protected_oe property

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

btnRemove protected_oe property

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

btnSave protected_oe property

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

btnSearch protected_oe property

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

lblAddResult protected_oe property

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

lblPermissionsFor protected_oe property

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

lblSaveResult protected_oe property

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

lblSelectedSubject protected_oe property

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

lblSubjects protected_oe property

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

lstFoundSubjects protected_oe property

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

lstSubjects protected_oe property

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

txtNewSubject protected_oe property

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