BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.manager.impl.SubscriptionManager Class Reference
Inheritance diagram for eu.baltrad.dex.net.manager.impl.SubscriptionManager:
eu.baltrad.dex.net.manager.ISubscriptionManager

Public Member Functions

 SubscriptionManager ()
 
void setJdbcTemplate (JdbcOperations jdbcTemplate)
 
void setAccountManager (IUserManager accountManager)
 
void setDataSourceManager (IDataSourceManager dataSourceManager)
 
long count (String type)
 
Subscription load (int id)
 
List< Subscriptionload (String type)
 
List< Subscriptionload (String type, String operator)
 
Subscription load (String type, String user, String dataSource)
 
int store (Subscription subscription) throws Exception
 
void update (Subscription s) throws Exception
 
void delete (int id) throws Exception
 

Detailed Description

Subscription manager implementing subscription handling functionality.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.0
Since
1.0

Constructor & Destructor Documentation

◆ SubscriptionManager()

eu.baltrad.dex.net.manager.impl.SubscriptionManager.SubscriptionManager ( )
inline

Constructor.

Member Function Documentation

◆ count()

long eu.baltrad.dex.net.manager.impl.SubscriptionManager.count ( String type)
inline

Count subscriptions of a given type.

Parameters
typeSubscription type
Returns
Number of subscriptions of a given type

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.

◆ delete()

void eu.baltrad.dex.net.manager.impl.SubscriptionManager.delete ( int id) throws Exception
inline

Delete subscription by id.

Parameters
idSubscription id
Exceptions
Exception

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.

◆ load() [1/4]

Subscription eu.baltrad.dex.net.manager.impl.SubscriptionManager.load ( int id)
inline

Load subscription.

Parameters
idSubscription id
Returns
Subscription matching given id

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.

◆ load() [2/4]

List< Subscription > eu.baltrad.dex.net.manager.impl.SubscriptionManager.load ( String type)
inline

Load subscriptions.

Parameters
typeSubscription type
Returns
List of subscriptions matching given type

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.

◆ load() [3/4]

List< Subscription > eu.baltrad.dex.net.manager.impl.SubscriptionManager.load ( String type,
String operator )
inline

Load subscriptions.

Parameters
typeSubscription type
operatorOperator name
Returns
List of subscriptions matching given parameters

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.

◆ load() [4/4]

Subscription eu.baltrad.dex.net.manager.impl.SubscriptionManager.load ( String type,
String user,
String dataSource )
inline

Load subscriptions.

Parameters
typeSubscription type
userUser name
dataSourceData source name
Returns
List of subscriptions matching given parameters

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.

◆ setAccountManager()

void eu.baltrad.dex.net.manager.impl.SubscriptionManager.setAccountManager ( IUserManager accountManager)
inline
Parameters
accountManagerthe accountManager to set

◆ setDataSourceManager()

void eu.baltrad.dex.net.manager.impl.SubscriptionManager.setDataSourceManager ( IDataSourceManager dataSourceManager)
inline
Parameters
dataSourceManagerthe dataSourceManager to set

◆ setJdbcTemplate()

void eu.baltrad.dex.net.manager.impl.SubscriptionManager.setJdbcTemplate ( JdbcOperations jdbcTemplate)
inline
Parameters
jdbcTemplatethe jdbcTemplate to set

◆ store()

int eu.baltrad.dex.net.manager.impl.SubscriptionManager.store ( Subscription subscription) throws Exception
inline

Store subscription.

Parameters
subscriptionSubscription to store
Returns
Auto-generated record id
Exceptions
Exception

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.

◆ update()

void eu.baltrad.dex.net.manager.impl.SubscriptionManager.update ( Subscription s) throws Exception
inline

Update subscription.

Parameters
sSubscription to update
Exceptions
Exception

Implements eu.baltrad.dex.net.manager.ISubscriptionManager.


The documentation for this class was generated from the following file: