Package hudson.plugins.copyartifact
Enum CopyArtifactCompatibilityMode
- java.lang.Object
-
- java.lang.Enum<CopyArtifactCompatibilityMode>
-
- hudson.plugins.copyartifact.CopyArtifactCompatibilityMode
-
- All Implemented Interfaces:
Serializable
,Comparable<CopyArtifactCompatibilityMode>
public enum CopyArtifactCompatibilityMode extends Enum<CopyArtifactCompatibilityMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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 inPRODUCTION
, 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.PRODUCTION
The production-ready mode for the permission check on the projects we want to copy the artifacts from.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getName()
static CopyArtifactCompatibilityMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static CopyArtifactCompatibilityMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PRODUCTION
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 theMIGRATION
mode, this mode could be activated to ensure better security.
-
MIGRATION
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 inPRODUCTION
, 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:
MigrationModeDisabledMonitor
-
-
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()) System.out.println(c);
- Returns:
- 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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescription
public String getDescription()
-
getName
public String getName()
-
-