Interface AccessControlled

All Known Subinterfaces:
BuildableItem, BuildableItemWithBuildWrappers, IComputer, Item, ModifiableViewGroup, ParameterizedJobMixIn.ParameterizedJob<JobT,RunT>, SCMedItem, TopLevelItem, TriggeredItem, ViewGroup
All Known Implementing Classes:
AbstractBuild, AbstractCIBase, AbstractCloudComputer, AbstractCloudImpl, AbstractCloudSlave, AbstractItem, AbstractProject, AbstractTopLevelItem, AllView, Build, Cloud, Computer, DumbSlave, FreeStyleBuild, FreeStyleProject, Hudson, Hudson.MasterComputer, HudsonPrivateSecurityRealm, Jenkins, Jenkins.MasterComputer, Job, ListView, MyView, MyViewsProperty, Node, Project, ProxyView, Run, Slave, SlaveComputer, User, View, ViewJob

public interface AccessControlled
Object that has an ACL
Since:
1.220
  • Method Details

    • getACL

      @NonNull ACL getACL()
      Obtains the ACL associated with this object.
      Returns:
      never null.
    • checkPermission

      default void checkPermission(@NonNull Permission permission) throws org.springframework.security.access.AccessDeniedException
      Convenient short-cut for getACL().checkPermission(permission)
      Throws:
      org.springframework.security.access.AccessDeniedException
    • checkAnyPermission

      default void checkAnyPermission(@NonNull Permission... permission) throws org.springframework.security.access.AccessDeniedException
      Convenient short-cut for getACL().checkAnyPermission(permission)
      Throws:
      org.springframework.security.access.AccessDeniedException
      Since:
      2.222
      See Also:
    • hasPermission

      default boolean hasPermission(@NonNull Permission permission)
      Convenient short-cut for getACL().hasPermission(permission)
    • hasAnyPermission

      default boolean hasAnyPermission(@NonNull Permission... permission)
      Convenient short-cut for getACL().hasAnyPermission(permission)
      Since:
      2.222
      See Also:
    • hasPermission2

      default boolean hasPermission2(@NonNull org.springframework.security.core.Authentication a, @NonNull Permission permission)
      Convenient short-cut for getACL().hasPermission2(a, permission)
      Since:
      2.266
    • hasPermission

      @Deprecated default boolean hasPermission(@NonNull Authentication a, @NonNull Permission permission)
      Since:
      2.92