C# Class SenseNet.Portal.Wall.WallHelper

Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
GetFriendlyDate ( System.DateTime date ) : string

Method Details

GetBigPostMarkupStr() public static méthode

public static GetBigPostMarkupStr ( ) : string
Résultat string

GetCommentControlMarkup() public static méthode

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

GetCommentControlMarkup() public static méthode

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
Résultat string

GetCommentMarkup() public static méthode

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
Résultat string

GetCommentMarkup() public static méthode

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
Résultat string

GetCommentMarkupStr() public static méthode

public static GetCommentMarkupStr ( ) : string
Résultat string

GetCommentSectionMarkupStr() public static méthode

public static GetCommentSectionMarkupStr ( ) : string
Résultat string

GetContentCardMarkup() public static méthode

public static GetContentCardMarkup ( Node sharedContent, string contextPath ) : string
sharedContent Node
contextPath string
Résultat string

GetContentWallMarkup() public static méthode

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
Résultat string

GetContentWallMarkup() public static méthode

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
Résultat string

GetContentWallMarkupStr() public static méthode

public static GetContentWallMarkupStr ( ) : string
Résultat string

GetLikeListItemMarkup() public static méthode

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

GetMarkupString() public static méthode

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

GetPostMarkup() public static méthode

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
Résultat string

GetPostMarkup() public static méthode

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
Résultat string

GetPostMarkup() public static méthode

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
Résultat string

GetSmallPostMarkupStr() public static méthode

public static GetSmallPostMarkupStr ( ) : string
Résultat string

GetWallPostsMarkup() public static méthode

public static GetWallPostsMarkup ( string contextPath, List posts ) : string
contextPath string
posts List
Résultat string

HasLikePermission() public static méthode

public static HasLikePermission ( Node commentNode ) : bool
commentNode Node
Résultat bool

HasWallPermission() public static méthode

public static HasWallPermission ( string workspacePath ) : bool
workspacePath string
Résultat bool

HasWallPermission() public static méthode

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
Résultat bool