Package org.javlo.social
Class SocialLocalService
- java.lang.Object
- 
- org.javlo.social.SocialLocalService
 
- 
 public class SocialLocalService extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDATABASE_NAME
 - 
Constructor SummaryConstructors Constructor Description SocialLocalService()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long__getPostListSize(SocialFilter socialFilter, String username, String group, boolean admin, boolean needCheck)PostcreatePost(Post post)PostcreatePost(Post post, Connection conn)voiddeletePost(boolean admin, String author, long id)static SocialLocalServicegetInstance(GlobalContext globalContext)PostgetPost(Long id, String author, boolean admin, boolean needCheck)List<Post>getPost(String group)List<Post>getPost(SocialFilter socialFilter, boolean admin, boolean needCheck, String username, String group, int size, int index)List<Post>getPostByAuthor(String group, String author)longgetPostListSize(String group)longgetPostListSize(SocialFilter socialFilter, String username, String group, boolean admin, boolean needCheck)List<Post>getReplies(SocialFilter socialFilter, String username, boolean admin, boolean needCheck, long mainPost)SocialStatgetSocialStat(int year)SocialStatgetSocialStat(LocalDate date)longgetUnvalidedPostListSize(String group)static voidmain(String[] args)protected PostrsToPost(Connection conn, ResultSet rs, String authors, boolean admin, boolean needCheck)voidupdatePost(Post post)
 
- 
- 
- 
Field Detail- 
DATABASE_NAMEpublic static final String DATABASE_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getInstancepublic static SocialLocalService getInstance(GlobalContext globalContext) throws Exception - Throws:
- Exception
 
 - 
getPostByAuthorpublic List<Post> getPostByAuthor(String group, String author) throws Exception - Throws:
- Exception
 
 - 
getSocialStatpublic SocialStat getSocialStat(LocalDate date) throws Exception - Throws:
- Exception
 
 - 
getSocialStatpublic SocialStat getSocialStat(int year) throws Exception - Throws:
- Exception
 
 - 
__getPostListSizepublic long __getPostListSize(SocialFilter socialFilter, String username, String group, boolean admin, boolean needCheck) throws Exception - Throws:
- Exception
 
 - 
getPostListSizepublic long getPostListSize(SocialFilter socialFilter, String username, String group, boolean admin, boolean needCheck) throws Exception - Throws:
- Exception
 
 - 
getUnvalidedPostListSizepublic long getUnvalidedPostListSize(String group) throws Exception - Throws:
- Exception
 
 - 
getPostpublic List<Post> getPost(SocialFilter socialFilter, boolean admin, boolean needCheck, String username, String group, int size, int index) throws Exception - Throws:
- Exception
 
 - 
getPostpublic Post getPost(Long id, String author, boolean admin, boolean needCheck) throws Exception - Throws:
- Exception
 
 - 
getRepliespublic List<Post> getReplies(SocialFilter socialFilter, String username, boolean admin, boolean needCheck, long mainPost) throws Exception - Throws:
- Exception
 
 - 
rsToPostprotected Post rsToPost(Connection conn, ResultSet rs, String authors, boolean admin, boolean needCheck) throws Exception - Throws:
- Exception
 
 - 
createPostpublic Post createPost(Post post, Connection conn) throws Exception - Throws:
- Exception
 
 - 
deletePostpublic void deletePost(boolean admin, String author, long id) throws Exception- Throws:
- Exception
 
 - 
mainpublic static void main(String[] args) 
 
- 
 
-