Enum CopyArtifactCompatibilityMode

    • Enum Constant Detail


        public static final CopyArtifactCompatibilityMode PRODUCTION
        The production-ready mode for the permission check on the projects we want to copy the artifacts from. Once all the jobs are migrated using the MIGRATION mode, this mode could be activated to ensure better security.

        public static final CopyArtifactCompatibilityMode MIGRATION
        Legacy behavior where the project we want to copy the artifact from is checked either at configure time or at runtime depending on who is configuring the project and if it's static or dynamic (using parameter) When a copy is done but the permission should not have been correct in PRODUCTION, an item is added to the monitor list to help the administrator to improve the current situation and allow them to use the better mode in short/mid term. This mode is NOT meant to be used in long term as it contains security defect.
        See Also:
    • Method Detail

      • values

        public static CopyArtifactCompatibilityMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CopyArtifactCompatibilityMode c : CopyArtifactCompatibilityMode.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CopyArtifactCompatibilityMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getDescription

        public String getDescription()
      • getName

        public String getName()