Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   =================== DO NOT EDIT THIS FILE ====================
   Generated by Modello 1.4.1 on 2012-04-27 06:11:26,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

The notification settings tell nexus who to notify when certain events occur (such as a proxy repository being auto-blocked).

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "system-notification-settings" )
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Flag that states whether to enable notifications.
 
     private boolean enabled = false;

    
Comma seperated list of email addresses to notify.
 
     private String emailAddresses;

    
Field roles.
 
     private java.util.List<Stringroles;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addRole.

Parameters:
string
 
     public void addRoleString string )
     {
         getRoles().addstring );
     } //-- void addRole( String )
 
    
Get comma seperated list of email addresses to notify.

Returns:
String
 
     public String getEmailAddresses()
     {
         return this.;
     } //-- String getEmailAddresses()
 
    
Method getRoles.

Returns:
List
 
     public java.util.List<StringgetRoles()
     {
         if ( this. == null )
         {
             this. = new java.util.ArrayList<String>();
         }
 
         return this.;
     } //-- java.util.List<String> getRoles()
 
    
Get flag that states whether to enable notifications.

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

Parameters:
string
 
    public void removeRoleString string )
    {
        getRoles().removestring );
    } //-- void removeRole( String )

    
Set comma seperated list of email addresses to notify.

Parameters:
emailAddresses
    public void setEmailAddressesString emailAddresses )
    {
        this. = emailAddresses;
    } //-- void setEmailAddresses( String )

    
Set flag that states whether to enable notifications.

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

    
Set list of role ids, users assigned to these roles will be notified by email as well.

Parameters:
roles
    public void setRolesjava.util.List<Stringroles )
    {
        this. = roles;
    } //-- void setRoles( java.util.List )
New to GrepCode? Check out our FAQ X