Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  The MIT License
   *
   *  Copyright 2010 Sony Ericsson Mobile Communications. All rights reserved.
   *  Copyright 2012 Sony Mobile Communications AB. All rights reserved.
   *
   *  Permission is hereby granted, free of charge, to any person obtaining a copy
   *  of this software and associated documentation files (the "Software"), to deal
   *  in the Software without restriction, including without limitation the rights
  *  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  *  copies of the Software, and to permit persons to whom the Software is
  *  furnished to do so, subject to the following conditions:
  *
  *  The above copyright notice and this permission notice shall be included in
  *  all copies or substantial portions of the Software.
  *
  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  *  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  *  THE SOFTWARE.
  */
 package com.sonyericsson.hudson.plugins.gerrit.trigger.config;
 
 
 import java.util.List;

Interface for the Global configuration.

Author(s):
Robert Sandell <robert.sandell@sonyericsson.com>
 
 public interface IGerritHudsonTriggerConfig extends GerritConnectionConfig {

    
If enabled, then old patch revision builds will be canceled.

Returns:
true if so.
 
     boolean isGerritBuildCurrentPatchesOnly();

    
Base URL for the Gerrit UI.

Returns:
the gerrit front end URL. Always ends with '/'
 
     String getGerritFrontEndUrl();

    
The command template to use when sending build-started messages to Gerrit.

Returns:
the command template.
 
     String getGerritCmdBuildStarted();

    
The command template to use when sending build-successful messages to Gerrit.

Returns:
the command template.
 
The command template to use when sending build-failed messages to Gerrit.

Returns:
the command template.
 
     String getGerritCmdBuildFailed();

    
The command template to use when sending build-unstable messages to Gerrit.

Returns:
the command template.
 
     String getGerritCmdBuildUnstable();

    
The command template to use when sending build-not-built messages to Gerrit.

Returns:
the command template.
 
     String getGerritCmdBuildNotBuilt();

    
The default verified value for build started.

Returns:
the value.
 
     int getGerritBuildStartedVerifiedValue();

    
The default code review value for build started.

Returns:
the value.
 
     int getGerritBuildStartedCodeReviewValue();

    
The default verified value for build successful.

Returns:
the falue.
 
     int getGerritBuildSuccessfulVerifiedValue();

    
The default code review value for build successful.

Returns:
the value.
The default verified value for build failed.

Returns:
the value.
    int getGerritBuildFailedVerifiedValue();

    
The default code review value for build failed.

Returns:
the value.
The default verified value for build unstable.

Returns:
the value.
The default code review value for build unstable.

Returns:
the value.
The default verified value for build not built.

Returns:
the value.
The default code review value for build not built.

Returns:
the value.
Sets all config values from the provided JSONObject.

Parameters:
form the JSON object with form data.
    void setValues(JSONObject form);

    
Creates a URL to the provided changeset number.

Parameters:
number the changeset number
revision the patch set number (currently not used)
Returns:
a URL based on + / + number
See also:
getGerritFrontEndUrl()
    String getGerritFrontEndUrlFor(String numberString revision);

    
Get the list of available VerdictCategories.

Returns:
the list.
Set the list of available VerdictCategories.

Parameters:
categories the list.
    void setCategories(List<VerdictCategorycategories);

    
If the manual trigger is enabled (shown to users) or not.

Returns:
true if so.
    boolean isEnableManualTrigger();

    
Returns the BuildScheduleDelay.

Returns:
the value.
   int getBuildScheduleDelay();

    
Returns the dynamicConfigRefreshInterval.

Returns:
the value.
    int getDynamicConfigRefreshInterval();

    
If the plugin still has default values for hostname and frontendurl.

Returns:
true if so.
    boolean hasDefaultValues();
 }
New to GrepCode? Check out our FAQ X