C# Class SenseNet.Portal.Wall.WallHelper

ファイルを表示 Open project: maxpavlov/FlexNet Class Usage Examples

Public Methods

Method Description
GetBigPostMarkupStr ( ) : string
GetCommentControlMarkup ( Node contextNode, int &commentCount, int &likeCount ) : string

Gets markup for a Comment control

GetCommentControlMarkup ( Node contextNode, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo ) : string

Gets markup for a Comment control

GetCommentMarkup ( System.DateTime creationDate, User user, string text, int commentId, LikeInfo likeInfo, Node commentNode ) : string

Gets markup for a comment.

GetCommentMarkup ( string markupStr, System.DateTime creationDate, User user, string text, int commentId, LikeInfo likeInfo, Node commentNode ) : string
GetCommentMarkupStr ( ) : string
GetCommentSectionMarkupStr ( ) : string
GetContentCardMarkup ( Node sharedContent, string contextPath ) : string
GetContentWallMarkup ( Node contextNode, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, string postsMarkup ) : string

Gets markup for a Content Wall

GetContentWallMarkup ( string markupStr, Node contextNode, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, string postsMarkup ) : string
GetContentWallMarkupStr ( ) : string
GetLikeListItemMarkup ( User user ) : string

Gets markup for an item in the list of people who liked an item

GetMarkupString ( string filePath ) : string

Gets Binary of a Content Repository File in a string.

GetPostMarkup ( PostInfo postInfo, string contextPath ) : string

Gets markup for a new post, when there are no comments and likes yet.

GetPostMarkup ( PostInfo postInfo, string contextPath, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, bool drawBoundary ) : string

Gets markup for a Post.

GetPostMarkup ( string markupStr, string commentSectionStr, PostInfo postInfo, string contextPath, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, bool drawBoundary ) : string
GetSmallPostMarkupStr ( ) : string
GetWallPostsMarkup ( string contextPath, List posts ) : string
HasLikePermission ( Node commentNode ) : bool
HasWallPermission ( string workspacePath ) : bool
HasWallPermission ( string workspacePath, Node workspace ) : bool

Checks if current user can interact with wall. Parameter workspace is optional - if omitted, it will be loaded if Posts folder does not exist.

Private Methods

Method Description
GetFriendlyDate ( System.DateTime date ) : string

Method Details

GetBigPostMarkupStr() public static method

public static GetBigPostMarkupStr ( ) : string
return string

GetCommentControlMarkup() public static method

Gets markup for a Comment control
public static GetCommentControlMarkup ( Node contextNode, int &commentCount, int &likeCount ) : string
contextNode Node
commentCount int
likeCount int
return string

GetCommentControlMarkup() public static method

Gets markup for a Comment control
public static GetCommentControlMarkup ( Node contextNode, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo ) : string
contextNode Node
hiddenCommentsMarkup string
commentsMarkup string
commentCount int
likeInfo LikeInfo
return string

GetCommentMarkup() public static method

Gets markup for a comment.
public static GetCommentMarkup ( System.DateTime creationDate, User user, string text, int commentId, LikeInfo likeInfo, Node commentNode ) : string
creationDate System.DateTime Date when the comment was created
user SenseNet.ContentRepository.User User who created the comment.
text string Text of the comment.
commentId int
likeInfo LikeInfo
commentNode Node
return string

GetCommentMarkup() public static method

public static GetCommentMarkup ( string markupStr, System.DateTime creationDate, User user, string text, int commentId, LikeInfo likeInfo, Node commentNode ) : string
markupStr string
creationDate System.DateTime
user SenseNet.ContentRepository.User
text string
commentId int
likeInfo LikeInfo
commentNode Node
return string

GetCommentMarkupStr() public static method

public static GetCommentMarkupStr ( ) : string
return string

GetCommentSectionMarkupStr() public static method

public static GetCommentSectionMarkupStr ( ) : string
return string

GetContentCardMarkup() public static method

public static GetContentCardMarkup ( Node sharedContent, string contextPath ) : string
sharedContent Node
contextPath string
return string

GetContentWallMarkup() public static method

Gets markup for a Content Wall
public static GetContentWallMarkup ( Node contextNode, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, string postsMarkup ) : string
contextNode Node
hiddenCommentsMarkup string
commentsMarkup string
commentCount int
likeInfo LikeInfo
postsMarkup string
return string

GetContentWallMarkup() public static method

public static GetContentWallMarkup ( string markupStr, Node contextNode, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, string postsMarkup ) : string
markupStr string
contextNode Node
hiddenCommentsMarkup string
commentsMarkup string
commentCount int
likeInfo LikeInfo
postsMarkup string
return string

GetContentWallMarkupStr() public static method

public static GetContentWallMarkupStr ( ) : string
return string

GetLikeListItemMarkup() public static method

Gets markup for an item in the list of people who liked an item
public static GetLikeListItemMarkup ( User user ) : string
user SenseNet.ContentRepository.User
return string

GetMarkupString() public static method

Gets Binary of a Content Repository File in a string.
public static GetMarkupString ( string filePath ) : string
filePath string
return string

GetPostMarkup() public static method

Gets markup for a new post, when there are no comments and likes yet.
public static GetPostMarkup ( PostInfo postInfo, string contextPath ) : string
postInfo PostInfo
contextPath string
return string

GetPostMarkup() public static method

Gets markup for a Post.
public static GetPostMarkup ( PostInfo postInfo, string contextPath, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, bool drawBoundary ) : string
postInfo PostInfo
contextPath string
hiddenCommentsMarkup string
commentsMarkup string
commentCount int
likeInfo LikeInfo
drawBoundary bool
return string

GetPostMarkup() public static method

public static GetPostMarkup ( string markupStr, string commentSectionStr, PostInfo postInfo, string contextPath, string hiddenCommentsMarkup, string commentsMarkup, int commentCount, LikeInfo likeInfo, bool drawBoundary ) : string
markupStr string
commentSectionStr string
postInfo PostInfo
contextPath string
hiddenCommentsMarkup string
commentsMarkup string
commentCount int
likeInfo LikeInfo
drawBoundary bool
return string

GetSmallPostMarkupStr() public static method

public static GetSmallPostMarkupStr ( ) : string
return string

GetWallPostsMarkup() public static method

public static GetWallPostsMarkup ( string contextPath, List posts ) : string
contextPath string
posts List
return string

HasLikePermission() public static method

public static HasLikePermission ( Node commentNode ) : bool
commentNode Node
return bool

HasWallPermission() public static method

public static HasWallPermission ( string workspacePath ) : bool
workspacePath string
return bool

HasWallPermission() public static method

Checks if current user can interact with wall. Parameter workspace is optional - if omitted, it will be loaded if Posts folder does not exist.
public static HasWallPermission ( string workspacePath, Node workspace ) : bool
workspacePath string
workspace Node
return bool