public class ProjectIdentity extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>> implements PluginConstants
Persists role, family id, member id.
Modifier and Type | Class and Description |
---|---|
static class |
ProjectIdentity.Mode
Identity equality mode.
|
static class |
ProjectIdentity.TheDescriptor |
Modifier and Type | Field and Description |
---|---|
static ProjectIdentity.TheDescriptor |
META |
CASCADE_PROJECT_ICON, CASCADE_PROJECT_NAME, CASCADE_PROJECT_PRONOUN, LAYOUT_ACTION_ICON, LAYOUT_ACTION_NAME, LAYOUT_ACTION_URL, LOGGER_PREFIX, MEMBER_ACTION_ICON, MEMBER_ACTION_NAME, MEMBER_ACTION_URL, MEMBER_GRAPH_NAME, MEMBER_VIEW_ICON, MEMBER_VIEW_NAME, MEMBER_VIEW_URL, PLUGIN_HELP, PLUGIN_ICON, PLUGIN_ID, PLUGIN_IMAGES, PLUGIN_IMAGES_16, PLUGIN_IMAGES_24, PLUGIN_IMAGES_32, PLUGIN_IMAGES_48, PLUGIN_NAME, PLUGIN_URL
Constructor and Description |
---|
ProjectIdentity(ProjectRole role,
String familyID,
String projectID) |
ProjectIdentity(String projectRole,
String familyID,
String projectID) |
Modifier and Type | Method and Description |
---|---|
static hudson.model.AbstractProject |
abstractProject(ProjectIdentity one,
ProjectIdentity.Mode mode)
Find project by role and family.
|
static hudson.model.AbstractProject |
abstractProject(ProjectRole role,
String familyID,
String projectID,
ProjectIdentity.Mode mode)
Find project.
|
CascadeProject |
cascadeProject()
Find cascade project by role, family.
|
static CascadeProject |
cascadeProject(ProjectIdentity identity)
Find cascade project by role, family.
|
static ProjectIdentity |
ensureCascadeIdentity(hudson.model.AbstractProject<?,?> layoutProject,
hudson.model.AbstractProject<?,?> cascadeProject)
Generate unique identity for cascade project.
|
static ProjectIdentity |
ensureLayoutIdentity(hudson.model.AbstractProject<?,?> layoutProject)
Generate unique identity for layout project.
|
static ProjectIdentity |
ensureMemberIdentity(hudson.model.AbstractProject<?,?> layoutProject,
hudson.model.AbstractProject<?,?> memberProject)
Generate unique identity for member project.
|
boolean |
equals(Object other)
Equality by role, family id, project id.
|
boolean |
equalsFamily(Object other)
Equality by family id.
|
boolean |
equalsRole(Object other)
Equality by role.
|
boolean |
equalsRoleFamily(Object other)
Equality by role and family.
|
boolean |
equalsRoleFamilyProject(Object other)
Equality by role, family, project.
|
static String |
familyID(hudson.model.AbstractProject<?,?> project)
Extract family id from the project.
|
List<hudson.model.AbstractProject> |
familyProjectList()
Find all cascade family projects.
|
static List<hudson.model.AbstractProject> |
familyProjectList(String familyID)
Find all cascade family projects.
|
hudson.model.ListView |
familyView()
Find cascade family view.
|
static hudson.model.ListView |
familyView(ProjectIdentity identity)
Find cascade family view.
|
String |
familyViewName()
Find cascade family view.
|
static String |
familyViewName(ProjectIdentity identity)
Find cascade family view.
|
ProjectIdentity.TheDescriptor |
getDescriptor() |
String |
getFamilyID()
Cascade project family id.
|
Collection<? extends hudson.model.Action> |
getJobActions(hudson.model.AbstractProject<?,?> project) |
String |
getProjectID()
ID of a member project.
|
String |
getProjectRole()
Project role in the family.
|
static boolean |
hasIdentity(hudson.model.AbstractProject project)
Verify a project has this property with all component fields.
|
static ProjectIdentity |
identity(hudson.model.AbstractProject<?,?> project)
Extract this property from project.
|
String |
identityRole()
Identity by role.
|
String |
identityRoleFamily()
Identity by role and family.
|
String |
identityRoleFamilyProject()
Identity by role, family, project.
|
boolean |
isValid()
Verify all component fields present.
|
hudson.maven.MavenModuleSet |
layoutProject()
Find layout project by family.
|
static hudson.maven.MavenModuleSet |
layoutProject(ProjectIdentity identity)
Find layout project by role, family.
|
String |
log()
Cascade event log.
|
void |
log(String text)
Append to cascade event log.
|
hudson.maven.MavenModuleSet |
memberProject()
Find member project by family.
|
hudson.maven.MavenModuleSet |
memberProject(hudson.maven.ModuleName moduleName)
Find member project with module name.
|
static hudson.maven.MavenModuleSet |
memberProject(ProjectIdentity identity)
Find member project by role, family, member.
|
List<hudson.maven.MavenModuleSet> |
memberProjectList()
Find member projects in a family.
|
static List<hudson.maven.MavenModuleSet> |
memberProjectList(String familyID)
Find member projects by role, family.
|
ProjectRole |
role()
Find project role.
|
String |
toString()
Render project identity as unique string.
|
@Extension public static final ProjectIdentity.TheDescriptor META
public ProjectIdentity(ProjectRole role, String familyID, String projectID)
public static hudson.model.AbstractProject abstractProject(ProjectIdentity one, ProjectIdentity.Mode mode)
public static hudson.model.AbstractProject abstractProject(ProjectRole role, String familyID, String projectID, ProjectIdentity.Mode mode)
public static CascadeProject cascadeProject(ProjectIdentity identity)
public static ProjectIdentity ensureCascadeIdentity(hudson.model.AbstractProject<?,?> layoutProject, hudson.model.AbstractProject<?,?> cascadeProject) throws IOException
IOException
public static ProjectIdentity ensureLayoutIdentity(hudson.model.AbstractProject<?,?> layoutProject) throws IOException
IOException
public static ProjectIdentity ensureMemberIdentity(hudson.model.AbstractProject<?,?> layoutProject, hudson.model.AbstractProject<?,?> memberProject) throws IOException
IOException
public static String familyID(hudson.model.AbstractProject<?,?> project)
public static List<hudson.model.AbstractProject> familyProjectList(String familyID)
public static hudson.model.ListView familyView(ProjectIdentity identity)
public static String familyViewName(ProjectIdentity identity)
public static boolean hasIdentity(hudson.model.AbstractProject project)
public static ProjectIdentity identity(hudson.model.AbstractProject<?,?> project)
public static hudson.maven.MavenModuleSet layoutProject(ProjectIdentity identity)
public static hudson.maven.MavenModuleSet memberProject(ProjectIdentity identity)
public static List<hudson.maven.MavenModuleSet> memberProjectList(String familyID)
public CascadeProject cascadeProject()
public boolean equals(Object other)
public boolean equalsFamily(Object other)
public boolean equalsRole(Object other)
public boolean equalsRoleFamily(Object other)
public boolean equalsRoleFamilyProject(Object other)
public List<hudson.model.AbstractProject> familyProjectList()
public hudson.model.ListView familyView()
public String familyViewName()
public ProjectIdentity.TheDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.model.JobProperty<?>>
getDescriptor
in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
public String getFamilyID()
public Collection<? extends hudson.model.Action> getJobActions(hudson.model.AbstractProject<?,?> project)
getJobActions
in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
public String getProjectID()
public String getProjectRole()
public String identityRole()
public String identityRoleFamily()
public String identityRoleFamilyProject()
public boolean isValid()
public hudson.maven.MavenModuleSet layoutProject()
public String log()
public void log(String text)
public hudson.maven.MavenModuleSet memberProject()
public hudson.maven.MavenModuleSet memberProject(hudson.maven.ModuleName moduleName)
public List<hudson.maven.MavenModuleSet> memberProjectList()
public ProjectRole role()
Copyright © 2004-2013 Barchart, Inc.. All Rights Reserved.