org.ow2.dragon.api.service.organization
Interface PartyManager

All Known Implementing Classes:
PartyManagerImpl

@Transactional
public interface PartyManager

A manager of parties. Provides methods to create, retrieve, delete or update parties. Method arguments must be non null, unless the contrary is explicitly specified.

Author:
ambarthe, ofabre - eBM WebSourcing

Method Summary
 java.util.List<PartyTO> getAllParties(RequestOptionsTO requestOptionsTO)
          Return the list of all parties in the registry, persons and organization units
 PartyTO getParty(java.lang.String partyId)
          Retrieve a party matching the given ID.
 

Method Detail

getAllParties

@Transactional(readOnly=true)
java.util.List<PartyTO> getAllParties(RequestOptionsTO requestOptionsTO)
Return the list of all parties in the registry, persons and organization units

Parameters:
requestOptionsTO - sort, pagination and case sensitive parameters, could be null
Returns:
the List of all parties in the registry, PersonTO s and OrganizationUnitTOs. Can't be null, could be empty

getParty

@Transactional(readOnly=true)
PartyTO getParty(java.lang.String partyId)
                 throws OrganizationException
Retrieve a party matching the given ID. Could be a person or an organization unit

Parameters:
partyId - a party ID
Returns:
a party matching the given ID. Can be a PersonTO or an OrganizationUnitTO. Can't be null, could be empty
Throws:
OrganizationException - if no party found for the given id


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.