|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Transactional public interface PostManager
A manager of posts. Provides methods to create, retrieve, delete or update posts
| Method Summary | |
|---|---|
java.lang.String |
createPost(PostTO postTO)
Add a new post in registry. |
java.util.List<PostTO> |
getAllPosts(RequestOptionsTO requestOptionsTO)
Return the list of all posts in the registry |
PostTO |
getPost(java.lang.String postId)
Retrieve the post matching the given id |
java.util.List<PostTO> |
getPostsNotLinkedToOrganization(java.lang.String orgId,
RequestOptionsTO requestOptionsTO)
Return the list of all posts in the registry that aren't linked to the given organization |
void |
removePost(java.lang.String postId)
Remove the post matching the given id from the registry |
java.lang.String |
updatePost(PostTO postTO)
Update the post in the registry. |
| Method Detail |
|---|
java.lang.String createPost(PostTO postTO)
throws OrganizationException
postTO - the PostTO handling data of the Post to add
Post id
OrganizationException - if you try to create a post with no name or a name that
already exist@Transactional(readOnly=true) java.util.List<PostTO> getAllPosts(RequestOptionsTO requestOptionsTO)
requestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all PostTOs in the registry. Not
null, could be empty
@Transactional(readOnly=true)
PostTO getPost(java.lang.String postId)
throws OrganizationException
postId - a Post id
PostTO handling data of the Post that match
the given id
OrganizationException - if you try to retrieve a post that doesn't exist
java.util.List<PostTO> getPostsNotLinkedToOrganization(java.lang.String orgId,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
orgId - an OrganizationUnit idrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all PostTOs in the registry that
aren't linked to the given organization
OrganizationException - if an error occurs during posts retrievalvoid removePost(java.lang.String postId)
postId - a Post id
java.lang.String updatePost(PostTO postTO)
throws OrganizationException
postTO - the PostTO handling data of the Post to update
OrganizationException - if you try to update a post with a name that already exist or
with a null or empty name, or if you try to update a post
that doesn't exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||