C# 클래스 SenseNet.Portal.Portlets.Controls.TagAdminControl

Controller class of Tag Admin Portlet.
상속: System.Web.UI.UserControl
파일 보기 프로젝트 열기: maxpavlov/FlexNet

보호된 프로퍼티들

프로퍼티 타입 설명
_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