public class SocialLocalService extends Object
| Constructor and Description |
|---|
SocialLocalService() |
| Modifier and Type | Method and Description |
|---|---|
Post |
createPost(Post post) |
void |
deletePost(boolean admin,
String author,
long id) |
static SocialLocalService |
getInstance(GlobalContext globalContext) |
Post |
getPost(Long id,
String author,
boolean admin,
boolean needCheck) |
List<Post> |
getPost(SocialFilter socialFilter,
boolean admin,
boolean needCheck,
String username,
String group,
int size,
int index) |
List<Post> |
getPost(String group) |
List<Post> |
getPostByAuthor(String group,
String author) |
long |
getPostListSize(SocialFilter socialFilter,
String username,
String group,
boolean admin,
boolean needCheck) |
List<Post> |
getReplies(String username,
boolean admin,
boolean needCheck,
long mainPost) |
long |
getUnvalidedPostListSize(String group) |
static void |
main(String[] args) |
protected Post |
rsToPost(ResultSet rs,
String authors,
boolean admin,
boolean needCheck) |
void |
updatePost(Post post) |
public static SocialLocalService getInstance(GlobalContext globalContext) throws Exception
Exceptionpublic List<Post> getPostByAuthor(String group, String author) throws Exception
Exceptionpublic long getPostListSize(SocialFilter socialFilter, String username, String group, boolean admin, boolean needCheck) throws Exception
Exceptionpublic long getUnvalidedPostListSize(String group) throws Exception
Exceptionpublic List<Post> getPost(SocialFilter socialFilter, boolean admin, boolean needCheck, String username, String group, int size, int index) throws Exception
Exceptionpublic Post getPost(Long id, String author, boolean admin, boolean needCheck) throws Exception
Exceptionpublic List<Post> getReplies(String username, boolean admin, boolean needCheck, long mainPost) throws Exception
Exceptionprotected Post rsToPost(ResultSet rs, String authors, boolean admin, boolean needCheck) throws Exception
Exceptionpublic void deletePost(boolean admin,
String author,
long id)
throws Exception
Exceptionpublic static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.