Class SubscriptionDao
- java.lang.Object
-
- org.silverpeas.core.subscription.service.SubscriptionDao
-
@Repository public class SubscriptionDao extends Object
- Author:
- silveryocha
-
-
Constructor Summary
Constructors Constructor Description SubscriptionDao()
-
Method Summary
-
-
-
Method Detail
-
add
public void add(Connection con, Subscription subscription) throws SQLException, AssertionError
Method declaration- Parameters:
con
-subscription
-- Throws:
SQLException
AssertionError
-
remove
public void remove(Connection con, Subscription subscription) throws SQLException
Method declaration- Parameters:
con
-subscription
-- Throws:
SQLException
-
removeBySubscriber
public void removeBySubscriber(Connection con, SubscriptionSubscriber subscriber) throws SQLException
Method declaration- Parameters:
con
-subscriber
-- Throws:
SQLException
-
removeByResource
public void removeByResource(Connection con, SubscriptionResource resource) throws SQLException
Method declaration- Parameters:
con
-- Throws:
SQLException
-
removeByInstanceId
public void removeByInstanceId(Connection con, String instanceId) throws SQLException
- Throws:
SQLException
-
existsSubscription
public boolean existsSubscription(Connection con, Subscription subscription) throws SQLException
Method declaration- Parameters:
con
-subscription
-- Returns:
- Throws:
SQLException
-
getSubscriptionsBySubscriber
public SubscriptionList getSubscriptionsBySubscriber(Connection con, SubscriptionSubscriber subscriber) throws SQLException
Method declaration- Parameters:
con
-subscriber
-- Returns:
- Throws:
SQLException
-
getSubscriptionsBySubscriberAndComponent
public SubscriptionList getSubscriptionsBySubscriberAndComponent(Connection con, SubscriptionSubscriber subscriber, String instanceId) throws SQLException
Method declaration- Parameters:
con
-subscriber
-- Returns:
- Throws:
SQLException
-
getSubscriptionsByResource
public SubscriptionList getSubscriptionsByResource(Connection con, SubscriptionResource resource, SubscriptionMethod method) throws SQLException
Method declaration- Parameters:
con
-resource
-method
-- Returns:
- Throws:
SQLException
-
getSubscriptionsBySubscriberAndResource
public SubscriptionList getSubscriptionsBySubscriberAndResource(Connection con, SubscriptionSubscriber subscriber, SubscriptionResource resource) throws SQLException
Method declaration- Parameters:
con
-subscriber
-resource
-- Returns:
- Throws:
SQLException
-
getSubscribers
public SubscriptionSubscriberList getSubscribers(Connection con, SubscriptionResource resource, SubscriptionMethod method) throws SQLException
Method declaration- Parameters:
con
-resource
-method
-- Returns:
- Throws:
SQLException
-
getSubscribers
public SubscriptionSubscriberList getSubscribers(Connection con, Collection<? extends SubscriptionResource> resources, SubscriptionMethod method) throws SQLException
Method declaration- Parameters:
con
-resources
-method
-- Returns:
- Throws:
SQLException
-
-