mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
[CST-5587] Fixed LGTM alerts
This commit is contained in:
@@ -254,7 +254,8 @@ public class OrcidQueueConsumer implements Consumer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.isBlank(putCode)) {
|
if (StringUtils.isBlank(putCode)) {
|
||||||
LOGGER.warn("The orcid history record with id {} should have a not blank put code");
|
LOGGER.warn("The orcid history record with id {} should have a not blank put code",
|
||||||
|
historyRecord.getID());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -76,7 +76,7 @@ public interface OrcidQueueDAO extends GenericDAO<OrcidQueue> {
|
|||||||
*
|
*
|
||||||
* @param context DSpace context object
|
* @param context DSpace context object
|
||||||
* @param entity the entity item
|
* @param entity the entity item
|
||||||
* @param recordType the record type
|
* @param type the record type
|
||||||
* @throws SQLException if database error occurs
|
* @throws SQLException if database error occurs
|
||||||
*/
|
*/
|
||||||
public List<OrcidQueue> findByEntityAndRecordType(Context context, Item entity, String type) throws SQLException;
|
public List<OrcidQueue> findByEntityAndRecordType(Context context, Item entity, String type) throws SQLException;
|
||||||
@@ -86,7 +86,7 @@ public interface OrcidQueueDAO extends GenericDAO<OrcidQueue> {
|
|||||||
*
|
*
|
||||||
* @param context DSpace context object
|
* @param context DSpace context object
|
||||||
* @param owner the owner item
|
* @param owner the owner item
|
||||||
* @param recordType the record type
|
* @param type the record type
|
||||||
* @throws SQLException if database error occurs
|
* @throws SQLException if database error occurs
|
||||||
*/
|
*/
|
||||||
public List<OrcidQueue> findByOwnerAndRecordType(Context context, Item owner, String type) throws SQLException;
|
public List<OrcidQueue> findByOwnerAndRecordType(Context context, Item owner, String type) throws SQLException;
|
||||||
|
@@ -81,7 +81,7 @@ public interface OrcidHistoryService {
|
|||||||
* Delete an OrcidHistory
|
* Delete an OrcidHistory
|
||||||
*
|
*
|
||||||
* @param context context
|
* @param context context
|
||||||
* @param OrcidHistory orcidHistory
|
* @param orcidHistory the OrcidHistory entity to delete
|
||||||
* @throws SQLException if database error
|
* @throws SQLException if database error
|
||||||
*/
|
*/
|
||||||
public void delete(Context context, OrcidHistory orcidHistory) throws SQLException;
|
public void delete(Context context, OrcidHistory orcidHistory) throws SQLException;
|
||||||
@@ -90,7 +90,7 @@ public interface OrcidHistoryService {
|
|||||||
* Update the OrcidHistory
|
* Update the OrcidHistory
|
||||||
*
|
*
|
||||||
* @param context context
|
* @param context context
|
||||||
* @param OrcidHistory orcidHistory
|
* @param orcidHistory the OrcidHistory entity to update
|
||||||
* @throws SQLException if database error
|
* @throws SQLException if database error
|
||||||
*/
|
*/
|
||||||
public void update(Context context, OrcidHistory orcidHistory) throws SQLException;
|
public void update(Context context, OrcidHistory orcidHistory) throws SQLException;
|
||||||
|
@@ -142,10 +142,8 @@ public interface OrcidQueueService {
|
|||||||
* Get the orcid queue records by the owner and entity.
|
* Get the orcid queue records by the owner and entity.
|
||||||
*
|
*
|
||||||
* @param context DSpace context object
|
* @param context DSpace context object
|
||||||
* @param ownerId the owner item
|
* @param owner the owner item
|
||||||
* @param entityId the entity item
|
* @param entity the entity item
|
||||||
* @param limit limit
|
|
||||||
* @param offset offset
|
|
||||||
* @return the found OrcidQueue records
|
* @return the found OrcidQueue records
|
||||||
* @throws SQLException if an SQL error occurs
|
* @throws SQLException if an SQL error occurs
|
||||||
*/
|
*/
|
||||||
@@ -195,7 +193,7 @@ public interface OrcidQueueService {
|
|||||||
* Delete an OrcidQueue
|
* Delete an OrcidQueue
|
||||||
*
|
*
|
||||||
* @param context DSpace context object
|
* @param context DSpace context object
|
||||||
* @param OrcidQueue orcidQueue
|
* @param orcidQueue the orcidQueue record to delete
|
||||||
* @throws SQLException if database error
|
* @throws SQLException if database error
|
||||||
* @throws AuthorizeException if authorization error
|
* @throws AuthorizeException if authorization error
|
||||||
*/
|
*/
|
||||||
@@ -235,7 +233,7 @@ public interface OrcidQueueService {
|
|||||||
* Update the OrcidQueue
|
* Update the OrcidQueue
|
||||||
*
|
*
|
||||||
* @param context context
|
* @param context context
|
||||||
* @param OrcidQueue orcidQueue
|
* @param orcidQueue the OrcidQueue to update
|
||||||
* @throws SQLException if database error
|
* @throws SQLException if database error
|
||||||
*/
|
*/
|
||||||
public void update(Context context, OrcidQueue orcidQueue) throws SQLException;
|
public void update(Context context, OrcidQueue orcidQueue) throws SQLException;
|
||||||
|
@@ -82,7 +82,7 @@ public interface OrcidSynchronizationService {
|
|||||||
*
|
*
|
||||||
* @param context the relevant DSpace Context.
|
* @param context the relevant DSpace Context.
|
||||||
* @param profile the researcher profile to update
|
* @param profile the researcher profile to update
|
||||||
* @param value the new synchronization preference value
|
* @param values the new synchronization preference values
|
||||||
* @return true if the value has actually been updated,
|
* @return true if the value has actually been updated,
|
||||||
* false if the value to be set is the same as
|
* false if the value to be set is the same as
|
||||||
* the one already configured
|
* the one already configured
|
||||||
|
@@ -64,7 +64,7 @@ public class ExternalSourceEntryOrcidQueueUriListHandler
|
|||||||
|
|
||||||
matcher.find();
|
matcher.find();
|
||||||
String id = matcher.group(1);
|
String id = matcher.group(1);
|
||||||
Integer queueId = Integer.parseInt(id);
|
int queueId = Integer.parseInt(id);
|
||||||
try {
|
try {
|
||||||
orcidQueue = orcidQueueService.find(context, queueId);
|
orcidQueue = orcidQueueService.find(context, queueId);
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
|
@@ -68,7 +68,7 @@ public class OrcidHistorySendToOrcidRestPermissionEvaluatorPlugin extends RestOb
|
|||||||
|
|
||||||
matcher.find();
|
matcher.find();
|
||||||
String id = matcher.group(1);
|
String id = matcher.group(1);
|
||||||
Integer queueId = Integer.parseInt(id);
|
int queueId = Integer.parseInt(id);
|
||||||
OrcidQueue orcidQueue = null;
|
OrcidQueue orcidQueue = null;
|
||||||
try {
|
try {
|
||||||
orcidQueue = orcidQueueService.find(context, queueId);
|
orcidQueue = orcidQueueService.find(context, queueId);
|
||||||
|
Reference in New Issue
Block a user