org.hudsonci.utils.tasks
Class MetaProject
java.lang.Object
org.hudsonci.utils.tasks.MetaProject
public class MetaProject
- extends Object
Provides a unified interface for AbstractProject types.
Avoiding generic types where possible to avoid evil "inconvertible types" due to capture### crap.
- Since:
- 2.1.0
- Author:
- Jason Dillon
MetaProject
public MetaProject(AbstractProject project)
getDelegate
public AbstractProject getDelegate()
getType
public MetaProject.Type getType()
isSupported
public boolean isSupported()
isNormal
public boolean isNormal()
isMultiConfig
public boolean isMultiConfig()
toString
public String toString()
- Overrides:
toString in class Object
asNormal
public Project<?,?> asNormal()
- Typed access to project instance as a normal
Project.
asMultiConfig
public MatrixProject asMultiConfig()
- Typed access to project instance as a multi-config
MatrixProject.
getParent
public ItemGroup getParent()
getName
public String getName()
getFullName
public String getFullName()
getDisplayName
public String getDisplayName()
getFullDisplayName
public String getFullDisplayName()
getId
public UUID getId()
setEnabled
public void setEnabled(boolean enabled)
throws IOException
- Throws:
IOException
isEnabled
public boolean isEnabled()
getProperties
public Collection<JobProperty> getProperties()
addProperty
public void addProperty(JobProperty item)
throws IOException
- Throws:
IOException
getTriggers
public Collection<Trigger> getTriggers()
addTrigger
public void addTrigger(Trigger item)
throws IOException
- Throws:
IOException
getBuildWrappersList
public DescribableList<BuildWrapper,Descriptor<BuildWrapper>> getBuildWrappersList()
- Throws:
UnsupportedProjectException - if the Project type is MetaProject.Type.UNSUPPORTED.
getBuildWrappers
public Collection<BuildWrapper> getBuildWrappers()
- Throws:
UnsupportedProjectException - if the Project type is MetaProject.Type.UNSUPPORTED.
getBuildersList
public DescribableList<Builder,Descriptor<Builder>> getBuildersList()
- Throws:
UnsupportedProjectException - if the Project type is MetaProject.Type.UNSUPPORTED.
getBuilders
public Collection<Builder> getBuilders()
- Throws:
UnsupportedProjectException - if the Project type is MetaProject.Type.UNSUPPORTED.
getPublishersList
public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList()
- Throws:
UnsupportedProjectException - if the Project type is MetaProject.Type.UNSUPPORTED.
getPublishers
public Collection<Publisher> getPublishers()
- Throws:
UnsupportedProjectException - if the Project type is MetaProject.Type.UNSUPPORTED.
checkPermission
public void checkPermission(Permission perm)
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
list
public static Collection<MetaProject> list(MetaProject.Filter filter)
list
public static Collection<MetaProject> list()
find
public static MetaProject find(UUID id)
find
public static MetaProject find(String id)
Copyright © 2004-2011 Hudson. All Rights Reserved.