|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.dragon.service.organization.OrganizationManagerImpl
public class OrganizationManagerImpl
| Constructor Summary | |
|---|---|
OrganizationManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
addCategory(java.lang.String orgId,
java.lang.String categoryId,
java.lang.String categoryValueId)
Add a category to the given organization. |
void |
addCategory(java.lang.String orgId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
Add a category to the given organization. |
void |
addIdentifier(java.lang.String orgId,
java.lang.String identifierId,
java.lang.String identifierValue,
java.lang.String identifierDesc)
Add an identifier to the given organization. |
void |
addPost(java.lang.String organizationId,
java.lang.String postId)
Add the post matching the given postId to the organization unit matching the given organizationId |
java.lang.String |
createOrganization(OrganizationUnitTO organizationUnitTO)
Add a new organization unit in registry. |
java.util.List<OrganizationUnitTO> |
getAllOrganizations(RequestOptionsTO requestOptionsTO)
Return the list of all organization units in the registry |
java.util.List<OrganizationUnitTO> |
getAllOrgsWithoutMeAndMyChildren(java.lang.String organizationId)
Return the list of all organization units in the registry excluding me and my children |
java.util.List<KeyedRefTO> |
getCategoriesForOrg(java.lang.String orgId)
Return all the categories related to the given organization unit. |
java.util.List<KeyedRefTO> |
getIdentifiersForOrg(java.lang.String orgId)
Return all identifiers related to the given organization unit. |
OrganizationUnitTO |
getOrganization(java.lang.String organizationId)
Retrieve the organization unit matching the given id |
GenericUnifiedDAO<OrganizationUnit,java.lang.String> |
getOrganizationUnitDAO()
|
java.util.List<PostTO> |
getPostsByOrganization(java.lang.String orgId,
RequestOptionsTO requestOptionsTO)
Return the list of all posts that are linked to the given organization |
void |
removeCategories(java.lang.String orgId,
java.util.List<java.lang.String> categoryIds)
Remove a list of categories from the given organization unit. |
void |
removeIdentifiers(java.lang.String orgId,
java.util.List<java.lang.String> identifierIds)
Remove a list of identifiers from the given organization unit. |
void |
removeOrganization(java.lang.String organizationId)
Remove the organization unit matching the given id from the registry. |
void |
removePost(java.lang.String organizationId,
java.lang.String postId)
Remove the post matching the given postId from the list of posts of the organization unit matching the given organizationId. |
java.util.List<OrganizationUnitTO> |
searchOrganization(java.lang.String searchCriteria,
java.util.List<OrganizationSearchProperties> searchedProperties,
RequestOptionsTO requestOptionsTO)
Retrieve a list of organization units matching the given criteria for the given properties |
void |
setOrganizationUnitUnifiedDAO(OrganizationUnitUnifiedDAO organizationUnitUnifiedDAO)
|
void |
setPostDAO(PostDAO postDAO)
|
void |
setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
|
void |
setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
|
java.lang.String |
updateOrganization(OrganizationUnitTO organizationUnitTO)
Update the organization unit in the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrganizationManagerImpl()
| Method Detail |
|---|
public void addPost(java.lang.String organizationId,
java.lang.String postId)
throws OrganizationException
OrganizationManager
addPost in interface OrganizationManagerorganizationId - an OrganizationUnit idpostId - a Post id
OrganizationException - if at least one of the given id doesn't exist in database
public void addCategory(java.lang.String orgId,
java.lang.String categoryId,
java.lang.String categoryValueId)
throws OrganizationException
OrganizationManager
addCategory in interface OrganizationManagerorgId - a OrganizationUnit idcategoryId - a Category idcategoryValueId - an identifier of a CategoryValue containing category
info to add
OrganizationException - if at least one of the given id doesn't exist in database or
if you try to add the same category twice
public void addIdentifier(java.lang.String orgId,
java.lang.String identifierId,
java.lang.String identifierValue,
java.lang.String identifierDesc)
throws OrganizationException
OrganizationManager
addIdentifier in interface OrganizationManagerorgId - an OrganizationUnit ididentifierId - an Identifier system ididentifierValue - an identifier valueidentifierDesc - an identifier description, could be null or empty
OrganizationException - if at least one of the given id doesn't exist in database
public void addCategory(java.lang.String orgId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
throws OrganizationException
OrganizationManager
addCategory in interface OrganizationManagerorgId - a OrganizationUnit idcategoryId - a Category idcategoryValue - a category value (UDDI: categoryValue)categoryDesc - a category description (UDDI: categoryName), could be null or
empty
OrganizationException - if at least one of the given id doesn't exist in database or
if you try to add the same category twice
public java.lang.String createOrganization(OrganizationUnitTO organizationUnitTO)
throws OrganizationException
OrganizationManager
createOrganization in interface OrganizationManagerorganizationUnitTO - the OrganizationUnitTO handling data of the
OrganizationUnit to create
OrganizationUnit
OrganizationException - if you try to create an organization with name/city that
already exists or an organization without name and citypublic java.util.List<OrganizationUnitTO> getAllOrganizations(RequestOptionsTO requestOptionsTO)
OrganizationManager
getAllOrganizations in interface OrganizationManagerrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all OrganizationUnitTO in the
registry, couldn't be null, can be empty
public OrganizationUnitTO getOrganization(java.lang.String organizationId)
throws OrganizationException
OrganizationManager
getOrganization in interface OrganizationManagerorganizationId - an OrganizationUnit id
OrganizationUnitTO handling data of the
OrganizationUnit that matches the given id
OrganizationException - if no organization found for the given id
public java.util.List<OrganizationUnitTO> getAllOrgsWithoutMeAndMyChildren(java.lang.String organizationId)
throws OrganizationException
OrganizationManager
getAllOrgsWithoutMeAndMyChildren in interface OrganizationManagerList of all OrganizationUnitTO in the
registry excluding me and my children
OrganizationException - if an error occurs during organization units retrievalpublic GenericUnifiedDAO<OrganizationUnit,java.lang.String> getOrganizationUnitDAO()
public java.util.List<KeyedRefTO> getCategoriesForOrg(java.lang.String orgId)
throws OrganizationException
OrganizationManager
getCategoriesForOrg in interface OrganizationManagerorgId - an OrganizationUnit id
List of categories ( KeyedRefTO )
OrganizationException - if not organization found for the given id
public void removeCategories(java.lang.String orgId,
java.util.List<java.lang.String> categoryIds)
throws OrganizationException
OrganizationManager
removeCategories in interface OrganizationManagerorgId - an OrganizationUnit idcategoryIds - a List of category ids
OrganizationException - if no organization found for the given id
public java.util.List<KeyedRefTO> getIdentifiersForOrg(java.lang.String orgId)
throws OrganizationException
OrganizationManager
getIdentifiersForOrg in interface OrganizationManagerorgId - an OrganizationUnit id
List of identifiers ( KeyedRefTO )
OrganizationException - if no organization found for the given id
public void removeIdentifiers(java.lang.String orgId,
java.util.List<java.lang.String> identifierIds)
throws OrganizationException
OrganizationManager
removeIdentifiers in interface OrganizationManagerorgId - an OrganizationUnit ididentifierIds - a List of identifier ids
OrganizationException - if no organization found for the given idpublic void removeOrganization(java.lang.String organizationId)
OrganizationManager
removeOrganization in interface OrganizationManagerorganizationId - an OrganizationUnit id
public void removePost(java.lang.String organizationId,
java.lang.String postId)
throws OrganizationException
OrganizationManager
removePost in interface OrganizationManagerorganizationId - an OrganizationUnit idpostId - a Post id
OrganizationException - if no organization found for the given id
public java.util.List<OrganizationUnitTO> searchOrganization(java.lang.String searchCriteria,
java.util.List<OrganizationSearchProperties> searchedProperties,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
OrganizationManager
searchOrganization in interface OrganizationManagersearchCriteria - 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 OrganizationUnitTO matching the given
criteria for the given properties
OrganizationException - if you try to search orgs without specifying search criteriapublic void setOrganizationUnitUnifiedDAO(OrganizationUnitUnifiedDAO organizationUnitUnifiedDAO)
public void setPostDAO(PostDAO postDAO)
public void setTransfertObjectAssembler(TransfertObjectAssembler transfertObjectAssembler)
public java.util.List<PostTO> getPostsByOrganization(java.lang.String orgId,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
OrganizationManager
getPostsByOrganization in interface OrganizationManagerorgId - an OrganizationUnit idrequestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all PostTOs that are linked to the
given organization
OrganizationException - if an error occurs during posts retrieval
public java.lang.String updateOrganization(OrganizationUnitTO organizationUnitTO)
throws OrganizationException
OrganizationManager
updateOrganization in interface OrganizationManagerorganizationUnitTO - the OrganizationUnitTO handling data of the
OrganizationUnit to update
OrganizationException - if an error occurs during organization unit update :
organization to update doesn't exist or have the same name
and city as an other registered organizationpublic void setUniversalUnifiedDAO(UniversalUnifiedDAO universalUnifiedDAO)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||