@Component public class EmailNorthbounderConfigurationResource extends OnmsRestService implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
EmailNorthbounderConfigurationResource.EmailDestinationList
The Class EmailDestinationList. 
 | 
OnmsRestService.ComparisonOperationDEFAULT_LIMIT| Constructor and Description | 
|---|
EmailNorthbounderConfigurationResource()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterPropertiesSet()  | 
javax.ws.rs.core.Response | 
getConfiguration()
Gets the configuration. 
 | 
EmailDestination | 
getEmailDestination(String destinationName)
Gets an email destination. 
 | 
javax.ws.rs.core.Response | 
getEmailDestinations()
Gets all the email destinations. 
 | 
javax.ws.rs.core.Response | 
getStatus()
Gets the status. 
 | 
javax.ws.rs.core.Response | 
getStatus(Boolean enabled)
Gets the status. 
 | 
javax.ws.rs.core.Response | 
removeEmailDestination(String destinationName)
Removes a specific email destination. 
 | 
javax.ws.rs.core.Response | 
setConfiguration(EmailNorthbounderConfig config)
Sets the configuration. 
 | 
javax.ws.rs.core.Response | 
setEmailDestination(EmailDestination destination)
Sets an email destination. 
 | 
javax.ws.rs.core.Response | 
updateEmailDestination(String destinationName,
                      MultivaluedMapImpl params)
Updates a specific email destination. 
 | 
applyQueryFilters, applyQueryFilters, getBadRequestResponse, getBeanWrapperForClass, getException, getException, getNumericValue, getRedirectUri, readLock, readUnlock, removeParameter, removeParameter, setProperties, writeLock, writeUnlockpublic EmailNorthbounderConfigurationResource()
public void afterPropertiesSet()
                        throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic javax.ws.rs.core.Response getConfiguration()
public javax.ws.rs.core.Response setConfiguration(EmailNorthbounderConfig config)
config - the full configuration objectpublic javax.ws.rs.core.Response getStatus()
public javax.ws.rs.core.Response getStatus(Boolean enabled) throws javax.ws.rs.WebApplicationException
enabled - the enabledjavax.ws.rs.WebApplicationException - the web application exceptionpublic javax.ws.rs.core.Response getEmailDestinations()
public EmailDestination getEmailDestination(String destinationName)
destinationName - the destination namepublic javax.ws.rs.core.Response setEmailDestination(EmailDestination destination)
If there is a destination with the same name, the existing one will be overridden.
destination - the destinationpublic javax.ws.rs.core.Response updateEmailDestination(String destinationName, MultivaluedMapImpl params)
destinationName - the destination nameparams - the parameters mappublic javax.ws.rs.core.Response removeEmailDestination(String destinationName)
destinationName - the destination nameCopyright © 2021. All rights reserved.