[DS-3003] Ensure all service & DAO implementations have a protected constructor

This commit is contained in:
KevinVdV
2016-01-25 12:36:01 +01:00
parent 9486a7def1
commit c144aa1486
3 changed files with 14 additions and 0 deletions

View File

@@ -40,6 +40,11 @@ public class SiteServiceImpl extends DSpaceObjectServiceImpl<Site> implements Si
@Autowired(required = true)
protected SiteDAO siteDAO;
protected SiteServiceImpl()
{
super();
}
@Override
public Site createSite(Context context) throws SQLException {
Site site = findSite(context);

View File

@@ -54,6 +54,11 @@ public class EPersonServiceImpl extends DSpaceObjectServiceImpl<EPerson> impleme
@Autowired(required = true)
protected SubscribeService subscribeService;
protected EPersonServiceImpl()
{
super();
}
@Override
public EPerson find(Context context, UUID id) throws SQLException {
return ePersonDAO.findByID(context, EPerson.class, id);

View File

@@ -65,6 +65,10 @@ public class GroupServiceImpl extends DSpaceObjectServiceImpl<Group> implements
@Autowired(required = true)
protected AuthorizeService authorizeService;
protected GroupServiceImpl()
{
super();
}
@Override
public Group create(Context context) throws SQLException, AuthorizeException {