C# Класс SenseNet.Portal.Portlets.Controls.TagAdminControl

Controller class of Tag Admin Portlet.
Наследование: System.Web.UI.UserControl
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_btnImport System.Web.UI.WebControls.Button
_lblImport System.Web.UI.WebControls.Label

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

BtnImportClick() защищенный Метод

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
Результат void

GetActionLink() публичный Метод

public GetActionLink ( int tagId, string action ) : string
tagId int
action string
Результат string

GetBlacklistLink() публичный Метод

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.
Результат string

GetIsBlackListed() публичный Метод

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.
Результат string

OnInit() защищенный Метод

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.
Результат void

Описание свойств

_btnImport защищенное свойство

Instance of Syncronize button.
protected Button,System.Web.UI.WebControls _btnImport
Результат System.Web.UI.WebControls.Button

_lblImport защищенное свойство

Instsance of Import label.
protected Label,System.Web.UI.WebControls _lblImport
Результат System.Web.UI.WebControls.Label