Tabnine Logo
AbstractFolder.hasPermission
Code IndexAdd Tabnine to your IDE (free)

How to use
hasPermission
method
in
com.cloudbees.hudson.plugins.folder.AbstractFolder

Best Java code snippets using com.cloudbees.hudson.plugins.folder.AbstractFolder.hasPermission (Showing top 2 results out of 315)

origin: jenkinsci/multi-branch-project-plugin

if (!folder.hasPermission(Item.CONFIGURE)) {
  return FormValidation.ok();
origin: org.jenkins-ci.plugins/cloudbees-folder

@Restricted(DoNotUse.class)
@RequirePOST
public void doDoRename(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException {
  if (!hasPermission(CONFIGURE)) {
    // rename is essentially delete followed by a create
    checkPermission(CREATE);
    checkPermission(DELETE);
  }
  String newName = req.getParameter("newName");
  Jenkins.checkGoodName(newName);
  String blocker = renameBlocker();
  if (blocker != null) {
    rsp.sendRedirect("rename?newName=" + URLEncoder.encode(newName, "UTF-8") + "&blocker=" + URLEncoder.encode(blocker, "UTF-8"));
    return;
  }
  renameTo(newName);
  rsp.sendRedirect2("../" + newName);
}
com.cloudbees.hudson.plugins.folderAbstractFolderhasPermission

Popular methods of AbstractFolder

  • getProperties
    May be used to enumerate or remove properties. To add properties, use #addProperty.
  • getAllJobs
  • getItem
  • getParent
  • save
  • addAction
  • addOrReplaceAction
    Add an action, replacing any existing actions of the (exact) same class. Note: calls to #getAllActio
  • addView
  • checkPermission
  • checkRename
  • childNameGenerator
  • doConfigSubmit
  • childNameGenerator,
  • doConfigSubmit,
  • getACL,
  • getAbsoluteUrl,
  • getActions,
  • getBuildHealthReports,
  • getDescriptor,
  • getDisplayName,
  • getFolderViews

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JComboBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now