Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   =================== DO NOT EDIT THIS FILE ====================
   Generated by Modello 1.4.1 on 2011-04-25 14:05:00,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

The scheduled service configuration.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "scheduled-service-base-resource" )
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
The id of the service.
 
     private String id;

    
The name of the service.
 
     private String name;

    
Flag that states if the service is enabled.
 
     private boolean enabled = false;

    
The type id of the service.
 
     private String typeId;

    
The email to send notifications to if the service fails.
 
     private String alertEmail;

    
The schedule the service is run on.
 
     private String schedule;

    
Field properties.
 
     @javax.xml.bind.annotation.XmlElementWrapper( name = "properties" )
     @javax.xml.bind.annotation.XmlElement( name = "scheduled-task-property" )
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addProperty.

Parameters:
scheduledServicePropertyResource
 
     public void addPropertyScheduledServicePropertyResource scheduledServicePropertyResource )
     {
         getProperties().addscheduledServicePropertyResource );
     } //-- void addProperty( ScheduledServicePropertyResource )
 
    
Get the email to send notifications to if the service fails.

Returns:
String
 
     public String getAlertEmail()
     {
         return this.;
     } //-- String getAlertEmail()
 
    
Get the id of the service.

Returns:
String
 
     public String getId()
     {
         return this.;
     } //-- String getId()
 
    
Get the name of the service.

Returns:
String
    public String getName()
    {
        return this.;
    } //-- String getName()

    
Method getProperties.

Returns:
List
    {
        if ( this. == null )
        {
            this. = new java.util.ArrayList<ScheduledServicePropertyResource>();
        }
        return this.;
    } //-- java.util.List<ScheduledServicePropertyResource> getProperties()

    
Get the schedule the service is run on.

Returns:
String
    public String getSchedule()
    {
        return this.;
    } //-- String getSchedule()

    
Get the type id of the service.

Returns:
String
    public String getTypeId()
    {
        return this.;
    } //-- String getTypeId()

    
Get flag that states if the service is enabled.

Returns:
boolean
    public boolean isEnabled()
    {
        return this.;
    } //-- boolean isEnabled()

    
Method removeProperty.

Parameters:
scheduledServicePropertyResource
    public void removePropertyScheduledServicePropertyResource scheduledServicePropertyResource )
    {
        getProperties().removescheduledServicePropertyResource );
    } //-- void removeProperty( ScheduledServicePropertyResource )

    
Set the email to send notifications to if the service fails.

Parameters:
alertEmail
    public void setAlertEmailString alertEmail )
    {
        this. = alertEmail;
    } //-- void setAlertEmail( String )

    
Set flag that states if the service is enabled.

Parameters:
enabled
    public void setEnabledboolean enabled )
    {
        this. = enabled;
    } //-- void setEnabled( boolean )

    
Set the id of the service.

Parameters:
id
    public void setIdString id )
    {
        this. = id;
    } //-- void setId( String )

    
Set the name of the service.

Parameters:
name
    public void setNameString name )
    {
        this. = name;
    } //-- void setName( String )

    
Set a list of configuration properties for the service.

Parameters:
properties
    public void setPropertiesjava.util.List<ScheduledServicePropertyResourceproperties )
    {
        this. = properties;
    } //-- void setProperties( java.util.List )

    
Set the schedule the service is run on.

Parameters:
schedule
    public void setScheduleString schedule )
    {
        this. = schedule;
    } //-- void setSchedule( String )

    
Set the type id of the service.

Parameters:
typeId
    public void setTypeIdString typeId )
    {
        this. = typeId;
    } //-- void setTypeId( String )
New to GrepCode? Check out our FAQ X