|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.service.organization.PostManagerImpl
public class PostManagerImpl
| Constructor Summary | |
|---|---|
PostManagerImpl()
|
|
| 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 |
void |
setOrganizationUnitDAO(OrganizationUnitDAO organizationUnitDAO)
|
void |
setPostDAO(PostDAO postDAO)
|
void |
setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
|
java.lang.String |
updatePost(PostTO postTO)
Update the post in the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PostManagerImpl()
| Method Detail |
|---|
public java.lang.String createPost(PostTO postTO)
throws OrganizationException
PostManager
createPost in interface PostManagerpostTO - 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 existpublic java.util.List<PostTO> getAllPosts(RequestOptionsTO requestOptionsTO)
PostManager
getAllPosts in interface PostManagerrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all PostTOs in the registry. Not
null, could be empty
public PostTO getPost(java.lang.String postId)
throws OrganizationException
PostManager
getPost in interface PostManagerpostId - 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
public java.util.List<PostTO> getPostsNotLinkedToOrganization(java.lang.String orgId,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
PostManager
getPostsNotLinkedToOrganization in interface PostManagerorgId - 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 retrievalpublic void removePost(java.lang.String postId)
PostManager
removePost in interface PostManagerpostId - a Post idpublic void setOrganizationUnitDAO(OrganizationUnitDAO organizationUnitDAO)
public void setPostDAO(PostDAO postDAO)
public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
public java.lang.String updatePost(PostTO postTO)
throws OrganizationException
PostManager
updatePost in interface PostManagerpostTO - 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 | |||||||||