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
  • Method Details

    • setInheritanceStrategy

      void setInheritanceStrategy(org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy inheritanceStrategy)
    • getInheritanceStrategy

      org.jenkinsci.plugins.matrixauth.inheritance.InheritanceStrategy getInheritanceStrategy()
    • setBlocksInheritance

      @Deprecated default void setBlocksInheritance(boolean blocksInheritance)
      Deprecated.
      Use InheritanceStrategy 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 the NonInheritingStrategy, true will set the InheritGlobalStrategy. Note that for items nested inside folders, this will change behavior significantly.
      Since:
      2.0
    • isBlocksInheritance

      @Deprecated default boolean isBlocksInheritance()
      Deprecated.
      Returns true if the authorization matrix is configured to block inheritance from the parent. Since the introduction of inheritance strategies, returns true if and only if the selected inheritance strategy is NonInheritingStrategy.
      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

      default List<AuthorizationProperty.DslEntry> getEntries()
      Getter supporting nicer DSL syntax for Job DSL and Pipeline job property definitions.
      Returns:
      a list of AuthorizationProperty.DslEntry