C# 클래스 Engage.Dnn.Publish.Item

Summary description for ItemInfo.
상속: Engage.Dnn.Publish.Portability.TransportableElement
파일 보기 프로젝트 열기: EngageSoftware/Engage-Publish

Private Properties

프로퍼티 타입 설명
DeleteItem void
GetAnyPublishModule DotNetNuke.Entities.Modules.ModuleInfo
GetApprovalStatusTypeName string
GetChildren System.Data.DataSet
GetItemTypes System.Data.DataTable
GetParentCategoryId int
MakeUrlAbsolute string
SendApprovalEmail void
SendStatusUpdateEmail void
SendTemplatedEmail void

공개 메소드들

메소드 설명
AddItem ( IDbTransaction trans, int itemTypeId, int portalId, int moduleId, System.Guid itemIdentifier ) : int
AddItemVersion ( IDbTransaction trans, int itemId, int originalItemVersionId, string name, string description, string startDate, string endDate, int languageId, int authorUserId, string metaKeywords, string metaDescription, string metaTitle, int displayTabId, bool disabled, string thumbnail, System.Guid itemVersionIdentifier, string url, bool newWindow, int revisingUserId ) : int
AddItemVersion ( int itemId, int originalItemVersionId, string name, string description, string startDate, string endDate, int languageId, int authorUserId, string metaKeywords, string metaDescription, string metaTitle, int displayTabId, bool disabled, string thumbnail, System.Guid itemVersionIdentifier, string url, bool newWindow, int revisingUserId ) : int
AddView ( int userId, int tabId, string ipAddress, string userAgent, string httpReferrer, string siteUrl ) : void
ClearItemsCommentCount ( int portalId ) : void

Clears the comment count on the item table to 0 for all items within a portal

ClearItemsViewCount ( int portalId ) : void

Clears the view count on the item table to 0 for all items within a portal

CorrectDates ( ) : void
DeleteItem ( int itemId, int portalId ) : void
DisplayOnCurrentPage ( ) : bool
DoesItemExist ( string name, int authorUserId ) : bool
DoesItemExist ( string name, int authorUserId, int categoryId ) : bool

Checks to see if an item exists by a specific name, from a specific author, in a specific category.

ForceDisplayOnPage ( ) : bool

Determines whether this Item should be forced to always display on its assigned DisplayTabId, or whether it can display on any tab.

GetAllChildren ( int parentItemId, int relationshipTypeId, int portalId ) : DataSet
GetAllChildren ( int itemTypeId, int parentItemId, int relationshipTypeId, int portalId ) : DataSet
GetAllChildren ( int itemTypeId, int parentItemId, int relationshipTypeId, int otherRelationshipTypeId, int portalId ) : DataSet
GetAllChildrenAsDataReader ( int itemTypeId, int parentItemId, int relationshipTypeId, int otherRelationshipTypeId, int portalId ) : IDataReader
GetItem ( int itemId, int portalId, int itemTypeId, bool isCurrent ) : Item
GetItemIdFromVersion ( int itemVersionId ) : int
GetItemIdFromVersion ( int itemVersionId, int portalId ) : int
GetItemType ( int itemId ) : string
GetItemType ( int itemId, int portalId ) : string
GetItemTypeId ( int itemId ) : int
GetItemTypeId ( int itemId, int portalId ) : int
GetItemTypes ( int portalId ) : DataTable
GetItemVersions ( int itemId, int portalId ) : DataSet
GetItems ( int parentItemId, int portalId, int relationshipTypeId ) : DataSet
GetItems ( int parentItemId, int portalId, int relationshipTypeId, int itemTypeId ) : DataSet
GetItems ( int parentItemId, int portalId, int relationshipTypeId, int otherRelationshipTypeId, int itemTypeId ) : DataSet
GetItems ( int itemTypeId, int portalId ) : IDataReader
GetParentItems ( int itemId, int portalId, int relationshipTypeId ) : DataSet
GetRelatedArticle ( int articlePortalId ) : Article

this is a single article to be displayed as a sub section of a page.

GetRelatedArticles ( int articlePortalId ) : Engage.Dnn.Publish.Article[]

Gets all articles related to this article

IsLinkable ( ) : bool

This method currently verifies that the item is assigned to a display page. Future versions will eliminate this requirement all together but for now this is needed by ItemLink.aspx when linking occurs. This could be used to test other settings to be valid before displaying.

RunPublishStats ( ) : void

Runs the stored procedure to calculate the views and comment counts for all items.

Save ( int revisingUserId ) : void
UpdateApprovalStatus ( ) : void
UpdateDescription ( ) : void
UpdateItem ( IDbTransaction trans, int itemId, int moduleId ) : void
UpdateItemVersion ( IDbTransaction trans, int itemId, int itemVersionId, int approvalStatusId, int userId, string approvalComments ) : void

보호된 메소드들

메소드 설명
Item ( ) : System
LoadItemVersionSettings ( ) : void
LoadRelationships ( ) : void

Loads the ItemRelationships for this Item, clearing any _relationships already in the Item.Relationships collection.

LoadTags ( ) : void

Loads the ItemTags for this Item, clearing any tags already in the Item.Tags collection.

ResolveIds ( int currentModuleId ) : void
SaveInfo ( IDbTransaction trans, int revisingId ) : void
SaveItemVersionSettings ( ) : void
SaveItemVersionSettings ( IDbTransaction trans ) : void
SaveRelationships ( IDbTransaction trans ) : void
SaveTags ( ) : void
SaveTags ( IDbTransaction trans ) : void

if we remove a tag from a version we should decrement the TotalItems for a tag.

UpdateApprovalStatus ( IDbTransaction trans ) : void

비공개 메소드들

메소드 설명
DeleteItem ( int itemId ) : void
GetAnyPublishModule ( ) : DotNetNuke.Entities.Modules.ModuleInfo

Gets an instance of Engage: Publish within this item's portal.

GetApprovalStatusTypeName ( ) : string
GetChildren ( int parentItemId, int relationshipTypeId, int portalId ) : DataSet
GetItemTypes ( ) : DataTable
GetParentCategoryId ( ) : int
MakeUrlAbsolute ( string url ) : string

Makes the URL absolute, based on the current request.

SendApprovalEmail ( ) : void

Sends an email to the users in the Utility.PublishEmailNotificationRole indicating that an item was approved.

SendStatusUpdateEmail ( ) : void

Sends an email to the author of an item's version indicating that the version's status changed.

SendTemplatedEmail ( DotNetNuke.Entities.Users.UserInfo revisingUser, IEnumerable emailRecipients, string emailBodyTemplate, string emailSubject ) : void

Sends an email with a templated body to the given recipients' email.

메소드 상세

AddItem() 공개 정적인 메소드

public static AddItem ( IDbTransaction trans, int itemTypeId, int portalId, int moduleId, System.Guid itemIdentifier ) : int
trans IDbTransaction
itemTypeId int
portalId int
moduleId int
itemIdentifier System.Guid
리턴 int

AddItemVersion() 공개 정적인 메소드

public static AddItemVersion ( IDbTransaction trans, int itemId, int originalItemVersionId, string name, string description, string startDate, string endDate, int languageId, int authorUserId, string metaKeywords, string metaDescription, string metaTitle, int displayTabId, bool disabled, string thumbnail, System.Guid itemVersionIdentifier, string url, bool newWindow, int revisingUserId ) : int
trans IDbTransaction
itemId int
originalItemVersionId int
name string
description string
startDate string
endDate string
languageId int
authorUserId int
metaKeywords string
metaDescription string
metaTitle string
displayTabId int
disabled bool
thumbnail string
itemVersionIdentifier System.Guid
url string
newWindow bool
revisingUserId int
리턴 int

AddItemVersion() 공개 정적인 메소드

public static AddItemVersion ( int itemId, int originalItemVersionId, string name, string description, string startDate, string endDate, int languageId, int authorUserId, string metaKeywords, string metaDescription, string metaTitle, int displayTabId, bool disabled, string thumbnail, System.Guid itemVersionIdentifier, string url, bool newWindow, int revisingUserId ) : int
itemId int
originalItemVersionId int
name string
description string
startDate string
endDate string
languageId int
authorUserId int
metaKeywords string
metaDescription string
metaTitle string
displayTabId int
disabled bool
thumbnail string
itemVersionIdentifier System.Guid
url string
newWindow bool
revisingUserId int
리턴 int

AddView() 공개 메소드

public AddView ( int userId, int tabId, string ipAddress, string userAgent, string httpReferrer, string siteUrl ) : void
userId int
tabId int
ipAddress string
userAgent string
httpReferrer string
siteUrl string
리턴 void

ClearItemsCommentCount() 공개 정적인 메소드

Clears the comment count on the item table to 0 for all items within a portal
public static ClearItemsCommentCount ( int portalId ) : void
portalId int The Portal in which the items will be cleared
리턴 void

ClearItemsViewCount() 공개 정적인 메소드

Clears the view count on the item table to 0 for all items within a portal
public static ClearItemsViewCount ( int portalId ) : void
portalId int The Portal in which the items will be cleared
리턴 void

CorrectDates() 공개 메소드

public CorrectDates ( ) : void
리턴 void

DeleteItem() 공개 정적인 메소드

public static DeleteItem ( int itemId, int portalId ) : void
itemId int
portalId int
리턴 void

DisplayOnCurrentPage() 공개 메소드

public DisplayOnCurrentPage ( ) : bool
리턴 bool

DoesItemExist() 공개 정적인 메소드

public static DoesItemExist ( string name, int authorUserId ) : bool
name string
authorUserId int
리턴 bool

DoesItemExist() 공개 정적인 메소드

Checks to see if an item exists by a specific name, from a specific author, in a specific category.
public static DoesItemExist ( string name, int authorUserId, int categoryId ) : bool
name string The name of the item
authorUserId int The ID of the author
categoryId int The ID of the category
리턴 bool

ForceDisplayOnPage() 공개 메소드

Determines whether this Item should be forced to always display on its assigned DisplayTabId, or whether it can display on any tab.
public ForceDisplayOnPage ( ) : bool
리턴 bool

GetAllChildren() 공개 정적인 메소드

public static GetAllChildren ( int parentItemId, int relationshipTypeId, int portalId ) : DataSet
parentItemId int
relationshipTypeId int
portalId int
리턴 System.Data.DataSet

GetAllChildren() 공개 정적인 메소드

public static GetAllChildren ( int itemTypeId, int parentItemId, int relationshipTypeId, int portalId ) : DataSet
itemTypeId int
parentItemId int
relationshipTypeId int
portalId int
리턴 System.Data.DataSet

GetAllChildren() 공개 정적인 메소드

public static GetAllChildren ( int itemTypeId, int parentItemId, int relationshipTypeId, int otherRelationshipTypeId, int portalId ) : DataSet
itemTypeId int
parentItemId int
relationshipTypeId int
otherRelationshipTypeId int
portalId int
리턴 System.Data.DataSet

GetAllChildrenAsDataReader() 공개 정적인 메소드

public static GetAllChildrenAsDataReader ( int itemTypeId, int parentItemId, int relationshipTypeId, int otherRelationshipTypeId, int portalId ) : IDataReader
itemTypeId int
parentItemId int
relationshipTypeId int
otherRelationshipTypeId int
portalId int
리턴 IDataReader

GetItem() 공개 정적인 메소드

public static GetItem ( int itemId, int portalId, int itemTypeId, bool isCurrent ) : Item
itemId int
portalId int
itemTypeId int
isCurrent bool
리턴 Item

GetItemIdFromVersion() 공개 정적인 메소드

public static GetItemIdFromVersion ( int itemVersionId ) : int
itemVersionId int
리턴 int

GetItemIdFromVersion() 공개 정적인 메소드

public static GetItemIdFromVersion ( int itemVersionId, int portalId ) : int
itemVersionId int
portalId int
리턴 int

GetItemType() 공개 정적인 메소드

public static GetItemType ( int itemId ) : string
itemId int
리턴 string

GetItemType() 공개 정적인 메소드

public static GetItemType ( int itemId, int portalId ) : string
itemId int
portalId int
리턴 string

GetItemTypeId() 공개 정적인 메소드

public static GetItemTypeId ( int itemId ) : int
itemId int
리턴 int

GetItemTypeId() 공개 정적인 메소드

public static GetItemTypeId ( int itemId, int portalId ) : int
itemId int
portalId int
리턴 int

GetItemTypes() 공개 정적인 메소드

public static GetItemTypes ( int portalId ) : DataTable
portalId int
리턴 System.Data.DataTable

GetItemVersions() 공개 정적인 메소드

public static GetItemVersions ( int itemId, int portalId ) : DataSet
itemId int
portalId int
리턴 System.Data.DataSet

GetItems() 공개 정적인 메소드

public static GetItems ( int parentItemId, int portalId, int relationshipTypeId ) : DataSet
parentItemId int
portalId int
relationshipTypeId int
리턴 System.Data.DataSet

GetItems() 공개 정적인 메소드

public static GetItems ( int parentItemId, int portalId, int relationshipTypeId, int itemTypeId ) : DataSet
parentItemId int
portalId int
relationshipTypeId int
itemTypeId int
리턴 System.Data.DataSet

GetItems() 공개 정적인 메소드

public static GetItems ( int parentItemId, int portalId, int relationshipTypeId, int otherRelationshipTypeId, int itemTypeId ) : DataSet
parentItemId int
portalId int
relationshipTypeId int
otherRelationshipTypeId int
itemTypeId int
리턴 System.Data.DataSet

GetItems() 공개 정적인 메소드

public static GetItems ( int itemTypeId, int portalId ) : IDataReader
itemTypeId int
portalId int
리턴 IDataReader

GetParentItems() 공개 정적인 메소드

public static GetParentItems ( int itemId, int portalId, int relationshipTypeId ) : DataSet
itemId int
portalId int
relationshipTypeId int
리턴 System.Data.DataSet

GetRelatedArticle() 공개 메소드

this is a single article to be displayed as a sub section of a page.
public GetRelatedArticle ( int articlePortalId ) : Article
articlePortalId int Portal in which the related article lives
리턴 Article

GetRelatedArticles() 공개 메소드

Gets all articles related to this article
public GetRelatedArticles ( int articlePortalId ) : Engage.Dnn.Publish.Article[]
articlePortalId int The Portal in which the related articles live
리턴 Engage.Dnn.Publish.Article[]

IsLinkable() 공개 메소드

This method currently verifies that the item is assigned to a display page. Future versions will eliminate this requirement all together but for now this is needed by ItemLink.aspx when linking occurs. This could be used to test other settings to be valid before displaying.
public IsLinkable ( ) : bool
리턴 bool

Item() 보호된 메소드

protected Item ( ) : System
리턴 System

LoadItemVersionSettings() 보호된 메소드

protected LoadItemVersionSettings ( ) : void
리턴 void

LoadRelationships() 보호된 메소드

Loads the ItemRelationships for this Item, clearing any _relationships already in the Item.Relationships collection.
protected LoadRelationships ( ) : void
리턴 void

LoadTags() 보호된 메소드

Loads the ItemTags for this Item, clearing any tags already in the Item.Tags collection.
protected LoadTags ( ) : void
리턴 void

ResolveIds() 보호된 메소드

protected ResolveIds ( int currentModuleId ) : void
currentModuleId int
리턴 void

RunPublishStats() 공개 정적인 메소드

Runs the stored procedure to calculate the views and comment counts for all items.
public static RunPublishStats ( ) : void
리턴 void

Save() 공개 추상적인 메소드

public abstract Save ( int revisingUserId ) : void
revisingUserId int
리턴 void

SaveInfo() 보호된 메소드

protected SaveInfo ( IDbTransaction trans, int revisingId ) : void
trans IDbTransaction
revisingId int
리턴 void

SaveItemVersionSettings() 보호된 메소드

protected SaveItemVersionSettings ( ) : void
리턴 void

SaveItemVersionSettings() 보호된 메소드

protected SaveItemVersionSettings ( IDbTransaction trans ) : void
trans IDbTransaction
리턴 void

SaveRelationships() 보호된 메소드

protected SaveRelationships ( IDbTransaction trans ) : void
trans IDbTransaction
리턴 void

SaveTags() 보호된 메소드

protected SaveTags ( ) : void
리턴 void

SaveTags() 보호된 메소드

if we remove a tag from a version we should decrement the TotalItems for a tag.
protected SaveTags ( IDbTransaction trans ) : void
trans IDbTransaction
리턴 void

UpdateApprovalStatus() 공개 추상적인 메소드

public abstract UpdateApprovalStatus ( ) : void
리턴 void

UpdateApprovalStatus() 보호된 메소드

protected UpdateApprovalStatus ( IDbTransaction trans ) : void
trans IDbTransaction
리턴 void

UpdateDescription() 공개 메소드

public UpdateDescription ( ) : void
리턴 void

UpdateItem() 공개 정적인 메소드

public static UpdateItem ( IDbTransaction trans, int itemId, int moduleId ) : void
trans IDbTransaction
itemId int
moduleId int
리턴 void

UpdateItemVersion() 공개 정적인 메소드

public static UpdateItemVersion ( IDbTransaction trans, int itemId, int itemVersionId, int approvalStatusId, int userId, string approvalComments ) : void
trans IDbTransaction
itemId int
itemVersionId int
approvalStatusId int
userId int
approvalComments string
리턴 void