|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Transactional public interface OrganizationManager
A manager of organization units. Provides methods to create, retrieve, delete or update organization units and to manage categories, identifiers and post related to organizations. Method arguments must be non null, unless the contrary is explicitly specified.
| 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 initialOrg)
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 |
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> categoryIds)
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 |
java.lang.String |
updateOrganization(OrganizationUnitTO organizationUnitTO)
Update the organization unit in the registry. |
| Method Detail |
|---|
void addPost(java.lang.String organizationId,
java.lang.String postId)
throws OrganizationException
organizationId - an OrganizationUnit idpostId - a Post id
OrganizationException - if at least one of the given id doesn't exist in database
java.util.List<PostTO> getPostsByOrganization(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 that are linked to the
given organization
OrganizationException - if an error occurs during posts retrieval
void addCategory(java.lang.String orgId,
java.lang.String categoryId,
java.lang.String categoryValueId)
throws OrganizationException
orgId - 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
void addCategory(java.lang.String orgId,
java.lang.String categoryId,
java.lang.String categoryValue,
java.lang.String categoryDesc)
throws OrganizationException
orgId - 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
void addIdentifier(java.lang.String orgId,
java.lang.String identifierId,
java.lang.String identifierValue,
java.lang.String identifierDesc)
throws OrganizationException
orgId - 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
@Transactional(readOnly=true)
java.util.List<KeyedRefTO> getCategoriesForOrg(java.lang.String orgId)
throws OrganizationException
orgId - an OrganizationUnit id
List of categories ( KeyedRefTO )
OrganizationException - if not organization found for the given id
void removeCategories(java.lang.String orgId,
java.util.List<java.lang.String> categoryIds)
throws OrganizationException
orgId - an OrganizationUnit idcategoryIds - a List of category ids
OrganizationException - if no organization found for the given id
@Transactional(readOnly=true)
java.util.List<KeyedRefTO> getIdentifiersForOrg(java.lang.String orgId)
throws OrganizationException
orgId - an OrganizationUnit id
List of identifiers ( KeyedRefTO )
OrganizationException - if no organization found for the given id
void removeIdentifiers(java.lang.String orgId,
java.util.List<java.lang.String> categoryIds)
throws OrganizationException
orgId - an OrganizationUnit idcategoryIds - a List of identifier ids
OrganizationException - if no organization found for the given id
java.lang.String createOrganization(OrganizationUnitTO organizationUnitTO)
throws OrganizationException
organizationUnitTO - 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 city@Transactional(readOnly=true) java.util.List<OrganizationUnitTO> getAllOrganizations(RequestOptionsTO requestOptionsTO)
requestOptionsTO - sort, pagination and case sensitive parameters, could be null
List of all OrganizationUnitTO in the
registry, couldn't be null, can be empty
@Transactional(readOnly=true)
java.util.List<OrganizationUnitTO> getAllOrgsWithoutMeAndMyChildren(java.lang.String initialOrg)
throws OrganizationException
List of all OrganizationUnitTO in the
registry excluding me and my children
OrganizationException - if an error occurs during organization units retrieval
@Transactional(readOnly=true)
OrganizationUnitTO getOrganization(java.lang.String organizationId)
throws OrganizationException
organizationId - an OrganizationUnit id
OrganizationUnitTO handling data of the
OrganizationUnit that matches the given id
OrganizationException - if no organization found for the given idvoid removeOrganization(java.lang.String organizationId)
organizationId - an OrganizationUnit id
void removePost(java.lang.String organizationId,
java.lang.String postId)
throws OrganizationException
organizationId - an OrganizationUnit idpostId - a Post id
OrganizationException - if no organization found for the given id
@Transactional(readOnly=true)
java.util.List<OrganizationUnitTO> searchOrganization(java.lang.String searchCriteria,
java.util.List<OrganizationSearchProperties> searchedProperties,
RequestOptionsTO requestOptionsTO)
throws OrganizationException
searchCriteria - 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 criteria
java.lang.String updateOrganization(OrganizationUnitTO organizationUnitTO)
throws OrganizationException
organizationUnitTO - 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 organization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||