Package org.jvnet.hudson.test
Class MockAuthorizationStrategy.Grant
- java.lang.Object
-
- org.jvnet.hudson.test.MockAuthorizationStrategy.Grant
-
- Enclosing class:
- MockAuthorizationStrategy
public class MockAuthorizationStrategy.Grant extends Object
A grant of a set of permissions. You must proceed to specify where they should be granted.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classMockAuthorizationStrategy.Grant.GrantOnA grant of some permissions in certain places.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MockAuthorizationStrategy.Grant.GrantOneverywhere()Everywhere in Jenkins.MockAuthorizationStrategy.Grant.GrantOnonFolders(hudson.model.ItemGroup<?>... folders)On some item groups, typically folders.MockAuthorizationStrategy.Grant.GrantOnonItems(hudson.model.Item... items)On some items such as jobs.MockAuthorizationStrategy.Grant.GrantOnonPaths(String... pathRegexps)On some item path expressions.MockAuthorizationStrategy.Grant.GrantOnonRoot()OnJenkinsitself, but not any child objects.
-
-
-
Method Detail
-
everywhere
public MockAuthorizationStrategy.Grant.GrantOn everywhere()
Everywhere in Jenkins.
-
onRoot
public MockAuthorizationStrategy.Grant.GrantOn onRoot()
OnJenkinsitself, but not any child objects.
-
onItems
public MockAuthorizationStrategy.Grant.GrantOn onItems(hudson.model.Item... items)
On some items such as jobs. If some of these happen to beItemGroups, the grant is not applied to children.
-
onFolders
public MockAuthorizationStrategy.Grant.GrantOn onFolders(hudson.model.ItemGroup<?>... folders)
On some item groups, typically folders. The grant applies to the folder itself as well as any (direct or indirect) children.
-
onPaths
public MockAuthorizationStrategy.Grant.GrantOn onPaths(String... pathRegexps)
On some item path expressions. Each element is an implicitly rooted regular expression.Jenkinsitself is"", a top-level job would be"jobname", a nested job would be"folder/jobname", etc. Grants are not implicitly applied to child objects.
-
-