Package lumis.service.newsletter
Interface ISubscriptionDao
-
- All Known Implementing Classes:
SubscriptionDaoHib
public interface ISubscriptionDao
- Since:
- 4.0.8
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addOrUpdate(Subscription bean, ITransaction transaction)
boolean
delete(java.lang.String id, ITransaction transaction)
Subscription
get(java.lang.String id, ITransaction transaction)
java.util.Collection<java.lang.String>
getByEmailFormat(java.lang.String serviceInstanceId, int emailFormat, java.util.Locale locale, ITransaction transaction)
java.util.Collection<java.lang.String>
getCategoriesBySubscriptionId(java.lang.String subscriptionId, ITransaction transaction)
java.util.Collection<java.lang.String>
getIdsByServiceInstanceAndEmail(java.lang.String serviceInstanceId, java.lang.String email, java.util.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(java.lang.String id, ITransaction transaction) throws PortalException
- Parameters:
id
-transaction
-- Returns:
- Throws:
PortalException
- Since:
- 4.0.8
-
get
Subscription get(java.lang.String id, ITransaction transaction) throws PortalObjectNotFoundException, PortalException
- Parameters:
id
-transaction
-- Returns:
- Throws:
PortalObjectNotFoundException
PortalException
- Since:
- 4.0.8
-
getByEmailFormat
java.util.Collection<java.lang.String> getByEmailFormat(java.lang.String serviceInstanceId, int emailFormat, java.util.Locale locale, ITransaction transaction) throws PortalException
- Parameters:
serviceInstanceId
-emailFormat
-transaction
-- Returns:
- Throws:
PortalException
- Since:
- 4.0.8
-
getCategoriesBySubscriptionId
java.util.Collection<java.lang.String> getCategoriesBySubscriptionId(java.lang.String subscriptionId, ITransaction transaction) throws PortalException
- Parameters:
subscriptionId
-transaction
-- Returns:
- Throws:
PortalException
- Since:
- 4.0.8
-
getIdsByServiceInstanceAndEmail
java.util.Collection<java.lang.String> getIdsByServiceInstanceAndEmail(java.lang.String serviceInstanceId, java.lang.String email, java.util.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
-
-