|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.model.AbstractModelObject
com.sonymobile.jenkins.plugins.teamview.Team
public class Team
A team in Jenkins that can contain views.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu |
|---|
jenkins.model.ModelObjectWithContextMenu.ContextMenu, jenkins.model.ModelObjectWithContextMenu.MenuItem |
| Field Summary |
|---|
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
Team(String name,
String description)
Standard constructor. |
|
| Method Summary | ||
|---|---|---|
void |
addProperty(TeamViewsProperty p)
Updates the user object by adding a property. |
|
int |
compareTo(Team o)
|
|
hudson.util.FormValidation |
doCheckUserName(String userName)
FormValidation for the userName in /teams/name/import. |
|
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
Run when the user saves a reconfigured team. |
|
jenkins.model.ModelObjectWithContextMenu.ContextMenu |
doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
|
|
void |
doImportViewsSubmit(String userName,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
The form submit for /teams/name/import imports the views from the userName. |
|
void |
doSubmitDescription(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts the new description. |
|
boolean |
equals(Object o)
|
|
protected hudson.XmlFile |
getConfigFile()
Gets the file in which we save our configuration. |
|
String |
getDescription()
Standard getter. |
|
hudson.model.Descriptor |
getDescriptorByName(String s)
|
|
String |
getDisplayName()
|
|
Object |
getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Dynamic Stapler URL binding. |
|
String |
getName()
Standard getter. |
|
List<TeamProperty> |
getProperties()
Getter for the list of properties. |
|
|
getProperty(Class<T> clazz)
Gets the specific property, or null. |
|
String |
getSearchUrl()
|
|
static String[] |
getTeamNames()
Gets all the saved team names from disk. |
|
String |
getUrl()
Getter for the Url, relative to the Jenkins root to this team. |
|
String |
getUrlName()
Getter for the Url, relative to nearest ancestor, will not end in a '/'. |
|
int |
hashCode()
|
|
void |
load()
Loads the other data from disk if it's available. |
|
void |
save()
Save the settings to a file. |
|
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Team(String name,
String description)
name - the name of the team.description - the description of this team.| Method Detail |
|---|
public void load()
public String getName()
public String getDescription()
public String getUrl()
public String getUrlName()
public String getDisplayName()
getDisplayName in interface hudson.model.ModelObjectpublic List<TeamProperty> getProperties()
public Object getDynamic(String token,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
/jenkins/teams/team1
token - the team name.req - the StaplerRequestrsp - the StaplerResponse
public void addProperty(TeamViewsProperty p)
throws IOException
p - the property to add.
IOException - if the Team cannot be saved.public <T extends TeamProperty> T getProperty(Class<T> clazz)
T - the TeamProperty subtype to find.clazz - the Class to get the property for.
public static String[] getTeamNames()
protected final hudson.XmlFile getConfigFile()
public void save()
throws IOException
save in interface hudson.model.SaveableIOException - if the file cannot be saved.
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
request - the StaplerRequest.response - the StaplerResponse.
Exception - if anything goes wrong with the form.public hudson.model.Descriptor getDescriptorByName(String s)
getDescriptorByName in interface hudson.model.DescriptorByNameOwner
public jenkins.model.ModelObjectWithContextMenu.ContextMenu doContextMenu(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws Exception
doContextMenu in interface jenkins.model.ModelObjectWithContextMenuException
public hudson.util.FormValidation doCheckUserName(@QueryParameter
String userName)
userName - the username
public void doImportViewsSubmit(@QueryParameter
String userName,
org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
throws hudson.model.Descriptor.FormException,
TransformerException,
IOException,
SAXException,
ParserConfigurationException
userName - the userName to fetch the private views fromrequest - the requestresponse - the response
Descriptor.FormException - if the user does not exist
TransformerException - See importViews(String)
IOException - if so.
SAXException - See importViews(String)
ParserConfigurationException - See importViews(String)
public void doSubmitDescription(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
req - the requestrsp - the response
IOException - if so
javax.servlet.ServletException - if sopublic int compareTo(Team o)
compareTo in interface Comparable<Team>public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getSearchUrl()
getSearchUrl in interface hudson.search.SearchItem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||