Package hudson.plugins.copyartifact
Class CopyArtifactPermissionProperty
- java.lang.Object
-
- hudson.model.JobProperty<Job<?,?>>
-
- hudson.plugins.copyartifact.CopyArtifactPermissionProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
public class CopyArtifactPermissionProperty extends JobProperty<Job<?,?>>
Job Property to define projects that can copy artifacts of this project.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CopyArtifactPermissionProperty.DescriptorImpl
Descriptor forCopyArtifactPermissionProperty
.-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_NAME
-
Fields inherited from class hudson.model.JobProperty
owner
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description CopyArtifactPermissionProperty(String projectNames)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canCopiedBy(Job<?,?> copier)
static boolean
canCopyArtifact(Job<?,?> copier, Job<?,?> copiee)
Convenient wrapper forcanCopiedBy(Job)
List<String>
getProjectNameList()
String
getProjectNames()
-
Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, setOwner
-
-
-
-
Field Detail
-
PROPERTY_NAME
public static final String PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CopyArtifactPermissionProperty
@DataBoundConstructor public CopyArtifactPermissionProperty(String projectNames)
Constructor- Parameters:
projectNames
- comma-separated project names that can copy artifacts of this project.
-
-
Method Detail
-
getProjectNameList
public List<String> getProjectNameList()
- Returns:
- list of project names that can copy artifacts of this project.
-
getProjectNames
public String getProjectNames()
- Returns:
- comma-separated project names that can copy artifacts of this project.
-
canCopiedBy
public boolean canCopiedBy(Job<?,?> copier)
- Parameters:
copier
- a project who wants to copy artifacts of this project.- Returns:
- whether copier is allowed to copy artifacts of this project.
-
canCopyArtifact
public static boolean canCopyArtifact(Job<?,?> copier, Job<?,?> copiee)
Convenient wrapper forcanCopiedBy(Job)
- Parameters:
copier
- a project that wants to copy artifacts of copiee.copiee
- a owner of artifacts.- Returns:
- whether copier can copy artifacts of copiee.
-
-