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

Controller class of Tag Admin Portlet.
Inheritance: System.Web.UI.UserControl
Afficher le fichier Open project: maxpavlov/FlexNet

Protected Properties

Свойство Type Description
_btnImport System.Web.UI.WebControls.Button
_lblImport System.Web.UI.WebControls.Label

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat void

GetActionLink() public méthode

public GetActionLink ( int tagId, string action ) : string
tagId int
action string
Résultat string

GetBlacklistLink() public méthode

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.
Résultat string

GetIsBlackListed() public méthode

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.
Résultat string

OnInit() protected méthode

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.
Résultat void

Property Details

_btnImport protected_oe property

Instance of Syncronize button.
protected Button,System.Web.UI.WebControls _btnImport
Résultat System.Web.UI.WebControls.Button

_lblImport protected_oe property

Instsance of Import label.
protected Label,System.Web.UI.WebControls _lblImport
Résultat System.Web.UI.WebControls.Label