Skip to content

Commit

Permalink
Added the "Command" to the names of the new commands - for consistenc…
Browse files Browse the repository at this point in the history
…y with all the other commands. #9356
  • Loading branch information
landreev committed Mar 20, 2024
1 parent 92e3650 commit 6a4552a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/DatasetPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import edu.harvard.iq.dataverse.engine.command.Command;
import edu.harvard.iq.dataverse.engine.command.CommandContext;
import edu.harvard.iq.dataverse.engine.command.exception.CommandException;
import edu.harvard.iq.dataverse.engine.command.impl.CheckRateLimitForDatasetPage;
import edu.harvard.iq.dataverse.engine.command.impl.CheckRateLimitForDatasetPageCommand;
import edu.harvard.iq.dataverse.engine.command.impl.CreatePrivateUrlCommand;
import edu.harvard.iq.dataverse.engine.command.impl.CuratePublishedDatasetVersionCommand;
import edu.harvard.iq.dataverse.engine.command.impl.DeaccessionDatasetVersionCommand;
Expand Down Expand Up @@ -1937,7 +1937,7 @@ private void setIdByPersistentId() {

private String init(boolean initFull) {
// Check for rate limit exceeded. Must be done before anything else to prevent unnecessary processing.
if (!cacheFactory.checkRate(session.getUser(), new CheckRateLimitForDatasetPage(null,null))) {
if (!cacheFactory.checkRate(session.getUser(), new CheckRateLimitForDatasetPageCommand(null,null))) {
return navigationWrapper.tooManyRequests();
}
//System.out.println("_YE_OLDE_QUERY_COUNTER_"); // for debug purposes
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/DataversePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import edu.harvard.iq.dataverse.dataverse.DataverseUtil;
import edu.harvard.iq.dataverse.engine.command.Command;
import edu.harvard.iq.dataverse.engine.command.exception.CommandException;
import edu.harvard.iq.dataverse.engine.command.impl.CheckRateLimitForCollectionPage;
import edu.harvard.iq.dataverse.engine.command.impl.CheckRateLimitForCollectionPageCommand;
import edu.harvard.iq.dataverse.engine.command.impl.CreateDataverseCommand;
import edu.harvard.iq.dataverse.engine.command.impl.CreateSavedSearchCommand;
import edu.harvard.iq.dataverse.engine.command.impl.DeleteDataverseCommand;
Expand Down Expand Up @@ -326,7 +326,7 @@ public void updateOwnerDataverse() {
public String init() {
//System.out.println("_YE_OLDE_QUERY_COUNTER_"); // for debug purposes
// Check for rate limit exceeded. Must be done before anything else to prevent unnecessary processing.
if (!cacheFactory.checkRate(session.getUser(), new CheckRateLimitForCollectionPage(null,null))) {
if (!cacheFactory.checkRate(session.getUser(), new CheckRateLimitForCollectionPageCommand(null,null))) {
return navigationWrapper.tooManyRequests();
}
if (this.getAlias() != null || this.getId() != null || this.getOwnerId() == null) {// view mode for a dataverse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import edu.harvard.iq.dataverse.engine.command.DataverseRequest;
import edu.harvard.iq.dataverse.engine.command.exception.CommandException;

public class CheckRateLimitForCollectionPage extends AbstractVoidCommand {
public CheckRateLimitForCollectionPage(DataverseRequest aRequest, DvObject dvObject) {
public class CheckRateLimitForCollectionPageCommand extends AbstractVoidCommand {
public CheckRateLimitForCollectionPageCommand(DataverseRequest aRequest, DvObject dvObject) {
super(aRequest, dvObject);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import edu.harvard.iq.dataverse.engine.command.DataverseRequest;
import edu.harvard.iq.dataverse.engine.command.exception.CommandException;

public class CheckRateLimitForDatasetPage extends AbstractVoidCommand {
public class CheckRateLimitForDatasetPageCommand extends AbstractVoidCommand {

public CheckRateLimitForDatasetPage(DataverseRequest aRequest, DvObject dvObject) {
public CheckRateLimitForDatasetPageCommand(DataverseRequest aRequest, DvObject dvObject) {
super(aRequest, dvObject);
}

Expand Down

0 comments on commit 6a4552a

Please sign in to comment.