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
Exception
public List<Post> getPostByAuthor(String group, String author) throws Exception
Exception
public long getPostListSize(SocialFilter socialFilter, String username, String group, boolean admin, boolean needCheck) throws Exception
Exception
public long getUnvalidedPostListSize(String group) throws Exception
Exception
public List<Post> getPost(SocialFilter socialFilter, boolean admin, boolean needCheck, String username, String group, int size, int index) throws Exception
Exception
public Post getPost(Long id, String author, boolean admin, boolean needCheck) throws Exception
Exception
public List<Post> getReplies(String username, boolean admin, boolean needCheck, long mainPost) throws Exception
Exception
protected Post rsToPost(ResultSet rs, String authors, boolean admin, boolean needCheck) throws Exception
Exception
public void deletePost(boolean admin, String author, long id) throws Exception
Exception
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.