• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IJournalController

Namespace: DotNetNuke.Services.Journal
Assembly: DotNetNuke.dll
Syntax
public interface IJournalController

Methods

| Improve this Doc View Source

DeleteComment(Int32, Int32)

Delete a comment by id.

Declaration
void DeleteComment(int journalId, int commentId)
Parameters
Type Name Description
System.Int32 journalId

Id of journal.

System.Int32 commentId

Id of comment.

| Improve this Doc View Source

DeleteJournalItem(Int32, Int32, Int32)

Hard delete journal item by journal id.

Declaration
void DeleteJournalItem(int portalId, int userId, int journalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 userId

Id of current user.

System.Int32 journalId

Id of the journal want to delete.

| Improve this Doc View Source

DeleteJournalItemByGroupId(Int32, Int32)

Hard delete journal items based on group Id.

Declaration
void DeleteJournalItemByGroupId(int portalId, int groupId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 groupId

Id of social group.

| Improve this Doc View Source

DeleteJournalItemByKey(Int32, String)

Hard delete journal item by object key.

Declaration
void DeleteJournalItemByKey(int portalId, string objectKey)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.String objectKey

Object key.

| Improve this Doc View Source

DisableComments(Int32, Int32)

Disable comment on a journal item.

Declaration
void DisableComments(int portalId, int journalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 journalId

Id of the journal want to disable comment.

| Improve this Doc View Source

EnableComments(Int32, Int32)

Enable comment on a journal item.

Declaration
void EnableComments(int portalId, int journalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 journalId

Id of the journal want to enable comment.

| Improve this Doc View Source

GetComment(Int32)

Get comment info object by comment id.

Declaration
CommentInfo GetComment(int commentId)
Parameters
Type Name Description
System.Int32 commentId

Id of the comment.

Returns
Type Description
CommentInfo

Comment info object.

| Improve this Doc View Source

GetCommentsByJournalIds(List<Int32>)

Get all comments in the given journal items.

Declaration
IList<CommentInfo> GetCommentsByJournalIds(List<int> journalIdList)
Parameters
Type Name Description
List<System.Int32> journalIdList

Id list of journal items.

Returns
Type Description
IList<CommentInfo>

CommentInfo object list.

| Improve this Doc View Source

GetJournalItem(Int32, Int32, Int32, Boolean, Boolean, Boolean)

Get journal info.

Declaration
JournalItem GetJournalItem(int portalId, int userId, int journalId, bool includeAllItems, bool isDeleted, bool securityCheck)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 userId

Id of current user, if securityCheck set as True, will check whether this user has permission to view the journal.

System.Int32 journalId

Id of Journal.

System.Boolean includeAllItems

Whether include deleted items.

System.Boolean isDeleted

Whether get deleted item.

System.Boolean securityCheck

Whether check current user has permission to get journal.

Returns
Type Description
JournalItem

Journal Object.

| Improve this Doc View Source

GetJournalItem(Int32, Int32, Int32, Boolean, Boolean)

Get journal info.

Declaration
JournalItem GetJournalItem(int portalId, int userId, int journalId, bool includeAllItems, bool isDeleted)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 userId

Id of current user, if securityCheck set as True, will check whether this user has permission to view the journal.

System.Int32 journalId

Id of Journal.

System.Boolean includeAllItems

Whether include deleted items.

System.Boolean isDeleted

Whether get deleted item.

Returns
Type Description
JournalItem

Journal Object.

| Improve this Doc View Source

GetJournalItem(Int32, Int32, Int32, Boolean)

Get journal info.

Declaration
JournalItem GetJournalItem(int portalId, int userId, int journalId, bool includeAllItems)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 userId

Id of current user, if securityCheck set as True, will check whether this user has permission to view the journal.

System.Int32 journalId

Id of Journal.

System.Boolean includeAllItems

Whether include deleted items.

Returns
Type Description
JournalItem

Journal Object.

| Improve this Doc View Source

GetJournalItem(Int32, Int32, Int32)

Get journal info.

Declaration
JournalItem GetJournalItem(int portalId, int userId, int journalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 userId

Id of current user, if securityCheck set as True, will check whether this user has permission to view the journal.

System.Int32 journalId

Id of Journal.

Returns
Type Description
JournalItem

Journal Object.

| Improve this Doc View Source

GetJournalItemByKey(Int32, String, Boolean, Boolean)

Get journal item by object key.

Declaration
JournalItem GetJournalItemByKey(int portalId, string objectKey, bool includeAllItems, bool isDeleted)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.String objectKey

The object key.

System.Boolean includeAllItems

Whether include deleted items.

System.Boolean isDeleted

Whether get deleted item.

Returns
Type Description
JournalItem

Journal Object.

| Improve this Doc View Source

GetJournalItemByKey(Int32, String, Boolean)

Get journal item by object key.

Declaration
JournalItem GetJournalItemByKey(int portalId, string objectKey, bool includeAllItems)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.String objectKey

The object key.

System.Boolean includeAllItems

Whether include deleted items.

Returns
Type Description
JournalItem

Jornal Object.

| Improve this Doc View Source

GetJournalItemByKey(Int32, String)

Get journal item by object key.

Declaration
JournalItem GetJournalItemByKey(int portalId, string objectKey)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.String objectKey

The object key.

Returns
Type Description
JournalItem

Journal object.

| Improve this Doc View Source

GetJournalType(String)

Get journal type by name.

Declaration
JournalTypeInfo GetJournalType(string journalType)
Parameters
Type Name Description
System.String journalType

type name.

Returns
Type Description
JournalTypeInfo

Journal type object.

| Improve this Doc View Source

GetJournalTypeById(Int32)

Get journal type by type id.

Declaration
JournalTypeInfo GetJournalTypeById(int journalTypeId)
Parameters
Type Name Description
System.Int32 journalTypeId

Type id.

Returns
Type Description
JournalTypeInfo

Journal type object.

| Improve this Doc View Source

GetJournalTypes(Int32)

Get all journal types in portal.

Declaration
IEnumerable<JournalTypeInfo> GetJournalTypes(int portalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

Returns
Type Description
IEnumerable<JournalTypeInfo>

Enumerable JournalTypeInfo object list.

| Improve this Doc View Source

HideComments(Int32, Int32)

Hide comments on a journal item.

Declaration
void HideComments(int portalId, int journalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 journalId

Id of the journal want to hide comments.

| Improve this Doc View Source

LikeComment(Int32, Int32, Int32, String)

Save a like on comment.

Declaration
void LikeComment(int journalId, int commentId, int userId, string displayName)
Parameters
Type Name Description
System.Int32 journalId

Id of journal.

System.Int32 commentId

Id of comment.

System.Int32 userId

Id of current user.

System.String displayName

User's display name.

| Improve this Doc View Source

LikeJournalItem(Int32, Int32, String)

Save a like on journal item.

Declaration
void LikeJournalItem(int journalId, int userId, string displayName)
Parameters
Type Name Description
System.Int32 journalId

Id of journal item.

System.Int32 userId

Id of current user.

System.String displayName

User's display name.

| Improve this Doc View Source

SaveComment(CommentInfo)

Save comment info object into database.

Declaration
void SaveComment(CommentInfo ci)
Parameters
Type Name Description
CommentInfo ci

Comment info object.

| Improve this Doc View Source

SaveJourmalFile(ModuleInfo, UserInfo, String, Stream)

Save an uploaded file.

Declaration
IFileInfo SaveJourmalFile(ModuleInfo module, UserInfo userInfo, string fileName, Stream fileContent)
Parameters
Type Name Description
ModuleInfo module

Module where the file is uploaded.

UserInfo userInfo

User who uploads the file.

System.String fileName

File Name.

Stream fileContent

File content.

Returns
Type Description
IFileInfo

A FileInfo object corresponding to the saved file.

| Improve this Doc View Source

SaveJournalItem(JournalItem, ModuleInfo)

Save the journal object into database.

Declaration
void SaveJournalItem(JournalItem journalItem, ModuleInfo module)
Parameters
Type Name Description
JournalItem journalItem

Journal object.

ModuleInfo module

The module info of journal item context.

| Improve this Doc View Source

SaveJournalItem(JournalItem, Int32)

Declaration
void SaveJournalItem(JournalItem journalItem, int tabId)
Parameters
Type Name Description
JournalItem journalItem
System.Int32 tabId
| Improve this Doc View Source

ShowComments(Int32, Int32)

Show comments on a journal item.

Declaration
void ShowComments(int portalId, int journalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 journalId

Id of the journal want to show comment.

| Improve this Doc View Source

SoftDeleteJournalItem(Int32, Int32, Int32)

Soft delete journal item by journal id.

Declaration
void SoftDeleteJournalItem(int portalId, int userId, int journalId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 userId

Id of current user.

System.Int32 journalId

Id of the journal want to delete.

| Improve this Doc View Source

SoftDeleteJournalItemByGroupId(Int32, Int32)

Soft delete journal items based on group Id.

Declaration
void SoftDeleteJournalItemByGroupId(int portalId, int groupId)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.Int32 groupId

Id of social group.

| Improve this Doc View Source

SoftDeleteJournalItemByKey(Int32, String)

Soft delete journal item by object key.

Declaration
void SoftDeleteJournalItemByKey(int portalId, string objectKey)
Parameters
Type Name Description
System.Int32 portalId

Id of portal.

System.String objectKey

Object key.

| Improve this Doc View Source

UpdateJournalItem(JournalItem, ModuleInfo)

Update the journal info in database.

Declaration
void UpdateJournalItem(JournalItem journalItem, ModuleInfo module)
Parameters
Type Name Description
JournalItem journalItem

Journal object.

ModuleInfo module

The module info of journal item context.

| Improve this Doc View Source

UpdateJournalItem(JournalItem, Int32)

Declaration
void UpdateJournalItem(JournalItem journalItem, int tabId)
Parameters
Type Name Description
JournalItem journalItem
System.Int32 tabId

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS