Package hudson.views
Class SecurityFilter
- java.lang.Object
-
- hudson.views.ViewJobFilter
-
- hudson.views.AbstractIncludeExcludeJobFilter
-
- hudson.views.SecurityFilter
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ViewJobFilter>
public class SecurityFilter extends AbstractIncludeExcludeJobFilter
The purpose of this filter is to identify items that have certain privileges granted for the current user, and match those items. For example, I may have set up security so that certain users can only read certain jobs; that's fine from a security standpoint, but I also want to leverage that security to create useful views; for example, one view that shows me all jobs I can configure, and another view that shows me all jobs I can only read. There's no point in matching by whether you can read a job, because if you can't see it, it won't show up anyways.- Author:
- jacob
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityFilter.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.views.AbstractIncludeExcludeJobFilter
AbstractIncludeExcludeJobFilter.IncludeExcludeType
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SecurityFilter(String permissionCheckType, boolean configure, boolean build, boolean workspace, String includeExcludeTypeString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPermissionCheckType()
boolean
isBuild()
boolean
isConfigure()
boolean
isWorkspace()
protected boolean
matches(TopLevelItem item)
-
Methods inherited from class hudson.views.AbstractIncludeExcludeJobFilter
doFilter, exclude, filter, filterItem, getIncludeExcludeTypeString, include, isExcludeMatched, isExcludeUnmatched, isIncludeMatched, isIncludeUnmatched
-
Methods inherited from class hudson.views.ViewJobFilter
all, getDescriptor
-
-
-
-
Field Detail
-
ALL
public static final String ALL
- See Also:
- Constant Field Values
-
ONE
public static final String ONE
- See Also:
- Constant Field Values
-
-
Method Detail
-
matches
protected boolean matches(TopLevelItem item)
- Overrides:
matches
in classAbstractIncludeExcludeJobFilter
-
getPermissionCheckType
public String getPermissionCheckType()
-
isConfigure
public boolean isConfigure()
-
isBuild
public boolean isBuild()
-
isWorkspace
public boolean isWorkspace()
-
-