net.sf.oness.party.model.facade
Interface PartyFacadeDelegate

All Known Implementing Classes:
PartySpringFacadeDelegate

public interface PartyFacadeDelegate

Facade that models the service of party management

Version:
$Revision: 1.13 $
Author:
Carlos Sanchez

Method Summary
 ContactInfo createContactInfo(ContactInfo contactInfo)
          Create a contact info
 Party createParty(Party party)
          Create a party, calls createParty(party, true)
 Party createParty(Party party, boolean ignoreExisting)
          Create a party If ignoreExisting is false and a similar Party already exists then a ExistingInstanceException will be thrown with the similar parties
 void deleteContactInfo(java.lang.Long id)
          Delete a contact info
 void deleteParty(java.lang.Long id)
          Delete a party
 net.sf.oness.common.model.util.PaginatedList findContactInfo(ContactInfo contactInfo, int firstElement, int maxElements)
          Retrieves a list of contact infos, filtering with properties on a contact info object
 ContactInfo findContactInfo(java.lang.Long id)
          View a contact info
 Party findParty(java.lang.Long id)
          Retrieve a party without related entities.
 net.sf.oness.common.model.util.PaginatedList findParty(Party party, int firstElement, int maxElements)
          Retrieves a list of parties, filtering with properties on a party object
 Party findPartyWithDetails(java.lang.Long id)
          Retrieve a party and all related entities by its identifier.
 ContactInfo updateContactInfo(ContactInfo contactInfo)
          Update a contact info
 Party updateParty(Party party)
          Update a party
 

Method Detail

createParty

public Party createParty(Party party)
                  throws net.sf.oness.common.model.exceptions.ExistingInstanceException
Create a party, calls createParty(party, true)

Parameters:
party -
Returns:
The party created
Throws:
org.springframework.dao.DataAccessException
net.sf.oness.common.model.exceptions.ExistingInstanceException

createParty

public Party createParty(Party party,
                         boolean ignoreExisting)
                  throws net.sf.oness.common.model.exceptions.ExistingInstanceException
Create a party If ignoreExisting is false and a similar Party already exists then a ExistingInstanceException will be thrown with the similar parties

Parameters:
party -
ignoreExisting -
Returns:
The party created
Throws:
net.sf.oness.common.model.exceptions.ExistingInstanceException
org.springframework.dao.DataAccessException

updateParty

public Party updateParty(Party party)
Update a party

Parameters:
party -
Returns:
The party updated
Throws:
org.springframework.dao.DataAccessException

findParty

public net.sf.oness.common.model.util.PaginatedList findParty(Party party,
                                                              int firstElement,
                                                              int maxElements)
Retrieves a list of parties, filtering with properties on a party object

Parameters:
party - properties to filter on
firstElement -
maxElements -
Returns:
List of Party objects
Throws:
org.springframework.dao.DataAccessException

findParty

public Party findParty(java.lang.Long id)
Retrieve a party without related entities.

Parameters:
id - Party identifier
Returns:
The party
Throws:
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessException

findPartyWithDetails

public Party findPartyWithDetails(java.lang.Long id)
Retrieve a party and all related entities by its identifier.

Parameters:
id - Party identifier
Returns:
The party
Throws:
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessException

deleteParty

public void deleteParty(java.lang.Long id)
Delete a party

Parameters:
id - Party identifier
Throws:
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessException

createContactInfo

public ContactInfo createContactInfo(ContactInfo contactInfo)
Create a contact info

Parameters:
contactInfo -
Returns:
the contact info created
Throws:
org.springframework.dao.DataAccessException

updateContactInfo

public ContactInfo updateContactInfo(ContactInfo contactInfo)
Update a contact info

Parameters:
contactInfo -
Returns:
The contact info updated
Throws:
org.springframework.dao.DataAccessException

findContactInfo

public net.sf.oness.common.model.util.PaginatedList findContactInfo(ContactInfo contactInfo,
                                                                    int firstElement,
                                                                    int maxElements)
Retrieves a list of contact infos, filtering with properties on a contact info object

Parameters:
contactInfo - properties to filter on
firstElement -
maxElements -
Returns:
List of ContactInfo objects
Throws:
org.springframework.dao.DataAccessException

findContactInfo

public ContactInfo findContactInfo(java.lang.Long id)
View a contact info

Parameters:
id - Contact info identifier
Returns:
The contact info
Throws:
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessException

deleteContactInfo

public void deleteContactInfo(java.lang.Long id)
Delete a contact info

Parameters:
id - Contact info identifier
Throws:
org.springframework.dao.DataRetrievalFailureException
org.springframework.dao.DataAccessException


Copyright © 2003-2005 ONess Project. All Rights Reserved.