|
||||||||||
| 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 |
java.util.List<PostTO> |
getPostsNotLinkedToPersons(RequestOptionsTO requestOptionsTO)
Return the list of all posts in the registry that aren't linked to a person |
void |
removePost(java.lang.String postId)
Remove the post matching the given id from the registry |
java.util.List<PostTO> |
searchPost(java.lang.String searchCriteria,
java.util.List<PostSearchProperties> searchedProperties,
RequestOptionsTO requestOptionsTO)
Retrieve a list of posts matching the given criteria for the given properties |
void |
setOrganizationUnitDAO(OrganizationUnitDAO organizationUnitDAO)
|
void |
setPersonUnifiedDAO(GenericUnifiedDAO<Person,java.lang.String> personUnifiedDAO)
|
void |
setPostDAO(GenericUnifiedDAO<Post,java.lang.String> 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 exist
public java.util.List<PostTO> searchPost(java.lang.String searchCriteria,
java.util.List<PostSearchProperties> searchedProperties,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
PostManager
searchPost in interface PostManagersearchCriteria - the search criteria (a String containing criteria separated
with whitespaces), mustn't be emptysearchedProperties - the searched properties, mustn't be emptyrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of PostTO matching the given criteria for
the given properties
OrganizationException - if you try to search posts without specifying search criteriapublic 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 retrieval
public java.util.List<PostTO> getPostsNotLinkedToPersons(RequestOptionsTO requestOptionsTO)
throws OrganizationException
PostManager
getPostsNotLinkedToPersons in interface PostManagerrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all PostTOs in the registry that
aren't linked to a person
OrganizationException - if an error occurs during posts retrieval
public void removePost(java.lang.String postId)
throws OrganizationException
PostManager
removePost in interface PostManagerpostId - a Post id
OrganizationException - if no post found for the given idpublic void setOrganizationUnitDAO(OrganizationUnitDAO organizationUnitDAO)
public void setPostDAO(GenericUnifiedDAO<Post,java.lang.String> 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 existpublic void setPersonUnifiedDAO(GenericUnifiedDAO<Person,java.lang.String> personUnifiedDAO)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||