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;

List of all global configuration items in Nexus.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "global-settings-item" )
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Flag that determines if security is enabled, if false, there will be no authc/authz checks performed on any requests to the systme.
 
     private boolean securityEnabled = false;

    
Flag that, if true, will allow anonymous access while security is enabled.
 
     private boolean securityAnonymousAccessEnabled = false;

    
The username to use for anonymous access (so that roles/privileges can be applied to the anonymous access users).
 
     private String securityAnonymousUsername;

    
The password to use for anonymous access.
 
     private String securityAnonymousPassword;

    
Field securityRealms.
 
     @javax.xml.bind.annotation.XmlElementWrapper( name = "securityRealms" )
     @javax.xml.bind.annotation.XmlElement( name = "securityRealmItem" )
     private java.util.List<StringsecurityRealms;

    
Global remote connection settings.
 
System notification settings.
 
SMTP settings for email notifications that Nexus generates.
 
     private SmtpSettings smtpSettings;

    
Global HTTP Proxy Settings (will be applied to all repositories by default).
 
Rest API configuration parameters.
 
     private RestApiSettings globalRestApiSettings;

    
Error reporting configuration parameters.
 
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addSecurityRealm.

Parameters:
string
 
     public void addSecurityRealmString string )
    {
        getSecurityRealms().addstring );
    } //-- void addSecurityRealm( String )

    
Get error reporting configuration parameters.

Returns:
ErrorReportingSettings
    {
        return this.;
    } //-- ErrorReportingSettings getErrorReportingSettings()

    
Get global remote connection settings.

Returns:
RemoteConnectionSettings
    {
        return this.;
    } //-- RemoteConnectionSettings getGlobalConnectionSettings()

    
Get global HTTP Proxy Settings (will be applied to all repositories by default).

Returns:
RemoteHttpProxySettings
    {
        return this.;
    } //-- RemoteHttpProxySettings getGlobalHttpProxySettings()

    
Get rest API configuration parameters.

Returns:
RestApiSettings
    {
        return this.;
    } //-- RestApiSettings getGlobalRestApiSettings()

    
Get the password to use for anonymous access.

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

    
Get the username to use for anonymous access (so that roles/privileges can be applied to the anonymous access users).

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

    
Method getSecurityRealms.

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

    
Get sMTP settings for email notifications that Nexus generates.

Returns:
SmtpSettings
    public SmtpSettings getSmtpSettings()
    {
        return this.;
    } //-- SmtpSettings getSmtpSettings()

    
Get system notification settings.

Returns:
SystemNotificationSettings
    {
        return this.;
    } //-- SystemNotificationSettings getSystemNotificationSettings()

    
Get flag that, if true, will allow anonymous access while security is enabled.

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

    
Get flag that determines if security is enabled, if false, there will be no authc/authz checks performed on any requests to the systme.

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

    
Method removeSecurityRealm.

Parameters:
string
    public void removeSecurityRealmString string )
    {
        getSecurityRealms().removestring );
    } //-- void removeSecurityRealm( String )

    
Set error reporting configuration parameters.

Parameters:
errorReportingSettings
    public void setErrorReportingSettingsErrorReportingSettings errorReportingSettings )
    {
        this. = errorReportingSettings;
    } //-- void setErrorReportingSettings( ErrorReportingSettings )

    
Set global remote connection settings.

Parameters:
globalConnectionSettings
    public void setGlobalConnectionSettingsRemoteConnectionSettings globalConnectionSettings )
    {
        this. = globalConnectionSettings;
    } //-- void setGlobalConnectionSettings( RemoteConnectionSettings )

    
Set global HTTP Proxy Settings (will be applied to all repositories by default).

Parameters:
globalHttpProxySettings
    public void setGlobalHttpProxySettingsRemoteHttpProxySettings globalHttpProxySettings )
    {
        this. = globalHttpProxySettings;
    } //-- void setGlobalHttpProxySettings( RemoteHttpProxySettings )

    
Set rest API configuration parameters.

Parameters:
globalRestApiSettings
    public void setGlobalRestApiSettingsRestApiSettings globalRestApiSettings )
    {
        this. = globalRestApiSettings;
    } //-- void setGlobalRestApiSettings( RestApiSettings )

    
Set flag that, if true, will allow anonymous access while security is enabled.

Parameters:
securityAnonymousAccessEnabled
    public void setSecurityAnonymousAccessEnabledboolean securityAnonymousAccessEnabled )
    {
        this. = securityAnonymousAccessEnabled;
    } //-- void setSecurityAnonymousAccessEnabled( boolean )

    
Set the password to use for anonymous access.

Parameters:
securityAnonymousPassword
    public void setSecurityAnonymousPasswordString securityAnonymousPassword )
    {
        this. = securityAnonymousPassword;
    } //-- void setSecurityAnonymousPassword( String )

    
Set the username to use for anonymous access (so that roles/privileges can be applied to the anonymous access users).

Parameters:
securityAnonymousUsername
    public void setSecurityAnonymousUsernameString securityAnonymousUsername )
    {
        this. = securityAnonymousUsername;
    } //-- void setSecurityAnonymousUsername( String )

    
Set flag that determines if security is enabled, if false, there will be no authc/authz checks performed on any requests to the systme.

Parameters:
securityEnabled
    public void setSecurityEnabledboolean securityEnabled )
    {
        this. = securityEnabled;
    } //-- void setSecurityEnabled( boolean )

    
Set list of security realms that are enabled for Nexus, note that order IS important.

Parameters:
securityRealms
    public void setSecurityRealmsjava.util.List<StringsecurityRealms )
    {
        this. = securityRealms;
    } //-- void setSecurityRealms( java.util.List )

    
Set sMTP settings for email notifications that Nexus generates.

Parameters:
smtpSettings
    public void setSmtpSettingsSmtpSettings smtpSettings )
    {
        this. = smtpSettings;
    } //-- void setSmtpSettings( SmtpSettings )

    
Set system notification settings.

Parameters:
systemNotificationSettings
    public void setSystemNotificationSettingsSystemNotificationSettings systemNotificationSettings )
    {
        this. = systemNotificationSettings;
    } //-- void setSystemNotificationSettings( SystemNotificationSettings )
New to GrepCode? Check out our FAQ X