Package org.dspace.app.ldn.service.impl
Class NotifyPatternToTriggerImpl
java.lang.Object
org.dspace.app.ldn.service.impl.NotifyPatternToTriggerImpl
- All Implemented Interfaces:
NotifyPatternToTriggerService
Implementation of
NotifyPatternToTriggerService.- Author:
- Mohamed Eskander (mohamed.eskander at 4science.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate new notifyPatternToTriggervoiddelete(Context context, NotifyPatternToTrigger notifyPatternToTrigger) delete the provided notifyPatternToTriggerfind all notify patterns to be triggeredfindByItem(Context context, Item item) find list of Notify Patterns To be Triggered by itemfindByItemAndPattern(Context context, Item item, String pattern) find list of Notify Patterns To be Triggered by item and patternvoidupdate(Context context, NotifyPatternToTrigger notifyPatternToTrigger) update the provided notifyPatternToTrigger
-
Constructor Details
-
NotifyPatternToTriggerImpl
public NotifyPatternToTriggerImpl()
-
-
Method Details
-
findAll
Description copied from interface:NotifyPatternToTriggerServicefind all notify patterns to be triggered- Specified by:
findAllin interfaceNotifyPatternToTriggerService- Parameters:
context- the context- Returns:
- all notify patterns to be trigger
- Throws:
SQLException- if database error
-
findByItem
Description copied from interface:NotifyPatternToTriggerServicefind list of Notify Patterns To be Triggered by item- Specified by:
findByItemin interfaceNotifyPatternToTriggerService- Parameters:
context- the contextitem- the item of NotifyPatternToTrigger- Returns:
- the matched NotifyPatternToTrigger list by item
- Throws:
SQLException- if database error
-
findByItemAndPattern
public List<NotifyPatternToTrigger> findByItemAndPattern(Context context, Item item, String pattern) throws SQLException Description copied from interface:NotifyPatternToTriggerServicefind list of Notify Patterns To be Triggered by item and pattern- Specified by:
findByItemAndPatternin interfaceNotifyPatternToTriggerService- Parameters:
context- the contextitem- the item of NotifyPatternToTriggerpattern- the pattern of NotifyPatternToTrigger- Returns:
- the matched NotifyPatternToTrigger list by item and pattern
- Throws:
SQLException- if database error
-
create
Description copied from interface:NotifyPatternToTriggerServicecreate new notifyPatternToTrigger- Specified by:
createin interfaceNotifyPatternToTriggerService- Parameters:
context- the context- Returns:
- the created NotifyPatternToTrigger
- Throws:
SQLException- if database error
-
update
public void update(Context context, NotifyPatternToTrigger notifyPatternToTrigger) throws SQLException Description copied from interface:NotifyPatternToTriggerServiceupdate the provided notifyPatternToTrigger- Specified by:
updatein interfaceNotifyPatternToTriggerService- Parameters:
context- the contextnotifyPatternToTrigger- the notifyPatternToTrigger- Throws:
SQLException- if database error
-
delete
public void delete(Context context, NotifyPatternToTrigger notifyPatternToTrigger) throws SQLException Description copied from interface:NotifyPatternToTriggerServicedelete the provided notifyPatternToTrigger- Specified by:
deletein interfaceNotifyPatternToTriggerService- Parameters:
context- the contextnotifyPatternToTrigger- the notifyPatternToTrigger- Throws:
SQLException- if database error
-