@@ -0,0 +1,1167 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0A%0Apackage edu.harvard.iq.dataverse.engine.command.impl;%0A%0Aimport edu.harvard.iq.dataverse.Dataset;%0Aimport edu.harvard.iq.dataverse.DataverseUser;%0Aimport edu.harvard.iq.dataverse.engine.Permission;%0Aimport edu.harvard.iq.dataverse.engine.command.AbstractCommand;%0Aimport edu.harvard.iq.dataverse.engine.command.CommandContext;%0Aimport edu.harvard.iq.dataverse.engine.command.RequiredPermissions;%0Aimport edu.harvard.iq.dataverse.engine.command.exception.CommandException;%0A%0A/**%0A *%0A * @author skraffmiller%0A */%0A@RequiredPermissions(Permission.UndoableEdit)%0Apublic class UpdateDatasetCommand extends AbstractCommand%3CDataset%3E %7B%0A%0A    %09private final Dataset theDataset;%0A%0A%09public UpdateDatasetCommand(Dataset theDataset, DataverseUser user) %7B%0A%09%09super( user, theDataset.getOwner() );%0A%09%09this.theDataset = theDataset;%0A%09%7D%0A    %0A    @Override%0A    public Dataset execute(CommandContext ctxt) throws CommandException %7B%0A        return ctxt.datasets().UpdateDatasetCommand(theDataset);%0A       %0A    %7D%0A    %0A%7D%0A

Add Update DatasetCommand