Package com.microsoft.jenkins.azuread
Interface AuthorizationProperty
- All Superinterfaces:
AuthorizationContainer
- All Known Implementing Classes:
AuthorizationMatrixNodeProperty
,AuthorizationMatrixProperty
,AuthorizationMatrixProperty
,AzureAdAuthorizationMatrixFolderProperty
,AzureAdAuthorizationMatrixNodeProperty
,AzureAdAuthorizationMatrixProperty
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public interface AuthorizationProperty
extends AuthorizationContainer
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Common superclass forAuthorizationProperty.DslUser
,AuthorizationProperty.DslGroup
, andAuthorizationProperty.DslUserOrGroup
, supporting nicer DSLs for Job DSL and Pipeline Job definitions/reconfigurations.static class
Represents a group being assigned permissions.static class
Represents a user being assigned permissions.static class
Represents a user or group being assigned permissions.Nested classes/interfaces inherited from interface com.microsoft.jenkins.azuread.AuthorizationContainer
AuthorizationContainer.IdStrategyComparator, AuthorizationContainer.PermissionEntryComparator
-
Field Summary
Fields inherited from interface com.microsoft.jenkins.azuread.AuthorizationContainer
LOGGER
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<AuthorizationProperty.DslEntry>
Getter supporting nicer DSL syntax for Job DSL and Pipeline job property definitions.org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy
default boolean
Deprecated.default void
setBlocksInheritance
(boolean blocksInheritance) Deprecated.UseInheritanceStrategy
instead.default void
setEntries
(List<AuthorizationProperty.DslEntry> entries) Set entries from DSL in Job DSL or Pipeline plugins.void
setInheritanceStrategy
(org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy) Methods inherited from interface com.microsoft.jenkins.azuread.AuthorizationContainer
add, add, add, getAllPermissionEntries, getAllSIDs, getDescriptor, getEditingPermission, getGrantedPermissionEntries, getGrantedPermissions, getGroups, hasExplicitPermission, hasExplicitPermission, hasPermission, hasPermission, recordGroup
-
Method Details
-
setInheritanceStrategy
void setInheritanceStrategy(org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy) -
getInheritanceStrategy
org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy getInheritanceStrategy() -
setBlocksInheritance
Deprecated.UseInheritanceStrategy
instead.Sets the flag to block inheritance. Since the introduction of inheritance strategies, set the inheritance strategy roughly matching the previous behavior, i.e.false
will set theNonInheritingStrategy
,true
will set theInheritGlobalStrategy
. Note that for items nested inside folders, this will change behavior significantly.- Since:
- 2.0
-
isBlocksInheritance
Deprecated.UsegetInheritanceStrategy()
instead.Returns true if the authorization matrix is configured to block inheritance from the parent. Since the introduction of inheritance strategies, returnstrue
if and only if the selected inheritance strategy isNonInheritingStrategy
.- Since:
- 2.0
-
setEntries
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) default void setEntries(List<AuthorizationProperty.DslEntry> entries) Set entries from DSL in Job DSL or Pipeline plugins.- Parameters:
entries
- list of entries to use for permission assignment
-
getEntries
Getter supporting nicer DSL syntax for Job DSL and Pipeline job property definitions.- Returns:
- a list of
AuthorizationProperty.DslEntry
-
getInheritanceStrategy()
instead.