Package hudson.views
Class SecurityFilter
java.lang.Object
hudson.views.ViewJobFilter
hudson.views.AbstractIncludeExcludeJobFilter
hudson.views.SecurityFilter
- All Implemented Interfaces:
ExtensionPoint,Describable<ViewJobFilter>
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 ClassesNested classes/interfaces inherited from class hudson.views.AbstractIncludeExcludeJobFilter
AbstractIncludeExcludeJobFilter.IncludeExcludeTypeNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecurityFilter(String permissionCheckType, boolean configure, boolean build, boolean workspace, String includeExcludeTypeString) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisBuild()booleanbooleanprotected booleanmatches(TopLevelItem item) Methods inherited from class hudson.views.AbstractIncludeExcludeJobFilter
doFilter, exclude, filter, filterItem, getIncludeExcludeTypeString, include, isExcludeMatched, isExcludeUnmatched, isIncludeMatched, isIncludeUnmatchedMethods inherited from class hudson.views.ViewJobFilter
all, getDescriptor
-
Field Details
-
ALL
- See Also:
-
ONE
- See Also:
-
-
Constructor Details
-
SecurityFilter
-
-
Method Details
-
matches
- Overrides:
matchesin classAbstractIncludeExcludeJobFilter
-
getPermissionCheckType
-
isConfigure
public boolean isConfigure() -
isBuild
public boolean isBuild() -
isWorkspace
public boolean isWorkspace()
-