Skip to content

Commit

Permalink
update Renamable javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
car-roll committed Sep 7, 2023
1 parent 73f451e commit b7eed6f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions core/src/main/java/hudson/model/Renamable.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,37 @@

import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.util.FormValidation;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.ProtectedExternally;
import org.kohsuke.stapler.HttpResponse;
import org.kohsuke.stapler.QueryParameter;

/**
* Interface used to create a dedicated page that changes the name property of an Object.
* See also {@link jenkins.model.RenameAction}.
*
* @since TODO
*/
@Restricted(ProtectedExternally.class)
public interface Renamable {

/**
* Controls whether the default rename action is available for this object.
*
* @return whether the name can be modified by a user
* @since TODO
*/
boolean isNameEditable();

/**
* Renames the object
*
* @since TODO
*/
HttpResponse doConfirmRename(@QueryParameter String newName) throws Exception;

/**
* Controls whether the default rename action is available.
*
* @return whether object name can be modified by a user
* @since TODO
*/
@NonNull
FormValidation doCheckNewName(@QueryParameter String newName);
Expand Down

0 comments on commit b7eed6f

Please sign in to comment.