/** * @deprecated since 1.277 * Override {@link #getACL(Job)} instead. */ @Deprecated public @Nonnull ACL getACL(@Nonnull AbstractProject<?,?> project) { return getACL((Job)project); }
/** * Implementation can choose to provide different ACL for different computers. * This can be used as a basis for more fine-grained access control. * * <p> * The default implementation delegates to {@link #getACL(Node)} * * @since 1.220 */ public @Nonnull ACL getACL(@Nonnull Computer computer) { return getACL(computer.getNode()); }
/** * Returns the {@link ACL} for this object. */ public ACL getACL() { return Jenkins.getInstance().getAuthorizationStrategy().getACL(this); }
/** * Returns the {@link ACL} for this object. */ public ACL getACL() { return Jenkins.getInstance().getAuthorizationStrategy().getACL(this); }
/** * Returns the {@link ACL} for this object. * We need to override the identical method in AbstractItem because we won't * call getACL(Job) otherwise (single dispatch) */ @Override public ACL getACL() { return Jenkins.getInstance().getAuthorizationStrategy().getACL(this); }
public ACL getACL() { return Jenkins.get().getAuthorizationStrategy().getACL(this); }
public ACL getACL() { return Jenkins.getInstance().getAuthorizationStrategy().getACL(this); }
public ACL getACL() { return Jenkins.getInstance().getAuthorizationStrategy().getACL(this); }
@Override @Nonnull public ACL getACL() { ACL base = Jenkins.get().getAuthorizationStrategy().getACL(this); // always allow a non-anonymous user full control of himself. return ACL.lambda((a, permission) -> (idStrategy().equals(a.getName(), id) && !(a instanceof AnonymousAuthenticationToken)) || base.hasPermission(a, permission)); }
/** * @deprecated since 1.277 Override {@link #getACL(Job)} instead. */ @Deprecated public ACL getACL(AbstractProject<?, ?> project) { return getACL((Job) project); }
/** * @deprecated since 1.277 * Override {@link #getACL(Job)} instead. */ @Deprecated public @Nonnull ACL getACL(@Nonnull AbstractProject<?,?> project) { return getACL((Job)project); }
/** * Implementation can choose to provide different ACL for different computers. * This can be used as a basis for more fine-grained access control. * * <p> * The default implementation delegates to {@link #getACL(Node)} * * @since 1.220 */ public @Nonnull ACL getACL(@Nonnull Computer computer) { return getACL(computer.getNode()); }
/** * Implementation can choose to provide different ACL for different computers. * This can be used as a basis for more fine-grained access control. * * <p> * The default implementation delegates to {@link #getACL(Node)} * * @since 1.220 */ public ACL getACL(Computer computer) { return getACL(computer.getNode()); }
/** * Returns the {@link ACL} for this object. */ public ACL getACL() { return Jenkins.getInstance().getAuthorizationStrategy().getACL(this); }
public ACL getACL() { final ACL base = Jenkins.getInstance().getAuthorizationStrategy().getACL(this); // always allow a non-anonymous user full control of himself. return new ACL() { public boolean hasPermission(Authentication a, Permission permission) { return (idStrategy().equals(a.getName(), id) && !(a instanceof AnonymousAuthenticationToken)) || base.hasPermission(a, permission); } }; }
/** * Returns the {@link ACL} for this object. */ public ACL getACL() { return Jenkins.getInstance().getAuthorizationStrategy().getACL(this); }
/** * Returns the {@link ACL} for this object. */ public ACL getACL() { return Hudson.getInstance().getAuthorizationStrategy().getACL(this); }
/** * Returns the {@link ACL} for this object. * We need to override the identical method in AbstractItem because we won't * call getACL(Job) otherwise (single dispatch) */ @Override public ACL getACL() { return Hudson.getInstance().getAuthorizationStrategy().getACL(this); }
/** * Returns the {@link ACL} for this object. */ public ACL getACL() { return HudsonSecurityEntitiesHolder.getHudsonSecurityManager().getAuthorizationStrategy().getACL(this); }
@Override public ACL getACL(Computer computer) { initPython(); if (pexec.isImplemented(4)) { return (ACL) pexec.execPython("get_acl", computer); } else { return super.getACL(computer); } }