mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
[DS-3003] Ensure all service & DAO implementations have a protected constructor
This commit is contained in:
@@ -85,6 +85,11 @@ public class ItemExportServiceImpl implements ItemExportService
|
|||||||
/** log4j logger */
|
/** log4j logger */
|
||||||
private Logger log = Logger.getLogger(ItemExportServiceImpl.class);
|
private Logger log = Logger.getLogger(ItemExportServiceImpl.class);
|
||||||
|
|
||||||
|
protected ItemExportServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exportItem(Context c, Iterator<Item> i,
|
public void exportItem(Context c, Iterator<Item> i,
|
||||||
|
@@ -72,6 +72,10 @@ public class MediaFilterServiceImpl implements MediaFilterService, InitializingB
|
|||||||
protected boolean isQuiet = false;
|
protected boolean isQuiet = false;
|
||||||
protected boolean isForce = false; // default to not forced
|
protected boolean isForce = false; // default to not forced
|
||||||
|
|
||||||
|
protected MediaFilterServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() throws Exception {
|
public void afterPropertiesSet() throws Exception {
|
||||||
|
@@ -33,6 +33,11 @@ public class RequestItemServiceImpl implements RequestItemService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected RequestItemDAO requestItemDAO;
|
protected RequestItemDAO requestItemDAO;
|
||||||
|
|
||||||
|
protected RequestItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String createRequest(Context context, Bitstream bitstream, Item item, boolean allFiles, String reqEmail, String reqName, String reqMessage) throws SQLException {
|
public String createRequest(Context context, Bitstream bitstream, Item item, boolean allFiles, String reqEmail, String reqName, String reqMessage) throws SQLException {
|
||||||
RequestItem requestItem = requestItemDAO.create(context, new RequestItem());
|
RequestItem requestItem = requestItemDAO.create(context, new RequestItem());
|
||||||
|
@@ -25,6 +25,11 @@ import java.sql.SQLException;
|
|||||||
*/
|
*/
|
||||||
public class RequestItemDAOImpl extends AbstractHibernateDAO<RequestItem> implements RequestItemDAO
|
public class RequestItemDAOImpl extends AbstractHibernateDAO<RequestItem> implements RequestItemDAO
|
||||||
{
|
{
|
||||||
|
protected RequestItemDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RequestItem findByToken(Context context, String token) throws SQLException {
|
public RequestItem findByToken(Context context, String token) throws SQLException {
|
||||||
Criteria criteria = createCriteria(context, RequestItem.class);
|
Criteria criteria = createCriteria(context, RequestItem.class);
|
||||||
|
@@ -69,6 +69,11 @@ public class MetadataExposureServiceImpl implements MetadataExposureService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected AuthorizeService authorizeService;
|
protected AuthorizeService authorizeService;
|
||||||
|
|
||||||
|
protected MetadataExposureServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isHidden(Context context, String schema, String element, String qualifier)
|
public boolean isHidden(Context context, String schema, String element, String qualifier)
|
||||||
throws SQLException
|
throws SQLException
|
||||||
|
@@ -39,6 +39,11 @@ public class WebAppServiceImpl implements WebAppService {
|
|||||||
protected WebAppDAO webAppDAO;
|
protected WebAppDAO webAppDAO;
|
||||||
|
|
||||||
|
|
||||||
|
protected WebAppServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WebApp create(Context context, String appName, String url, Date started, int isUI) throws SQLException {
|
public WebApp create(Context context, String appName, String url, Date started, int isUI) throws SQLException {
|
||||||
WebApp webApp = webAppDAO.create(context, new WebApp());
|
WebApp webApp = webAppDAO.create(context, new WebApp());
|
||||||
|
@@ -18,5 +18,10 @@ import org.dspace.core.AbstractHibernateDAO;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class WebAppDAOImpl extends AbstractHibernateDAO<WebApp> implements WebAppDAO{
|
public class WebAppDAOImpl extends AbstractHibernateDAO<WebApp> implements WebAppDAO
|
||||||
|
{
|
||||||
|
protected WebAppDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -65,6 +65,10 @@ public class AuthenticationServiceImpl implements AuthenticationService, Initial
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected EPersonService ePersonService;
|
protected EPersonService ePersonService;
|
||||||
|
|
||||||
|
protected AuthenticationServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() throws Exception {
|
public void afterPropertiesSet() throws Exception {
|
||||||
|
@@ -34,6 +34,11 @@ public class AuthorityServiceImpl implements AuthorityService{
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected List<AuthorityIndexerInterface> indexers;
|
protected List<AuthorityIndexerInterface> indexers;
|
||||||
|
|
||||||
|
protected AuthorityServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void indexItem(Context context, Item item) throws SQLException, AuthorizeException {
|
public void indexItem(Context context, Item item) throws SQLException, AuthorizeException {
|
||||||
if(!isConfigurationValid()){
|
if(!isConfigurationValid()){
|
||||||
|
@@ -33,6 +33,10 @@ public class AuthoritySolrServiceImpl implements AuthorityIndexingService, Autho
|
|||||||
|
|
||||||
private static final Logger log = Logger.getLogger(AuthoritySolrServiceImpl.class);
|
private static final Logger log = Logger.getLogger(AuthoritySolrServiceImpl.class);
|
||||||
|
|
||||||
|
protected AuthoritySolrServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Non-Static CommonsHttpSolrServer for processing indexing events.
|
* Non-Static CommonsHttpSolrServer for processing indexing events.
|
||||||
|
@@ -35,6 +35,10 @@ public class AuthorityValueServiceImpl implements AuthorityValueService{
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected AuthorityTypes authorityTypes;
|
protected AuthorityTypes authorityTypes;
|
||||||
|
|
||||||
|
protected AuthorityValueServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AuthorityValue generate(Context context, String authorityKey, String content, String field) {
|
public AuthorityValue generate(Context context, String authorityKey, String content, String field) {
|
||||||
|
@@ -61,6 +61,11 @@ public class AuthorizeServiceImpl implements AuthorizeService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected WorkflowItemService workflowItemService;
|
protected WorkflowItemService workflowItemService;
|
||||||
|
|
||||||
|
protected AuthorizeServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void authorizeAnyOf(Context c, DSpaceObject o, int[] actions)throws AuthorizeException, SQLException
|
public void authorizeAnyOf(Context c, DSpaceObject o, int[] actions)throws AuthorizeException, SQLException
|
||||||
{
|
{
|
||||||
|
@@ -42,10 +42,7 @@ public class ResourcePolicyServiceImpl implements ResourcePolicyService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected ResourcePolicyDAO resourcePolicyDAO;
|
protected ResourcePolicyDAO resourcePolicyDAO;
|
||||||
|
|
||||||
/**
|
protected ResourcePolicyServiceImpl()
|
||||||
* Construct an ResourcePolicy
|
|
||||||
*/
|
|
||||||
public ResourcePolicyServiceImpl()
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,6 +31,11 @@ import java.util.List;
|
|||||||
public class ResourcePolicyDAOImpl extends AbstractHibernateDAO<ResourcePolicy> implements ResourcePolicyDAO
|
public class ResourcePolicyDAOImpl extends AbstractHibernateDAO<ResourcePolicy> implements ResourcePolicyDAO
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected ResourcePolicyDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ResourcePolicy> findByDso(Context context, DSpaceObject dso) throws SQLException {
|
public List<ResourcePolicy> findByDso(Context context, DSpaceObject dso) throws SQLException {
|
||||||
Criteria criteria = createCriteria(context, ResourcePolicy.class);
|
Criteria criteria = createCriteria(context, ResourcePolicy.class);
|
||||||
|
@@ -37,6 +37,11 @@ public class ChecksumHistoryServiceImpl implements ChecksumHistoryService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected ChecksumResultService checksumResultService;
|
protected ChecksumResultService checksumResultService;
|
||||||
|
|
||||||
|
protected ChecksumHistoryServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateMissingBitstreams(Context context) throws SQLException {
|
public void updateMissingBitstreams(Context context) throws SQLException {
|
||||||
// "insert into checksum_history ( "
|
// "insert into checksum_history ( "
|
||||||
|
@@ -27,6 +27,11 @@ public class ChecksumResultServiceImpl implements ChecksumResultService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
private ChecksumResultDAO checksumResultDAO;
|
private ChecksumResultDAO checksumResultDAO;
|
||||||
|
|
||||||
|
protected ChecksumResultServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the result description for the given result code
|
* Get the result description for the given result code
|
||||||
*
|
*
|
||||||
|
@@ -40,6 +40,11 @@ public class MostRecentChecksumServiceImpl implements MostRecentChecksumService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected BitstreamService bitstreamService;
|
protected BitstreamService bitstreamService;
|
||||||
|
|
||||||
|
protected MostRecentChecksumServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MostRecentChecksum getNonPersistedObject()
|
public MostRecentChecksum getNonPersistedObject()
|
||||||
{
|
{
|
||||||
|
@@ -34,6 +34,12 @@ import org.hibernate.Query;
|
|||||||
*/
|
*/
|
||||||
public class ChecksumHistoryDAOImpl extends AbstractHibernateDAO<ChecksumHistory> implements ChecksumHistoryDAO
|
public class ChecksumHistoryDAOImpl extends AbstractHibernateDAO<ChecksumHistory> implements ChecksumHistoryDAO
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected ChecksumHistoryDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int deleteByDateAndCode(Context context, Date retentionDate, ChecksumResultCode resultCode) throws SQLException {
|
public int deleteByDateAndCode(Context context, Date retentionDate, ChecksumResultCode resultCode) throws SQLException {
|
||||||
String hql = "delete from ChecksumHistory where processEndDate < :processEndDate AND checksumResult.resultCode=:resultCode";
|
String hql = "delete from ChecksumHistory where processEndDate < :processEndDate AND checksumResult.resultCode=:resultCode";
|
||||||
|
@@ -27,6 +27,11 @@ import java.sql.SQLException;
|
|||||||
public class ChecksumResultDAOImpl extends AbstractHibernateDAO<ChecksumResult> implements ChecksumResultDAO
|
public class ChecksumResultDAOImpl extends AbstractHibernateDAO<ChecksumResult> implements ChecksumResultDAO
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected ChecksumResultDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ChecksumResult findByCode(Context context, ChecksumResultCode code) throws SQLException {
|
public ChecksumResult findByCode(Context context, ChecksumResultCode code) throws SQLException {
|
||||||
Criteria criteria = createCriteria(context, ChecksumResult.class);
|
Criteria criteria = createCriteria(context, ChecksumResult.class);
|
||||||
|
@@ -29,7 +29,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class MostRecentChecksumDAOImpl extends AbstractHibernateDAO<MostRecentChecksum> implements MostRecentChecksumDAO {
|
public class MostRecentChecksumDAOImpl extends AbstractHibernateDAO<MostRecentChecksum> implements MostRecentChecksumDAO
|
||||||
|
{
|
||||||
|
protected MostRecentChecksumDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -38,6 +38,10 @@ public class BitstreamFormatServiceImpl implements BitstreamFormatService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected AuthorizeService authorizeService;
|
protected AuthorizeService authorizeService;
|
||||||
|
|
||||||
|
protected BitstreamFormatServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/** translate support-level ID to string. MUST keep this table in sync
|
/** translate support-level ID to string. MUST keep this table in sync
|
||||||
* with support level definitions above.
|
* with support level definitions above.
|
||||||
|
@@ -59,6 +59,10 @@ public class BitstreamServiceImpl extends DSpaceObjectServiceImpl<Bitstream> imp
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected BitstreamStorageService bitstreamStorageService;
|
protected BitstreamStorageService bitstreamStorageService;
|
||||||
|
|
||||||
|
protected BitstreamServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Bitstream find(Context context, UUID id) throws SQLException {
|
public Bitstream find(Context context, UUID id) throws SQLException {
|
||||||
|
@@ -53,6 +53,11 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected ResourcePolicyService resourcePolicyService;
|
protected ResourcePolicyService resourcePolicyService;
|
||||||
|
|
||||||
|
protected BundleServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Bundle find(Context context, UUID id) throws SQLException
|
public Bundle find(Context context, UUID id) throws SQLException
|
||||||
{
|
{
|
||||||
|
@@ -65,6 +65,11 @@ public class CollectionServiceImpl extends DSpaceObjectServiceImpl<Collection> i
|
|||||||
protected WorkspaceItemService workspaceItemService;
|
protected WorkspaceItemService workspaceItemService;
|
||||||
|
|
||||||
|
|
||||||
|
protected CollectionServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Collection create(Context context, Community community) throws SQLException, AuthorizeException {
|
public Collection create(Context context, Community community) throws SQLException, AuthorizeException {
|
||||||
return create(context, community, null);
|
return create(context, community, null);
|
||||||
|
@@ -60,6 +60,12 @@ public class CommunityServiceImpl extends DSpaceObjectServiceImpl<Community> imp
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected SiteService siteService;
|
protected SiteService siteService;
|
||||||
|
|
||||||
|
protected CommunityServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Community create(Community parent, Context context) throws SQLException, AuthorizeException {
|
public Community create(Community parent, Context context) throws SQLException, AuthorizeException {
|
||||||
return create(parent, context, null);
|
return create(parent, context, null);
|
||||||
|
@@ -51,6 +51,10 @@ public abstract class DSpaceObjectServiceImpl<T extends DSpaceObject> implements
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected MetadataAuthorityService metadataAuthorityService;
|
protected MetadataAuthorityService metadataAuthorityService;
|
||||||
|
|
||||||
|
public DSpaceObjectServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getName(T dso) {
|
public String getName(T dso) {
|
||||||
|
@@ -44,6 +44,11 @@ public class InstallItemServiceImpl implements InstallItemService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected ItemService itemService;
|
protected ItemService itemService;
|
||||||
|
|
||||||
|
protected InstallItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Item installItem(Context c, InProgressSubmission is)
|
public Item installItem(Context c, InProgressSubmission is)
|
||||||
throws SQLException, AuthorizeException
|
throws SQLException, AuthorizeException
|
||||||
|
@@ -75,6 +75,11 @@ public class ItemServiceImpl extends DSpaceObjectServiceImpl<Item> implements It
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected VersioningService versioningService;
|
protected VersioningService versioningService;
|
||||||
|
|
||||||
|
protected ItemServiceImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Thumbnail getThumbnail(Context context, Item item, boolean requireOriginal) throws SQLException {
|
public Thumbnail getThumbnail(Context context, Item item, boolean requireOriginal) throws SQLException {
|
||||||
Bitstream thumbBitstream;
|
Bitstream thumbBitstream;
|
||||||
|
@@ -40,6 +40,11 @@ public class MetadataFieldServiceImpl implements MetadataFieldService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected MetadataValueService metadataValueService;
|
protected MetadataValueService metadataValueService;
|
||||||
|
|
||||||
|
protected MetadataFieldServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetadataField create(Context context, MetadataSchema metadataSchema, String element, String qualifier, String scopeNote) throws AuthorizeException, SQLException, NonUniqueMetadataException {
|
public MetadataField create(Context context, MetadataSchema metadataSchema, String element, String qualifier, String scopeNote) throws AuthorizeException, SQLException, NonUniqueMetadataException {
|
||||||
// Check authorisation: Only admins may create DC types
|
// Check authorisation: Only admins may create DC types
|
||||||
|
@@ -37,6 +37,11 @@ public class MetadataSchemaServiceImpl implements MetadataSchemaService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected MetadataSchemaDAO metadataSchemaDAO;
|
protected MetadataSchemaDAO metadataSchemaDAO;
|
||||||
|
|
||||||
|
protected MetadataSchemaServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetadataSchema create(Context context, String name, String namespace) throws SQLException, AuthorizeException, NonUniqueMetadataException {
|
public MetadataSchema create(Context context, String name, String namespace) throws SQLException, AuthorizeException, NonUniqueMetadataException {
|
||||||
// Check authorisation: Only admins may create metadata schemas
|
// Check authorisation: Only admins may create metadata schemas
|
||||||
|
@@ -40,7 +40,7 @@ public class MetadataValueServiceImpl implements MetadataValueService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected ContentServiceFactory contentServiceFactory;
|
protected ContentServiceFactory contentServiceFactory;
|
||||||
|
|
||||||
public MetadataValueServiceImpl() {
|
protected MetadataValueServiceImpl() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -22,6 +22,10 @@ public class SupervisedItemServiceImpl implements SupervisedItemService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected WorkspaceItemService workspaceItemService;
|
protected WorkspaceItemService workspaceItemService;
|
||||||
|
|
||||||
|
protected SupervisedItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<WorkspaceItem> getAll(Context context)
|
public List<WorkspaceItem> getAll(Context context)
|
||||||
|
@@ -52,6 +52,11 @@ public class WorkspaceItemServiceImpl implements WorkspaceItemService {
|
|||||||
protected WorkflowService workflowService;
|
protected WorkflowService workflowService;
|
||||||
|
|
||||||
|
|
||||||
|
protected WorkspaceItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public WorkspaceItem find(Context context, int id) throws SQLException {
|
public WorkspaceItem find(Context context, int id) throws SQLException {
|
||||||
WorkspaceItem workspaceItem = workspaceItemDAO.findByID(context, WorkspaceItem.class, id);
|
WorkspaceItem workspaceItem = workspaceItemDAO.findByID(context, WorkspaceItem.class, id);
|
||||||
|
@@ -74,6 +74,11 @@ public class MetadataAuthorityServiceImpl implements MetadataAuthorityService
|
|||||||
/** fallback default value unless authority.minconfidence = X is configured. */
|
/** fallback default value unless authority.minconfidence = X is configured. */
|
||||||
protected int defaultMinConfidence = Choices.CF_ACCEPTED;
|
protected int defaultMinConfidence = Choices.CF_ACCEPTED;
|
||||||
|
|
||||||
|
protected MetadataAuthorityServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
|
|
||||||
if(isAuthorityRequired == null)
|
if(isAuthorityRequired == null)
|
||||||
|
@@ -30,7 +30,13 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class BitstreamDAOImpl extends AbstractHibernateDSODAO<Bitstream> implements BitstreamDAO {
|
public class BitstreamDAOImpl extends AbstractHibernateDSODAO<Bitstream> implements BitstreamDAO
|
||||||
|
{
|
||||||
|
|
||||||
|
protected BitstreamDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Bitstream> findDeletedBitstreams(Context context) throws SQLException {
|
public List<Bitstream> findDeletedBitstreams(Context context) throws SQLException {
|
||||||
|
@@ -26,7 +26,13 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class BitstreamFormatDAOImpl extends AbstractHibernateDAO<BitstreamFormat> implements BitstreamFormatDAO {
|
public class BitstreamFormatDAOImpl extends AbstractHibernateDAO<BitstreamFormat> implements BitstreamFormatDAO
|
||||||
|
{
|
||||||
|
|
||||||
|
protected BitstreamFormatDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find a bitstream format by its (unique) MIME type.
|
* Find a bitstream format by its (unique) MIME type.
|
||||||
|
@@ -21,7 +21,12 @@ import java.sql.SQLException;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class BundleDAOImpl extends AbstractHibernateDSODAO<Bundle> implements BundleDAO {
|
public class BundleDAOImpl extends AbstractHibernateDSODAO<Bundle> implements BundleDAO
|
||||||
|
{
|
||||||
|
protected BundleDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -34,7 +34,12 @@ import java.util.Map;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class CollectionDAOImpl extends AbstractHibernateDSODAO<Collection> implements CollectionDAO {
|
public class CollectionDAOImpl extends AbstractHibernateDSODAO<Collection> implements CollectionDAO
|
||||||
|
{
|
||||||
|
protected CollectionDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all collections in the system. These are alphabetically sorted by
|
* Get all collections in the system. These are alphabetically sorted by
|
||||||
|
@@ -32,7 +32,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class CommunityDAOImpl extends AbstractHibernateDSODAO<Community> implements CommunityDAO {
|
public class CommunityDAOImpl extends AbstractHibernateDSODAO<Community> implements CommunityDAO
|
||||||
|
{
|
||||||
|
protected CommunityDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of all communities in the system. These are alphabetically
|
* Get a list of all communities in the system. These are alphabetically
|
||||||
|
@@ -42,8 +42,15 @@ import java.util.UUID;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class ItemDAOImpl extends AbstractHibernateDSODAO<Item> implements ItemDAO {
|
public class ItemDAOImpl extends AbstractHibernateDSODAO<Item> implements ItemDAO
|
||||||
|
{
|
||||||
private static final Logger log = Logger.getLogger(ItemDAOImpl.class);
|
private static final Logger log = Logger.getLogger(ItemDAOImpl.class);
|
||||||
|
|
||||||
|
protected ItemDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Iterator<Item> findAll(Context context, boolean archived) throws SQLException {
|
public Iterator<Item> findAll(Context context, boolean archived) throws SQLException {
|
||||||
Query query = createQuery(context, "FROM Item WHERE inArchive= :in_archive");
|
Query query = createQuery(context, "FROM Item WHERE inArchive= :in_archive");
|
||||||
|
@@ -26,7 +26,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class MetadataFieldDAOImpl extends AbstractHibernateDAO<MetadataField> implements MetadataFieldDAO {
|
public class MetadataFieldDAOImpl extends AbstractHibernateDAO<MetadataField> implements MetadataFieldDAO
|
||||||
|
{
|
||||||
|
protected MetadataFieldDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MetadataField find(Context context, int metadataFieldId, MetadataSchema metadataSchema, String element,
|
public MetadataField find(Context context, int metadataFieldId, MetadataSchema metadataSchema, String element,
|
||||||
|
@@ -25,7 +25,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class MetadataSchemaDAOImpl extends AbstractHibernateDAO<MetadataSchema> implements MetadataSchemaDAO {
|
public class MetadataSchemaDAOImpl extends AbstractHibernateDAO<MetadataSchema> implements MetadataSchemaDAO
|
||||||
|
{
|
||||||
|
protected MetadataSchemaDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the schema object corresponding to this namespace URI.
|
* Get the schema object corresponding to this namespace URI.
|
||||||
|
@@ -26,7 +26,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class MetadataValueDAOImpl extends AbstractHibernateDAO<MetadataValue> implements MetadataValueDAO {
|
public class MetadataValueDAOImpl extends AbstractHibernateDAO<MetadataValue> implements MetadataValueDAO
|
||||||
|
{
|
||||||
|
protected MetadataValueDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -22,7 +22,12 @@ import java.sql.SQLException;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class SiteDAOImpl extends AbstractHibernateDAO<Site> implements SiteDAO {
|
public class SiteDAOImpl extends AbstractHibernateDAO<Site> implements SiteDAO
|
||||||
|
{
|
||||||
|
protected SiteDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Site findSite(Context context) throws SQLException {
|
public Site findSite(Context context) throws SQLException {
|
||||||
|
@@ -31,7 +31,12 @@ import java.util.Map;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class WorkspaceItemDAOImpl extends AbstractHibernateDAO<WorkspaceItem> implements WorkspaceItemDAO {
|
public class WorkspaceItemDAOImpl extends AbstractHibernateDAO<WorkspaceItem> implements WorkspaceItemDAO
|
||||||
|
{
|
||||||
|
protected WorkspaceItemDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -25,6 +25,11 @@ import java.util.UUID;
|
|||||||
*/
|
*/
|
||||||
public abstract class AbstractHibernateDAO<T> implements GenericDAO<T> {
|
public abstract class AbstractHibernateDAO<T> implements GenericDAO<T> {
|
||||||
|
|
||||||
|
protected AbstractHibernateDAO()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public T create(Context context, T t) throws SQLException {
|
public T create(Context context, T t) throws SQLException {
|
||||||
getHibernateSession(context).persist(t);
|
getHibernateSession(context).persist(t);
|
||||||
|
@@ -35,6 +35,11 @@ public class LicenseServiceImpl implements LicenseService
|
|||||||
/** The default license */
|
/** The default license */
|
||||||
protected String license;
|
protected String license;
|
||||||
|
|
||||||
|
protected LicenseServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void writeLicenseFile(String licenseFile,
|
public void writeLicenseFile(String licenseFile,
|
||||||
String newLicense)
|
String newLicense)
|
||||||
|
@@ -98,6 +98,11 @@ public class WorkflowCuratorServiceImpl implements WorkflowCuratorService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected WorkflowCuratorServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean needsCuration(BasicWorkflowItem wfi) {
|
public boolean needsCuration(BasicWorkflowItem wfi) {
|
||||||
return getFlowStep(wfi) != null;
|
return getFlowStep(wfi) != null;
|
||||||
|
@@ -123,6 +123,11 @@ public class SolrServiceImpl implements SearchService, IndexingService {
|
|||||||
private HttpSolrServer solr = null;
|
private HttpSolrServer solr = null;
|
||||||
|
|
||||||
|
|
||||||
|
protected SolrServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected HttpSolrServer getSolr()
|
protected HttpSolrServer getSolr()
|
||||||
{
|
{
|
||||||
if ( solr == null)
|
if ( solr == null)
|
||||||
|
@@ -73,6 +73,11 @@ public class EmbargoServiceImpl implements EmbargoService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected PluginService pluginService;
|
protected PluginService pluginService;
|
||||||
|
|
||||||
|
protected EmbargoServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setEmbargo(Context context, Item item)
|
public void setEmbargo(Context context, Item item)
|
||||||
throws SQLException, AuthorizeException
|
throws SQLException, AuthorizeException
|
||||||
|
@@ -49,6 +49,11 @@ public class AccountServiceImpl implements AccountService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected RegistrationDataService registrationDataService;
|
protected RegistrationDataService registrationDataService;
|
||||||
|
|
||||||
|
protected AccountServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Email registration info to the given email address.
|
* Email registration info to the given email address.
|
||||||
*
|
*
|
||||||
|
@@ -27,6 +27,11 @@ public class RegistrationDataServiceImpl implements RegistrationDataService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected RegistrationDataDAO registrationDataDAO;
|
protected RegistrationDataDAO registrationDataDAO;
|
||||||
|
|
||||||
|
protected RegistrationDataServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RegistrationData create(Context context) throws SQLException, AuthorizeException {
|
public RegistrationData create(Context context) throws SQLException, AuthorizeException {
|
||||||
return registrationDataDAO.create(context, new RegistrationData());
|
return registrationDataDAO.create(context, new RegistrationData());
|
||||||
|
@@ -41,6 +41,11 @@ public class SubscribeServiceImpl implements SubscribeService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected CollectionService collectionService;
|
protected CollectionService collectionService;
|
||||||
|
|
||||||
|
protected SubscribeServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Subscription> findAll(Context context) throws SQLException {
|
public List<Subscription> findAll(Context context) throws SQLException {
|
||||||
return subscriptionDAO.findAllOrderedByEPerson(context);
|
return subscriptionDAO.findAllOrderedByEPerson(context);
|
||||||
|
@@ -31,7 +31,12 @@ import java.util.*;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class EPersonDAOImpl extends AbstractHibernateDSODAO<EPerson> implements EPersonDAO {
|
public class EPersonDAOImpl extends AbstractHibernateDSODAO<EPerson> implements EPersonDAO
|
||||||
|
{
|
||||||
|
protected EPersonDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EPerson findByEmail(Context context, String email) throws SQLException
|
public EPerson findByEmail(Context context, String email) throws SQLException
|
||||||
|
@@ -27,7 +27,12 @@ import java.util.Set;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class Group2GroupCacheDAOImpl extends AbstractHibernateDAO<Group2GroupCache> implements Group2GroupCacheDAO {
|
public class Group2GroupCacheDAOImpl extends AbstractHibernateDAO<Group2GroupCache> implements Group2GroupCacheDAO
|
||||||
|
{
|
||||||
|
protected Group2GroupCacheDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Group2GroupCache> findByParent(Context context, Group group) throws SQLException {
|
public List<Group2GroupCache> findByParent(Context context, Group group) throws SQLException {
|
||||||
|
@@ -31,7 +31,12 @@ import java.util.*;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class GroupDAOImpl extends AbstractHibernateDSODAO<Group> implements GroupDAO {
|
public class GroupDAOImpl extends AbstractHibernateDSODAO<Group> implements GroupDAO
|
||||||
|
{
|
||||||
|
protected GroupDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Group findByMetadataField(Context context, String searchValue, MetadataField metadataField) throws SQLException
|
public Group findByMetadataField(Context context, String searchValue, MetadataField metadataField) throws SQLException
|
||||||
|
@@ -24,7 +24,13 @@ import java.sql.SQLException;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class RegistrationDataDAOImpl extends AbstractHibernateDAO<RegistrationData> implements RegistrationDataDAO {
|
public class RegistrationDataDAOImpl extends AbstractHibernateDAO<RegistrationData> implements RegistrationDataDAO
|
||||||
|
{
|
||||||
|
|
||||||
|
protected RegistrationDataDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RegistrationData findByEmail(Context context, String email) throws SQLException {
|
public RegistrationData findByEmail(Context context, String email) throws SQLException {
|
||||||
|
@@ -28,7 +28,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class SubscriptionDAOImpl extends AbstractHibernateDAO<Subscription> implements SubscriptionDAO {
|
public class SubscriptionDAOImpl extends AbstractHibernateDAO<Subscription> implements SubscriptionDAO
|
||||||
|
{
|
||||||
|
protected SubscriptionDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Subscription> findByEPerson(Context context, EPerson eperson) throws SQLException {
|
public List<Subscription> findByEPerson(Context context, EPerson eperson) throws SQLException {
|
||||||
|
@@ -51,7 +51,7 @@ public class HandleServiceImpl implements HandleService
|
|||||||
protected SiteService siteService;
|
protected SiteService siteService;
|
||||||
|
|
||||||
/** Public Constructor */
|
/** Public Constructor */
|
||||||
public HandleServiceImpl()
|
protected HandleServiceImpl()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -26,7 +26,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class HandleDAOImpl extends AbstractHibernateDAO<Handle> implements HandleDAO {
|
public class HandleDAOImpl extends AbstractHibernateDAO<Handle> implements HandleDAO
|
||||||
|
{
|
||||||
|
protected HandleDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Handle> getHandlesByDSpaceObject(Context context, DSpaceObject dso) throws SQLException {
|
public List<Handle> getHandlesByDSpaceObject(Context context, DSpaceObject dso) throws SQLException {
|
||||||
|
@@ -34,6 +34,11 @@ public class HarvestSchedulingServiceImpl implements HarvestSchedulingService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected HarvestedCollectionService harvestedCollectionService;
|
protected HarvestedCollectionService harvestedCollectionService;
|
||||||
|
|
||||||
|
protected HarvestSchedulingServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void startNewScheduler() throws SQLException, AuthorizeException {
|
public synchronized void startNewScheduler() throws SQLException, AuthorizeException {
|
||||||
Context c = new Context();
|
Context c = new Context();
|
||||||
|
@@ -31,6 +31,10 @@ public class HarvestedCollectionServiceImpl implements HarvestedCollectionServic
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected HarvestedCollectionDAO harvestedCollectionDAO;
|
protected HarvestedCollectionDAO harvestedCollectionDAO;
|
||||||
|
|
||||||
|
protected HarvestedCollectionServiceImpl()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HarvestedCollection find(Context context, Collection collection) throws SQLException {
|
public HarvestedCollection find(Context context, Collection collection) throws SQLException {
|
||||||
return harvestedCollectionDAO.findByCollection(context, collection);
|
return harvestedCollectionDAO.findByCollection(context, collection);
|
||||||
|
@@ -28,6 +28,11 @@ public class HarvestedItemServiceImpl implements HarvestedItemService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected HarvestedItemDAO harvestedItemDAO;
|
protected HarvestedItemDAO harvestedItemDAO;
|
||||||
|
|
||||||
|
protected HarvestedItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HarvestedItem find(Context context, Item item) throws SQLException {
|
public HarvestedItem find(Context context, Item item) throws SQLException {
|
||||||
return harvestedItemDAO.findByItem(context, item);
|
return harvestedItemDAO.findByItem(context, item);
|
||||||
|
@@ -29,7 +29,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class HarvestedCollectionDAOImpl extends AbstractHibernateDAO<HarvestedCollection> implements HarvestedCollectionDAO {
|
public class HarvestedCollectionDAOImpl extends AbstractHibernateDAO<HarvestedCollection> implements HarvestedCollectionDAO
|
||||||
|
{
|
||||||
|
protected HarvestedCollectionDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -25,7 +25,12 @@ import java.sql.SQLException;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class HarvestedItemDAOImpl extends AbstractHibernateDAO<HarvestedItem> implements HarvestedItemDAO {
|
public class HarvestedItemDAOImpl extends AbstractHibernateDAO<HarvestedItem> implements HarvestedItemDAO
|
||||||
|
{
|
||||||
|
protected HarvestedItemDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HarvestedItem findByItem(Context context, Item item) throws SQLException {
|
public HarvestedItem findByItem(Context context, Item item) throws SQLException {
|
||||||
|
@@ -31,6 +31,11 @@ public class DOIServiceImpl implements DOIService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected DOIDAO doiDAO;
|
protected DOIDAO doiDAO;
|
||||||
|
|
||||||
|
protected DOIServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update(Context context, DOI doi) throws SQLException {
|
public void update(Context context, DOI doi) throws SQLException {
|
||||||
doiDAO.save(context, doi);
|
doiDAO.save(context, doi);
|
||||||
|
@@ -41,6 +41,11 @@ public class IdentifierServiceImpl implements IdentifierService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected HandleService handleService;
|
protected HandleService handleService;
|
||||||
|
|
||||||
|
protected IdentifierServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@Required
|
@Required
|
||||||
public void setProviders(List<IdentifierProvider> providers)
|
public void setProviders(List<IdentifierProvider> providers)
|
||||||
|
@@ -27,7 +27,13 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class DOIDAOImpl extends AbstractHibernateDAO<DOI> implements DOIDAO {
|
public class DOIDAOImpl extends AbstractHibernateDAO<DOI> implements DOIDAO
|
||||||
|
{
|
||||||
|
protected DOIDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public DOI findByDoi(Context context, String doi) throws SQLException {
|
public DOI findByDoi(Context context, String doi) throws SQLException {
|
||||||
Criteria criteria = createCriteria(context, DOI.class);
|
Criteria criteria = createCriteria(context, DOI.class);
|
||||||
|
@@ -69,6 +69,11 @@ public class CreativeCommonsServiceImpl implements CreativeCommonsService, Initi
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected ItemService itemService;
|
protected ItemService itemService;
|
||||||
|
|
||||||
|
protected CreativeCommonsServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() throws Exception
|
public void afterPropertiesSet() throws Exception
|
||||||
{
|
{
|
||||||
|
@@ -31,7 +31,7 @@ public class RDFConverterImpl implements RDFConverter
|
|||||||
protected List<ConverterPlugin> plugins;
|
protected List<ConverterPlugin> plugins;
|
||||||
private static final Logger log = Logger.getLogger(RDFConverterImpl.class);
|
private static final Logger log = Logger.getLogger(RDFConverterImpl.class);
|
||||||
|
|
||||||
public RDFConverterImpl()
|
protected RDFConverterImpl()
|
||||||
{
|
{
|
||||||
this.configurationService = DSpaceServicesFactory.getInstance().getConfigurationService();
|
this.configurationService = DSpaceServicesFactory.getInstance().getConfigurationService();
|
||||||
this.plugins = new ArrayList<ConverterPlugin>();
|
this.plugins = new ArrayList<ConverterPlugin>();
|
||||||
|
@@ -105,6 +105,11 @@ public class SolrLoggerServiceImpl implements SolrLoggerService, InitializingBea
|
|||||||
public String text() { return text; }
|
public String text() { return text; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected SolrLoggerServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() throws Exception
|
public void afterPropertiesSet() throws Exception
|
||||||
|
@@ -75,6 +75,11 @@ public class BitstreamStorageServiceImpl implements BitstreamStorageService, Ini
|
|||||||
*/
|
*/
|
||||||
protected final String REGISTERED_FLAG = "-R";
|
protected final String REGISTERED_FLAG = "-R";
|
||||||
|
|
||||||
|
protected BitstreamStorageServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void afterPropertiesSet() throws Exception {
|
public void afterPropertiesSet() throws Exception {
|
||||||
for(Map.Entry<Integer, BitStoreService> storeEntry : stores.entrySet()) {
|
for(Map.Entry<Integer, BitStoreService> storeEntry : stores.entrySet()) {
|
||||||
|
@@ -30,6 +30,11 @@ public class VersionHistoryServiceImpl implements VersionHistoryService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected VersionHistoryDAO versionHistoryDAO;
|
protected VersionHistoryDAO versionHistoryDAO;
|
||||||
|
|
||||||
|
protected VersionHistoryServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public VersionHistory create(Context context) throws SQLException {
|
public VersionHistory create(Context context) throws SQLException {
|
||||||
return versionHistoryDAO.create(context, new VersionHistory());
|
return versionHistoryDAO.create(context, new VersionHistory());
|
||||||
|
@@ -42,6 +42,11 @@ public class VersioningServiceImpl implements VersioningService {
|
|||||||
private DefaultItemVersionProvider provider;
|
private DefaultItemVersionProvider provider;
|
||||||
|
|
||||||
|
|
||||||
|
protected VersioningServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/** Service Methods */
|
/** Service Methods */
|
||||||
@Override
|
@Override
|
||||||
public Version createNewVersion(Context c, Item item){
|
public Version createNewVersion(Context c, Item item){
|
||||||
|
@@ -29,6 +29,10 @@ import java.sql.SQLException;
|
|||||||
*/
|
*/
|
||||||
public class VersionDAOImpl extends AbstractHibernateDAO<Version> implements VersionDAO
|
public class VersionDAOImpl extends AbstractHibernateDAO<Version> implements VersionDAO
|
||||||
{
|
{
|
||||||
|
protected VersionDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Version findByItem(Context context, Item item) throws SQLException {
|
public Version findByItem(Context context, Item item) throws SQLException {
|
||||||
|
@@ -27,7 +27,12 @@ import java.sql.SQLException;
|
|||||||
* @author Ben Bosman (ben at atmire dot com)
|
* @author Ben Bosman (ben at atmire dot com)
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class VersionHistoryDAOImpl extends AbstractHibernateDAO<VersionHistory> implements VersionHistoryDAO {
|
public class VersionHistoryDAOImpl extends AbstractHibernateDAO<VersionHistory> implements VersionHistoryDAO
|
||||||
|
{
|
||||||
|
protected VersionHistoryDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public VersionHistory findByItem(Context context, Item item) throws SQLException {
|
public VersionHistory findByItem(Context context, Item item) throws SQLException {
|
||||||
|
@@ -46,6 +46,11 @@ public class BasicWorkflowItemServiceImpl implements BasicWorkflowItemService {
|
|||||||
protected TaskListItemService taskListItemService;
|
protected TaskListItemService taskListItemService;
|
||||||
|
|
||||||
|
|
||||||
|
protected BasicWorkflowItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BasicWorkflowItem create(Context context, Item item, Collection collection) throws SQLException, AuthorizeException {
|
public BasicWorkflowItem create(Context context, Item item, Collection collection) throws SQLException, AuthorizeException {
|
||||||
if(findByItem(context, item) != null){
|
if(findByItem(context, item) != null){
|
||||||
|
@@ -61,6 +61,11 @@ public class BasicWorkflowServiceImpl implements BasicWorkflowService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected WorkspaceItemService workspaceItemService;
|
protected WorkspaceItemService workspaceItemService;
|
||||||
|
|
||||||
|
protected BasicWorkflowServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/** Symbolic names of workflow steps. */
|
/** Symbolic names of workflow steps. */
|
||||||
protected final String workflowText[] =
|
protected final String workflowText[] =
|
||||||
{
|
{
|
||||||
|
@@ -28,6 +28,11 @@ public class TaskListItemServiceImpl implements TaskListItemService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected TaskListItemDAO taskListItemDAO;
|
protected TaskListItemDAO taskListItemDAO;
|
||||||
|
|
||||||
|
protected TaskListItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TaskListItem create(Context context, BasicWorkflowItem workflowItem, EPerson ePerson) throws SQLException {
|
public TaskListItem create(Context context, BasicWorkflowItem workflowItem, EPerson ePerson) throws SQLException {
|
||||||
TaskListItem taskListItem = taskListItemDAO.create(context, new TaskListItem());
|
TaskListItem taskListItem = taskListItemDAO.create(context, new TaskListItem());
|
||||||
|
@@ -29,7 +29,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class BasicWorkflowItemDAOImpl extends AbstractHibernateDAO<BasicWorkflowItem> implements BasicWorkflowItemDAO {
|
public class BasicWorkflowItemDAOImpl extends AbstractHibernateDAO<BasicWorkflowItem> implements BasicWorkflowItemDAO
|
||||||
|
{
|
||||||
|
protected BasicWorkflowItemDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -29,6 +29,10 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public class TaskListItemDAOImpl extends AbstractHibernateDAO<TaskListItem> implements TaskListItemDAO
|
public class TaskListItemDAOImpl extends AbstractHibernateDAO<TaskListItem> implements TaskListItemDAO
|
||||||
{
|
{
|
||||||
|
protected TaskListItemDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void deleteByWorkflowItem(Context context, BasicWorkflowItem workflowItem) throws SQLException {
|
public void deleteByWorkflowItem(Context context, BasicWorkflowItem workflowItem) throws SQLException {
|
||||||
|
@@ -53,6 +53,10 @@ public class WorkflowRequirementsServiceImpl implements WorkflowRequirementsServ
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected XmlWorkflowService xmlWorkflowService;
|
protected XmlWorkflowService xmlWorkflowService;
|
||||||
|
|
||||||
|
protected WorkflowRequirementsServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addClaimedUser(Context context, XmlWorkflowItem wfi, Step step, EPerson user) throws SQLException, AuthorizeException, IOException {
|
public void addClaimedUser(Context context, XmlWorkflowItem wfi, Step step, EPerson user) throws SQLException, AuthorizeException, IOException {
|
||||||
|
@@ -45,6 +45,11 @@ public class XmlWorkflowFactoryImpl implements XmlWorkflowFactory {
|
|||||||
protected String path = ConfigurationManager.getProperty("dspace.dir")+"/config/workflow.xml";
|
protected String path = ConfigurationManager.getProperty("dspace.dir")+"/config/workflow.xml";
|
||||||
// private static String pathActions = ConfigurationManager.getProperty("dspace.dir")+"/config/workflow-actions.xml";
|
// private static String pathActions = ConfigurationManager.getProperty("dspace.dir")+"/config/workflow-actions.xml";
|
||||||
|
|
||||||
|
protected XmlWorkflowFactoryImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Workflow getWorkflow(Collection collection) throws IOException, WorkflowConfigurationException {
|
public Workflow getWorkflow(Collection collection) throws IOException, WorkflowConfigurationException {
|
||||||
//Initialize our cache if we have none
|
//Initialize our cache if we have none
|
||||||
|
@@ -86,6 +86,10 @@ public class XmlWorkflowServiceImpl implements XmlWorkflowService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected GroupService groupService;
|
protected GroupService groupService;
|
||||||
|
|
||||||
|
protected XmlWorkflowServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -31,6 +31,11 @@ public class ClaimedTaskServiceImpl implements ClaimedTaskService
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected ClaimedTaskDAO claimedTaskDAO;
|
protected ClaimedTaskDAO claimedTaskDAO;
|
||||||
|
|
||||||
|
protected ClaimedTaskServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ClaimedTask create(Context context) throws SQLException, AuthorizeException {
|
public ClaimedTask create(Context context) throws SQLException, AuthorizeException {
|
||||||
return claimedTaskDAO.create(context, new ClaimedTask());
|
return claimedTaskDAO.create(context, new ClaimedTask());
|
||||||
|
@@ -29,6 +29,10 @@ public class CollectionRoleServiceImpl implements CollectionRoleService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected CollectionRoleDAO collectionRoleDAO;
|
protected CollectionRoleDAO collectionRoleDAO;
|
||||||
|
|
||||||
|
protected CollectionRoleServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -29,6 +29,11 @@ public class InProgressUserServiceImpl implements InProgressUserService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected InProgressUserDAO inProgressUserDAO;
|
protected InProgressUserDAO inProgressUserDAO;
|
||||||
|
|
||||||
|
protected InProgressUserServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InProgressUser findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException {
|
public InProgressUser findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException {
|
||||||
return inProgressUserDAO.findByWorkflowItemAndEPerson(context, workflowItem, ePerson);
|
return inProgressUserDAO.findByWorkflowItemAndEPerson(context, workflowItem, ePerson);
|
||||||
|
@@ -40,6 +40,11 @@ public class PoolTaskServiceImpl implements PoolTaskService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
protected InProgressUserService inProgressUserService;
|
protected InProgressUserService inProgressUserService;
|
||||||
|
|
||||||
|
protected PoolTaskServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PoolTask> findByEperson(Context context, EPerson ePerson) throws SQLException, AuthorizeException, IOException {
|
public List<PoolTask> findByEperson(Context context, EPerson ePerson) throws SQLException, AuthorizeException, IOException {
|
||||||
List<PoolTask> result = poolTaskDAO.findByEPerson(context, ePerson);
|
List<PoolTask> result = poolTaskDAO.findByEPerson(context, ePerson);
|
||||||
|
@@ -30,6 +30,11 @@ public class WorkflowItemRoleServiceImpl implements WorkflowItemRoleService {
|
|||||||
@Autowired(required = true)
|
@Autowired(required = true)
|
||||||
private WorkflowItemRoleDAO workflowItemRoleDAO;
|
private WorkflowItemRoleDAO workflowItemRoleDAO;
|
||||||
|
|
||||||
|
protected WorkflowItemRoleServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<WorkflowItemRole> find(Context context, XmlWorkflowItem workflowItem, String role) throws SQLException {
|
public List<WorkflowItemRole> find(Context context, XmlWorkflowItem workflowItem, String role) throws SQLException {
|
||||||
return workflowItemRoleDAO.findByWorkflowItemAndRole(context, workflowItem, role);
|
return workflowItemRoleDAO.findByWorkflowItemAndRole(context, workflowItem, role);
|
||||||
|
@@ -55,6 +55,11 @@ public class XmlWorkflowItemServiceImpl implements XmlWorkflowItemService {
|
|||||||
private Logger log = Logger.getLogger(XmlWorkflowItemServiceImpl.class);
|
private Logger log = Logger.getLogger(XmlWorkflowItemServiceImpl.class);
|
||||||
|
|
||||||
|
|
||||||
|
protected XmlWorkflowItemServiceImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public XmlWorkflowItem create(Context context, Item item, Collection collection) throws SQLException, AuthorizeException {
|
public XmlWorkflowItem create(Context context, Item item, Collection collection) throws SQLException, AuthorizeException {
|
||||||
XmlWorkflowItem xmlWorkflowItem = xmlWorkflowItemDAO.create(context, new XmlWorkflowItem());
|
XmlWorkflowItem xmlWorkflowItem = xmlWorkflowItemDAO.create(context, new XmlWorkflowItem());
|
||||||
|
@@ -26,7 +26,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class ClaimedTaskDAOImpl extends AbstractHibernateDAO<ClaimedTask> implements ClaimedTaskDAO {
|
public class ClaimedTaskDAOImpl extends AbstractHibernateDAO<ClaimedTask> implements ClaimedTaskDAO
|
||||||
|
{
|
||||||
|
protected ClaimedTaskDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ClaimedTask> findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) throws SQLException {
|
public List<ClaimedTask> findByWorkflowItem(Context context, XmlWorkflowItem workflowItem) throws SQLException {
|
||||||
|
@@ -26,7 +26,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class CollectionRoleDAOImpl extends AbstractHibernateDAO<CollectionRole> implements CollectionRoleDAO {
|
public class CollectionRoleDAOImpl extends AbstractHibernateDAO<CollectionRole> implements CollectionRoleDAO
|
||||||
|
{
|
||||||
|
protected CollectionRoleDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CollectionRole> findByCollection(Context context, Collection collection) throws SQLException {
|
public List<CollectionRole> findByCollection(Context context, Collection collection) throws SQLException {
|
||||||
|
@@ -26,7 +26,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class InProgressUserDAOImpl extends AbstractHibernateDAO<InProgressUser> implements InProgressUserDAO {
|
public class InProgressUserDAOImpl extends AbstractHibernateDAO<InProgressUser> implements InProgressUserDAO
|
||||||
|
{
|
||||||
|
protected InProgressUserDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InProgressUser findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException {
|
public InProgressUser findByWorkflowItemAndEPerson(Context context, XmlWorkflowItem workflowItem, EPerson ePerson) throws SQLException {
|
||||||
|
@@ -27,7 +27,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class PoolTaskDAOImpl extends AbstractHibernateDAO<PoolTask> implements PoolTaskDAO {
|
public class PoolTaskDAOImpl extends AbstractHibernateDAO<PoolTask> implements PoolTaskDAO
|
||||||
|
{
|
||||||
|
protected PoolTaskDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PoolTask> findByEPerson(Context context, EPerson ePerson) throws SQLException {
|
public List<PoolTask> findByEPerson(Context context, EPerson ePerson) throws SQLException {
|
||||||
|
@@ -26,7 +26,12 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class WorkflowItemRoleDAOImpl extends AbstractHibernateDAO<WorkflowItemRole> implements WorkflowItemRoleDAO {
|
public class WorkflowItemRoleDAOImpl extends AbstractHibernateDAO<WorkflowItemRole> implements WorkflowItemRoleDAO
|
||||||
|
{
|
||||||
|
protected WorkflowItemRoleDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<WorkflowItemRole> findByWorkflowItemAndRole(Context context, XmlWorkflowItem workflowItem, String role) throws SQLException {
|
public List<WorkflowItemRole> findByWorkflowItemAndRole(Context context, XmlWorkflowItem workflowItem, String role) throws SQLException {
|
||||||
|
@@ -27,7 +27,13 @@ import java.util.List;
|
|||||||
*
|
*
|
||||||
* @author kevinvandevelde at atmire.com
|
* @author kevinvandevelde at atmire.com
|
||||||
*/
|
*/
|
||||||
public class XmlWorkflowItemDAOImpl extends AbstractHibernateDAO<XmlWorkflowItem> implements XmlWorkflowItemDAO {
|
public class XmlWorkflowItemDAOImpl extends AbstractHibernateDAO<XmlWorkflowItem> implements XmlWorkflowItemDAO
|
||||||
|
{
|
||||||
|
|
||||||
|
protected XmlWorkflowItemDAOImpl()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<XmlWorkflowItem> findAllInCollection(Context context, Integer offset, Integer limit, Collection collection) throws SQLException {
|
public List<XmlWorkflowItem> findAllInCollection(Context context, Integer offset, Integer limit, Collection collection) throws SQLException {
|
||||||
|
Reference in New Issue
Block a user