C# 클래스 SenseNet.Portal.Wall.WallHelper

파일 보기 프로젝트 열기: maxpavlov/FlexNet 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
GetFriendlyDate ( System.DateTime date ) : string

메소드 상세

GetBigPostMarkupStr() 공개 정적인 메소드

public static GetBigPostMarkupStr ( ) : string
리턴 string

GetCommentControlMarkup() 공개 정적인 메소드

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

GetCommentControlMarkup() 공개 정적인 메소드

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
리턴 string

GetCommentMarkup() 공개 정적인 메소드

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
리턴 string

GetCommentMarkup() 공개 정적인 메소드

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
리턴 string

GetCommentMarkupStr() 공개 정적인 메소드

public static GetCommentMarkupStr ( ) : string
리턴 string

GetCommentSectionMarkupStr() 공개 정적인 메소드

public static GetCommentSectionMarkupStr ( ) : string
리턴 string

GetContentCardMarkup() 공개 정적인 메소드

public static GetContentCardMarkup ( Node sharedContent, string contextPath ) : string
sharedContent Node
contextPath string
리턴 string

GetContentWallMarkup() 공개 정적인 메소드

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
리턴 string

GetContentWallMarkup() 공개 정적인 메소드

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
리턴 string

GetContentWallMarkupStr() 공개 정적인 메소드

public static GetContentWallMarkupStr ( ) : string
리턴 string

GetLikeListItemMarkup() 공개 정적인 메소드

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

GetMarkupString() 공개 정적인 메소드

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

GetPostMarkup() 공개 정적인 메소드

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
리턴 string

GetPostMarkup() 공개 정적인 메소드

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
리턴 string

GetPostMarkup() 공개 정적인 메소드

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
리턴 string

GetSmallPostMarkupStr() 공개 정적인 메소드

public static GetSmallPostMarkupStr ( ) : string
리턴 string

GetWallPostsMarkup() 공개 정적인 메소드

public static GetWallPostsMarkup ( string contextPath, List posts ) : string
contextPath string
posts List
리턴 string

HasLikePermission() 공개 정적인 메소드

public static HasLikePermission ( Node commentNode ) : bool
commentNode Node
리턴 bool

HasWallPermission() 공개 정적인 메소드

public static HasWallPermission ( string workspacePath ) : bool
workspacePath string
리턴 bool

HasWallPermission() 공개 정적인 메소드

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
리턴 bool