
org.dspace.app.ldn.service.impl.NotifyServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dspace-api Show documentation
Show all versions of dspace-api Show documentation
DSpace core data model and service APIs.
The newest version!
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.ldn.service.impl;
import java.sql.SQLException;
import java.util.List;
import org.dspace.app.ldn.NotifyServiceEntity;
import org.dspace.app.ldn.dao.NotifyServiceDao;
import org.dspace.app.ldn.service.NotifyService;
import org.dspace.core.Context;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Implementation of {@link NotifyService}.
*
* @author Mohamed Eskander (mohamed.eskander at 4science.com)
*/
public class NotifyServiceImpl implements NotifyService {
@Autowired(required = true)
private NotifyServiceDao notifyServiceDao;
@Override
public List findAll(Context context) throws SQLException {
return notifyServiceDao.findAll(context, NotifyServiceEntity.class);
}
@Override
public NotifyServiceEntity find(Context context, Integer id) throws SQLException {
return notifyServiceDao.findByID(context, NotifyServiceEntity.class, id);
}
@Override
public NotifyServiceEntity create(Context context, String name) throws SQLException {
NotifyServiceEntity notifyServiceEntity = new NotifyServiceEntity();
notifyServiceEntity.setName(name);
return notifyServiceDao.create(context, notifyServiceEntity);
}
@Override
public void update(Context context, NotifyServiceEntity notifyServiceEntity) throws SQLException {
notifyServiceDao.save(context, notifyServiceEntity);
}
@Override
public void delete(Context context, NotifyServiceEntity notifyServiceEntity) throws SQLException {
notifyServiceDao.delete(context, notifyServiceEntity);
}
@Override
public NotifyServiceEntity findByLdnUrl(Context context, String ldnUrl) throws SQLException {
return notifyServiceDao.findByLdnUrl(context, ldnUrl);
}
@Override
public List findManualServicesByInboundPattern(Context context, String pattern)
throws SQLException {
return notifyServiceDao.findManualServicesByInboundPattern(context, pattern);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy