mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 13:03:11 +00:00
[DS-3003] Ensure all service & DAO implementations have a protected constructor
This commit is contained in:
@@ -40,6 +40,11 @@ public class SiteServiceImpl extends DSpaceObjectServiceImpl<Site> implements Si
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected SiteDAO siteDAO;
|
protected SiteDAO siteDAO;
|
||||||
|
|
||||||
|
protected SiteServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Site createSite(Context context) throws SQLException {
|
public Site createSite(Context context) throws SQLException {
|
||||||
Site site = findSite(context);
|
Site site = findSite(context);
|
||||||
|
@@ -54,6 +54,11 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected SubscribeService subscribeService;
|
protected SubscribeService subscribeService;
|
||||||
|
|
||||||
|
protected EPersonServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EPerson find(Context context, UUID id) throws SQLException {
|
public EPerson find(Context context, UUID id) throws SQLException {
|
||||||
return ePersonDAO.findByID(context, EPerson.class, id);
|
return ePersonDAO.findByID(context, EPerson.class, id);
|
||||||
|
@@ -65,6 +65,10 @@ public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected AuthorizeService authorizeService;
|
protected AuthorizeService authorizeService;
|
||||||
|
|
||||||
|
protected GroupServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Group create(Context context) throws SQLException, AuthorizeException {
|
public Group create(Context context) throws SQLException, AuthorizeException {
|
||||||
|
Reference in New Issue
Block a user