public abstract class AbstractPullChannel extends Object implements IPullChannel
IPullChannel.PullException| Modifier and Type | Field and Description |
|---|---|
static Param<Integer> |
AMOUNT |
static int |
DEFAULT_AMOUNT |
static int |
MAX_AMOUNT |
static Param<String> |
SECRET |
| Constructor and Description |
|---|
AbstractPullChannel() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getDefaultAmount() |
boolean |
isAuthorized(String userId,
IChannelPreferences cPrefs) |
boolean |
isConfigured(Params params) |
IChannelPreferences |
newDefaultPreferences()
create default preferences for this channel
|
protected abstract String |
pull(List<Message> messages,
Date lastModified,
IChannelPreferences cPrefs,
IPreferences prefs) |
String |
pull(String userId,
IChannelPreferences cPrefs) |
protected Message |
render(Notification notification,
IPreferences prefs,
IChannelPreferences cPrefs) |
void |
setDefaultAmount(Integer defaultAmount) |
void |
setDispatchService(IDispatchService dispatchService) |
void |
setNotificationDAO(INotificationDAO notificationDAO) |
void |
setNotificationRenderService(IDispatchService dispatchService)
Deprecated.
|
void |
setPreferencesDAO(IPreferencesDAO preferencesDAO) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getNotificationTypespublic static final int MAX_AMOUNT
public static final int DEFAULT_AMOUNT
public boolean isAuthorized(String userId, IChannelPreferences cPrefs)
isAuthorized in interface IPullChannelpublic boolean isConfigured(Params params)
isConfigured in interface IChannelpublic final String pull(String userId, IChannelPreferences cPrefs) throws IPullChannel.PullException
pull in interface IPullChannelIPullChannel.PullExceptionpublic IChannelPreferences newDefaultPreferences()
IChannelnewDefaultPreferences in interface IChannelprotected Message render(Notification notification, IPreferences prefs, IChannelPreferences cPrefs) throws IRenderService.RenderException
IRenderService.RenderExceptionpublic Integer getDefaultAmount()
public void setDefaultAmount(Integer defaultAmount)
public void setNotificationDAO(INotificationDAO notificationDAO)
public void setPreferencesDAO(IPreferencesDAO preferencesDAO)
public void setDispatchService(IDispatchService dispatchService)
@Deprecated public void setNotificationRenderService(IDispatchService dispatchService)
setDispatchService(IDispatchService)dispatchService - protected abstract String pull(List<Message> messages, Date lastModified, IChannelPreferences cPrefs, IPreferences prefs) throws IPullChannel.PullException
IPullChannel.PullExceptionCopyright © 2015 Molindo GmbH. All Rights Reserved.