lumis.service.newsletter
Interface ISubscriptionDao

Package class diagram package ISubscriptionDao
All Known Implementing Classes:
SubscriptionDaoHib

public interface ISubscriptionDao

Since:
4.0.8

Method Summary
 void addOrUpdate(Subscription bean, ITransaction transaction)
           
 boolean delete(String id, ITransaction transaction)
           
 Subscription get(String id, ITransaction transaction)
           
 Collection<String> getByEmailFormat(String serviceInstanceId, int emailFormat, ITransaction transaction)
           
 Collection<String> getCategoriesBySubscriptionId(String subscriptionId, ITransaction transaction)
           
 Collection<String> getIdsByServiceInstanceAndEmail(String serviceInstanceId, String email, ITransaction transaction)
          Returns the ids of the subscriptions for the given email in the specified service instance id.
 

Method Detail

addOrUpdate

void addOrUpdate(Subscription bean,
                 ITransaction transaction)
                 throws PortalException
Parameters:
bean -
transaction -
Throws:
PortalException
Since:
4.0.8

delete

boolean delete(String id,
               ITransaction transaction)
               throws PortalException
Parameters:
id -
transaction -
Returns:
Throws:
PortalException
Since:
4.0.8

get

Subscription get(String id,
                 ITransaction transaction)
                 throws PortalObjectNotFoundException,
                        PortalException
Parameters:
id -
transaction -
Returns:
Throws:
PortalObjectNotFoundException
PortalException
Since:
4.0.8

getByEmailFormat

Collection<String> getByEmailFormat(String serviceInstanceId,
                                    int emailFormat,
                                    ITransaction transaction)
                                    throws PortalException
Parameters:
serviceInstanceId -
emailFormat -
transaction -
Returns:
Throws:
PortalException
Since:
4.0.8

getCategoriesBySubscriptionId

Collection<String> getCategoriesBySubscriptionId(String subscriptionId,
                                                 ITransaction transaction)
                                                 throws PortalException
Parameters:
subscriptionId -
transaction -
Returns:
Throws:
PortalException
Since:
4.0.8

getIdsByServiceInstanceAndEmail

Collection<String> getIdsByServiceInstanceAndEmail(String serviceInstanceId,
                                                   String email,
                                                   ITransaction transaction)
                                                   throws PortalException
Returns the ids of the subscriptions for the given email in the specified service instance id.

Parameters:
serviceInstanceId - the service instance id.
email - the email.
transaction - the transaction for persistence access.
Returns:
a collection of subscription ids, or an empty collection if none was found.
Throws:
PortalException
Since:
4.0.9


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.