C# Class SenseNet.Portal.Portlets.Controls.TagAdminControl

Controller class of Tag Admin Portlet.
Inheritance: System.Web.UI.UserControl
Datei anzeigen Open project: maxpavlov/FlexNet

Protected Properties

Property Type Description
_btnImport System.Web.UI.WebControls.Button
_lblImport System.Web.UI.WebControls.Label

Public Methods

Method Description
GetActionLink ( int tagId, string action ) : string
GetBlacklistLink ( int tagId ) : string

Generates link for adding and removing tag to/from blacklist.

Used for setting value in the table on content view.

GetIsBlackListed ( int tagId ) : string

Checks if given tag blacklisted is.

Used for setting value in the table on content view.

Protected Methods

Method Description
BtnImportClick ( object sender, EventArgs e ) : void

Imports tags are not in Content Repository but in Lucene index and removes tag entities from Content Repository are not in Lucene index and are not blacklisted.

OnInit ( EventArgs e ) : void

Overridden OnInit method.

It initializes _allTags and _tagsInRepository variables. Sets Syncronization label's text the correct value based on _allTags and _tagsInRepository variables. It sets instances of Add Tag button and Add Tag textbox.

Private Methods

Method Description
BtnAddTagClick ( object sender, EventArgs e ) : void

Event handler of Add tag button.

It adds tags are in Add tag textbox separated by spaces.

SetDataSource ( ) : void

Sets datasource of listview.

Loads tags form Content Repository and adds the following properties of them to a datatable: DisplayName, Created By, Creation Date, Modification Date, Reference Count, Path, Is Blacklisted an Node ID. Sets this datatable as datasource to the listview.

Method Details

BtnImportClick() protected method

Imports tags are not in Content Repository but in Lucene index and removes tag entities from Content Repository are not in Lucene index and are not blacklisted.
protected BtnImportClick ( object sender, EventArgs e ) : void
sender object Sender parameter
e System.EventArgs EventArgs parameter
return void

GetActionLink() public method

public GetActionLink ( int tagId, string action ) : string
tagId int
action string
return string

GetBlacklistLink() public method

Generates link for adding and removing tag to/from blacklist.
Used for setting value in the table on content view.
public GetBlacklistLink ( int tagId ) : string
tagId int Node ID of given tag.
return string

GetIsBlackListed() public method

Checks if given tag blacklisted is.
Used for setting value in the table on content view.
public GetIsBlackListed ( int tagId ) : string
tagId int Node ID of given tag.
return string

OnInit() protected method

Overridden OnInit method.
It initializes _allTags and _tagsInRepository variables. Sets Syncronization label's text the correct value based on _allTags and _tagsInRepository variables. It sets instances of Add Tag button and Add Tag textbox.
protected OnInit ( EventArgs e ) : void
e System.EventArgs EventArg parameter.
return void

Property Details

_btnImport protected_oe property

Instance of Syncronize button.
protected Button,System.Web.UI.WebControls _btnImport
return System.Web.UI.WebControls.Button

_lblImport protected_oe property

Instsance of Import label.
protected Label,System.Web.UI.WebControls _lblImport
return System.Web.UI.WebControls.Label