Package hudson.security
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 Summary
Modifier and TypeMethodDescriptiondefault void
checkAnyPermission
(Permission... permission) Convenient short-cut forgetACL().checkAnyPermission(permission)
default void
checkPermission
(Permission permission) Convenient short-cut forgetACL().checkPermission(permission)
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) Deprecated.default boolean
hasPermission2
(org.springframework.security.core.Authentication a, Permission permission) Convenient short-cut forgetACL().hasPermission2(a, permission)
-
Method Details
-
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:
-
hasPermission
Convenient short-cut forgetACL().hasPermission(permission)
-
hasAnyPermission
Convenient short-cut forgetACL().hasAnyPermission(permission)
- Since:
- 2.222
- See Also:
-
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
-
hasPermission2(org.springframework.security.core.Authentication, hudson.security.Permission)