Package lumis.service.newsletter
Interface ISubscriptionDao
-
- All Known Implementing Classes:
SubscriptionDaoHib
public interface ISubscriptionDao
- Since:
- 4.0.8
- Version:
- $Revision: 16382 $ $Date: 2014-08-01 19:13:32 -0300 (Fri, 01 Aug 2014) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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, Locale locale, ITransaction transaction)
Collection<String>
getCategoriesBySubscriptionId(String subscriptionId, ITransaction transaction)
Collection<String>
getIdsByServiceInstanceAndEmail(String serviceInstanceId, String email, Locale locale, 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, Locale locale, 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, Locale locale, 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
-
-