Package hudson.security
Interface AccessControlled
-
- All Known Subinterfaces:
BuildableItem
,BuildableItemWithBuildWrappers
,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 anACL
- Since:
- 1.220
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default void
checkAnyPermission(Permission... permission)
Convenient short-cut forgetACL().checkAnyPermission(permission)
default void
checkPermission(Permission permission)
Convenient short-cut forgetACL().checkPermission(permission)
ACL
getACL()
Obtains the ACL associated with this object.default boolean
hasAnyPermission(Permission... permission)
Convenient short-cut forgetACL().hasAnyPermission(permission)
default boolean
hasPermission(Permission permission)
Convenient short-cut forgetACL().hasPermission(permission)
default boolean
hasPermission(Authentication a, Permission permission)
default boolean
hasPermission2(org.springframework.security.core.Authentication a, Permission permission)
Convenient short-cut forgetACL().hasPermission2(a, permission)
-
-
-
Method Detail
-
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 forgetACL().checkPermission(permission)
- Throws:
org.springframework.security.access.AccessDeniedException
-
checkAnyPermission
default void checkAnyPermission(@NonNull Permission... permission) throws org.springframework.security.access.AccessDeniedException
Convenient short-cut forgetACL().checkAnyPermission(permission)
- Throws:
org.springframework.security.access.AccessDeniedException
- Since:
- 2.222
- See Also:
ACL.checkAnyPermission(Permission...)
-
hasPermission
default boolean hasPermission(@NonNull Permission permission)
Convenient short-cut forgetACL().hasPermission(permission)
-
hasAnyPermission
default boolean hasAnyPermission(@NonNull Permission... permission)
Convenient short-cut forgetACL().hasAnyPermission(permission)
- Since:
- 2.222
- See Also:
ACL.hasAnyPermission(Permission...)
-
hasPermission2
default boolean hasPermission2(@NonNull org.springframework.security.core.Authentication a, @NonNull Permission permission)
Convenient short-cut forgetACL().hasPermission2(a, permission)
- Since:
- 2.266
-
hasPermission
@Deprecated default boolean hasPermission(@NonNull Authentication a, @NonNull Permission permission)
Deprecated.- Since:
- 2.92
-
-