org.jenkinsci.plugins.jobmail.configuration
Class JobMailGlobalConfiguration.Template

java.lang.Object
  extended by org.jenkinsci.plugins.jobmail.configuration.JobMailGlobalConfiguration.Template
Enclosing class:
JobMailGlobalConfiguration

public static class JobMailGlobalConfiguration.Template
extends Object

Class for handling regular expressions.

Author:
yboev

Constructor Summary
JobMailGlobalConfiguration.Template(String name, String text, boolean addProjectName, boolean addUrl, boolean addBuildStatus)
          Databound constructor for populating with values.
 
Method Summary
 String getName()
          Returns the name of the template.
 String getText()
          Return the text for this text.
 boolean isBuildStatusEnabled()
          Checks if build status should be included automatically.
 boolean isProjectNameEnabled()
          Checks if the project name should be included automatically.
 boolean isUrlEnabled()
          Checks if url should be included automatically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobMailGlobalConfiguration.Template

@DataBoundConstructor
public JobMailGlobalConfiguration.Template(String name,
                                                                String text,
                                                                boolean addProjectName,
                                                                boolean addUrl,
                                                                boolean addBuildStatus)
Databound constructor for populating with values.

Parameters:
name - The name of the template
text - Content(text) of the template
addProjectName - Should project name be added to the template
addUrl - Shoul url be added to the template
addBuildStatus - Should build status be added to the tempalate
Method Detail

getText

public String getText()
Return the text for this text.

Returns:
the text as String

getName

public String getName()
Returns the name of the template.

Returns:
the name as String

isProjectNameEnabled

public boolean isProjectNameEnabled()
Checks if the project name should be included automatically.

Returns:
true if the project name should be included, false otherwise

isUrlEnabled

public boolean isUrlEnabled()
Checks if url should be included automatically.

Returns:
true if the url should be included, false otherwise

isBuildStatusEnabled

public boolean isBuildStatusEnabled()
Checks if build status should be included automatically.

Returns:
true if the build status should be included, false otherwise


Copyright © 2004-2013. All Rights Reserved.