Class AzureAdAuthorizationMatrixProperty

java.lang.Object
hudson.model.JobProperty<Job<?,?>>
com.microsoft.jenkins.azuread.AuthorizationMatrixProperty
com.microsoft.jenkins.azuread.AzureAdAuthorizationMatrixProperty
All Implemented Interfaces:
AuthorizationContainer, AuthorizationProperty, ExtensionPoint, Describable<JobProperty<?>>, ReconfigurableDescribable<JobProperty<?>>, BuildStep

public class AzureAdAuthorizationMatrixProperty extends AuthorizationMatrixProperty
  • Constructor Details

    • AzureAdAuthorizationMatrixProperty

      public AzureAdAuthorizationMatrixProperty()
    • AzureAdAuthorizationMatrixProperty

      public AzureAdAuthorizationMatrixProperty(Map<Permission,Set<PermissionEntry>> grantedPermissions, org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy)
    • AzureAdAuthorizationMatrixProperty

      @DataBoundConstructor @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public AzureAdAuthorizationMatrixProperty(List<AuthorizationProperty.DslEntry> entries)
  • Method Details

    • add

      public void add(Permission p, PermissionEntry entry)
      Description copied from interface: AuthorizationContainer
      Adds to AuthorizationContainer.getGrantedPermissionEntries(). Use of this method should be limited during construction, as this object itself is considered immutable once populated.
    • hasExplicitPermission

      public boolean hasExplicitPermission(PermissionEntry entry, Permission p)
      Description copied from interface: AuthorizationContainer
      Return true if and only if the exact permission entry is explicitly granted the specified permission, ignoring compatible types (e.g. passing USER will not match an EITHER entry) and implications.
      Parameters:
      entry - the entry to check for
      p - the permission to check for
      Returns:
      true if and only if the exact entry matches
    • hasPermission

      public boolean hasPermission(String sid, Permission p, boolean principal)
      Description copied from interface: AuthorizationContainer
      Checks if the given SID has the given permission.