forked from DSpace/DSpace
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in 2023_02_x-DQ-26 (pull request DSpace#1676)
DQ-26 Approved-by: Giuseppe Digilio
- Loading branch information
Showing
18 changed files
with
497 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
dspace-api/src/main/java/org/dspace/app/deduplication/utils/DuplicateInfoList.java
This file was deleted.
Oops, something went wrong.
79 changes: 79 additions & 0 deletions
79
dspace-api/src/main/java/org/dspace/app/deduplication/utils/IDedupUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/** | ||
* 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.deduplication.utils; | ||
|
||
import java.sql.SQLException; | ||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.UUID; | ||
|
||
import org.dspace.app.deduplication.model.DuplicateDecisionObjectRest; | ||
import org.dspace.app.deduplication.service.DedupService; | ||
import org.dspace.authorize.AuthorizeException; | ||
import org.dspace.content.DSpaceObject; | ||
import org.dspace.core.Context; | ||
import org.dspace.discovery.SearchServiceException; | ||
|
||
/** | ||
* @author Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com) | ||
**/ | ||
public interface IDedupUtils { | ||
Collection<DuplicateInfo> findSignatureWithDuplicate(Context context, String signatureType, int resourceType, | ||
int limit, int offset, int rule) throws SearchServiceException, | ||
SQLException; | ||
|
||
Map<String, Integer> countSignaturesWithDuplicates(String query, int resourceTypeId) | ||
throws SearchServiceException; | ||
|
||
Map<String, Integer> countSuggestedDuplicate(String query, int resourceTypeId) | ||
throws SearchServiceException; | ||
|
||
boolean matchExist(Context context, UUID itemID, UUID targetItemID, Integer resourceType, | ||
String signatureType, Boolean isInWorkflow) throws SQLException, SearchServiceException; | ||
|
||
boolean rejectAdminDups(Context context, UUID firstId, UUID secondId, Integer type) | ||
throws SQLException, AuthorizeException; | ||
|
||
boolean rejectAdminDups(Context context, UUID itemID, String signatureType, int resourceType) | ||
throws SQLException, AuthorizeException, SearchServiceException; | ||
|
||
void rejectAdminDups(Context context, List<DSpaceObject> items, String signatureID) | ||
throws SQLException, AuthorizeException, SearchServiceException; | ||
|
||
void verify(Context context, int dedupId, UUID firstId, UUID secondId, int type, boolean toFix, String note, | ||
boolean check) throws SQLException, AuthorizeException; | ||
|
||
void setDuplicateDecision(Context context, UUID firstId, UUID secondId, Integer type, | ||
DuplicateDecisionObjectRest decisionObject) | ||
throws AuthorizeException, SQLException, SearchServiceException; | ||
|
||
boolean validateDecision(DuplicateDecisionObjectRest decisionObject); | ||
|
||
boolean rejectDups(Context context, UUID firstId, UUID secondId, Integer type, boolean notDupl, String note, | ||
boolean check) throws SQLException; | ||
|
||
DedupService getDedupService(); | ||
|
||
void setDedupService(DedupService dedupService); | ||
|
||
void commit(); | ||
|
||
List<DuplicateItemInfo> getDuplicateByIDandType(Context context, UUID itemID, int typeID, | ||
boolean isInWorkflow) throws SQLException, SearchServiceException; | ||
|
||
List<DuplicateItemInfo> getDuplicateByIdAndTypeAndSignatureType(Context context, UUID itemID, int typeID, | ||
String signatureType, boolean isInWorkflow) | ||
throws SQLException, SearchServiceException; | ||
|
||
List<DuplicateItemInfo> getAdminDuplicateByIdAndType(Context context, UUID itemID, int typeID) | ||
throws SQLException, SearchServiceException; | ||
|
||
Collection<DuplicateInfo> findSuggestedDuplicate(Context context, int resourceType, int start, int rows) | ||
throws SearchServiceException, SQLException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.