C# 클래스 Blog.Logic.Core.PostsLogic

상속: IPostsLogic
파일 보기 프로젝트 열기: jsnmgpnty/Blogness2.0

공개 메소드들

메소드 설명
AddPost ( Post post ) : Post
DeletePost ( int postId ) : bool
EntityToDtoPostCleanUp ( DataAccess db, int postId ) : Post
GetMorePopularPosts ( int postsCount, int skip ) : List
GetMorePostsByTag ( string tagName, int skip ) : List
GetMorePostsByUser ( int userId, int skip ) : List
GetMoreRecentPosts ( int postsCount, int skip ) : List
GetPopularPosts ( int postsCount ) : List
GetPost ( int postId ) : Post
GetPostProperties ( Post post ) : Post
GetPostsByCommunity ( int communityId, int threshold = 10, int skip = 10 ) : List
GetPostsByTag ( string tagName ) : List
GetPostsByUser ( int userId ) : List
GetPostsForUser ( int userId, int threshold = 5, int skip = 10 ) : List
GetRecentPosts ( int postsCount ) : List
GetRelatedPosts ( int postId ) : RelatedPosts
PostCleanUp ( Post post ) : Post
PostsLogic ( IPostRepository postRepository, IPostContentRepository postContentRepository, IMediaRepository mediaRepository ) : System
PrepareCommunities ( IEnumerable communities ) : List
PreparePostContents ( IEnumerable contents, int postId ) : List
PrepareTags ( IEnumerable tags ) : List
SearchPosts ( string query, int threshold = 10, int skip = 10 ) : List
UpdatePost ( Post post ) : Post
ValidatePostContents ( IEnumerable contents ) : bool

메소드 상세

AddPost() 공개 메소드

public AddPost ( Post post ) : Post
post Blog.Common.Contracts.Post
리턴 Blog.Common.Contracts.Post

DeletePost() 공개 메소드

public DeletePost ( int postId ) : bool
postId int
리턴 bool

EntityToDtoPostCleanUp() 공개 메소드

public EntityToDtoPostCleanUp ( DataAccess db, int postId ) : Post
db DataAccess
postId int
리턴 Blog.Common.Contracts.Post

GetMorePopularPosts() 공개 메소드

public GetMorePopularPosts ( int postsCount, int skip ) : List
postsCount int
skip int
리턴 List

GetMorePostsByTag() 공개 메소드

public GetMorePostsByTag ( string tagName, int skip ) : List
tagName string
skip int
리턴 List

GetMorePostsByUser() 공개 메소드

public GetMorePostsByUser ( int userId, int skip ) : List
userId int
skip int
리턴 List

GetMoreRecentPosts() 공개 메소드

public GetMoreRecentPosts ( int postsCount, int skip ) : List
postsCount int
skip int
리턴 List

GetPopularPosts() 공개 메소드

public GetPopularPosts ( int postsCount ) : List
postsCount int
리턴 List

GetPost() 공개 메소드

public GetPost ( int postId ) : Post
postId int
리턴 Blog.Common.Contracts.Post

GetPostProperties() 공개 메소드

public GetPostProperties ( Post post ) : Post
post Blog.Common.Contracts.Post
리턴 Blog.Common.Contracts.Post

GetPostsByCommunity() 공개 메소드

public GetPostsByCommunity ( int communityId, int threshold = 10, int skip = 10 ) : List
communityId int
threshold int
skip int
리턴 List

GetPostsByTag() 공개 메소드

public GetPostsByTag ( string tagName ) : List
tagName string
리턴 List

GetPostsByUser() 공개 메소드

public GetPostsByUser ( int userId ) : List
userId int
리턴 List

GetPostsForUser() 공개 메소드

public GetPostsForUser ( int userId, int threshold = 5, int skip = 10 ) : List
userId int
threshold int
skip int
리턴 List

GetRecentPosts() 공개 메소드

public GetRecentPosts ( int postsCount ) : List
postsCount int
리턴 List

GetRelatedPosts() 공개 메소드

public GetRelatedPosts ( int postId ) : RelatedPosts
postId int
리턴 Blog.Common.Contracts.ViewModels.RelatedPosts

PostCleanUp() 공개 메소드

public PostCleanUp ( Post post ) : Post
post Blog.Common.Contracts.Post
리턴 Blog.Common.Contracts.Post

PostsLogic() 공개 메소드

public PostsLogic ( IPostRepository postRepository, IPostContentRepository postContentRepository, IMediaRepository mediaRepository ) : System
postRepository IPostRepository
postContentRepository IPostContentRepository
mediaRepository IMediaRepository
리턴 System

PrepareCommunities() 공개 메소드

public PrepareCommunities ( IEnumerable communities ) : List
communities IEnumerable
리턴 List

PreparePostContents() 공개 메소드

public PreparePostContents ( IEnumerable contents, int postId ) : List
contents IEnumerable
postId int
리턴 List

PrepareTags() 공개 메소드

public PrepareTags ( IEnumerable tags ) : List
tags IEnumerable
리턴 List

SearchPosts() 공개 메소드

public SearchPosts ( string query, int threshold = 10, int skip = 10 ) : List
query string
threshold int
skip int
리턴 List

UpdatePost() 공개 메소드

public UpdatePost ( Post post ) : Post
post Blog.Common.Contracts.Post
리턴 Blog.Common.Contracts.Post

ValidatePostContents() 공개 메소드

public ValidatePostContents ( IEnumerable contents ) : bool
contents IEnumerable
리턴 bool