public class ServerAuthorViewHandler extends Object
| Constructor and Description |
|---|
ServerAuthorViewHandler()
Default constructor for ServerAuthorViewHandler
|
ServerAuthorViewHandler(String localServerUserId,
String metadataServerURL,
List<ResourceEndpointConfig> resourceEndpoints)
ServerAuthorViewHandler constructor with configured resourceEndpoints
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateWithStoredConfig(String className,
String methodName,
String destinationPlatformName,
String serverToBeActivatedName)
Activate the stored configuration for the named server on the named destination platform
|
void |
addAuditLogDestination(String className,
String methodName,
String serverToBeConfiguredName,
Connection connection)
add an audit log destination specified by a connection
|
void |
addConsoleAuditLogDestination(String className,
String methodName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
add a console audit log
|
void |
addEventTopicAuditLogDestination(String className,
String methodName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
add a Event Topic audit log destination
|
void |
addFileAuditLogDestination(String className,
String methodName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
add a File audit log destination
|
void |
addSLF4JAuditLogDestination(String className,
String methodName,
String serverToBeConfiguredName,
List<String> supportedSeverities)
add a SLF4J audit log
|
void |
configureAccessService(String className,
String methodName,
String serverToBeConfiguredName,
String serviceURLMarker,
Map<String,Object> accessServiceOptions)
Configure an access service
|
void |
configureAllAccessServices(String className,
String methodName,
String serverToBeConfiguredName,
Map<String,Object> accessServiceOptions)
Configure all access services
|
void |
deactivateServerPermanently(String className,
String methodName,
String destinationPlatformName,
String serverToBeDeactivatedName)
Deactivate the stored configuration for the named server on the named destination platform permanently.
|
void |
deactivateServerTemporarily(String className,
String methodName,
String destinationPlatformName,
String serverToBeDeactivatedName)
Deactivate the stored configuration for the named server on the named destination platform temporarily.
|
void |
deployOMAGServerConfig(String className,
String methodName,
String destinationPlatformName,
String serverToBeDeployedName)
Deploy an OMAG Server configuration onto a target platform
|
OMAGServerConfig |
getActiveConfiguration(String className,
String methodName,
String serverToRetrieveName)
Get the active configuration of the named server
|
Map<String,List<ResourceEndpoint>> |
getResourceEndpoints(String userId,
String methodName)
getResourceEndpoints - returns a list of the configured resource endpoints.
|
OMAGServerConfig |
getStoredConfiguration(String className,
String methodName,
String serverToBeRetrievedName)
Get the stored configuration for the named server
|
void |
setDefaultAuditLog(String className,
String methodName,
String serverToBeConfiguredName)
set the default audit log
|
void |
setEnterpriseAccessConfig(String className,
String methodName,
String serverToBeConfiguredName,
EnterpriseAccessConfig enterpriseAccessConfig)
set the Enterprise Access config
|
void |
setEventBus(String className,
String methodName,
String serverToBeConfiguredName,
String connectorProvider,
String topicURLRoot,
Map<String,Object> configurationProperties)
set the Event bus
|
void |
setGraphLocalRepository(String className,
String methodName,
String serverToBeConfiguredName,
Map<String,Object> storageProperties)
Set the local repository to be graph for the named server
|
void |
setInMemLocalRepository(String className,
String methodName,
String serverToBeConfiguredName)
Set the local repository to be in memory for the named server
|
void |
setOMAGServerConfig(String className,
String methodName,
String serverToBeConfiguredName,
OMAGServerConfig omagServerConfig)
Set an OMAG Server's configuration
|
void |
setReadOnlyLocalRepository(String className,
String methodName,
String serverToBeConfiguredName)
Set the local repository to be read only for the named server
|
public ServerAuthorViewHandler()
public ServerAuthorViewHandler(String localServerUserId, String metadataServerURL, List<ResourceEndpointConfig> resourceEndpoints)
localServerUserId - admin useridmetadataServerURL - url of the platform to issue admin calls to store configurationresourceEndpoints - list of platformspublic Map<String,List<ResourceEndpoint>> getResourceEndpoints(String userId, String methodName)
userId - userId under which the request is performedmethodName - The name of the method being invoked
This method will return the resource endpoints that have been configured for the view servicepublic void setInMemLocalRepository(String className, String methodName, String serverToBeConfiguredName) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server being configuredServerAuthorViewServiceException - server author exceptionpublic void setGraphLocalRepository(String className, String methodName, String serverToBeConfiguredName, Map<String,Object> storageProperties) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server being configuredServerAuthorViewServiceException - server author exceptionpublic void setReadOnlyLocalRepository(String className, String methodName, String serverToBeConfiguredName) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server being configuredServerAuthorViewServiceException - server author exceptionpublic OMAGServerConfig getStoredConfiguration(String className, String methodName, String serverToBeRetrievedName) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeRetrievedName - name of the server whose configuration is to be retievedServerAuthorViewServiceException - server author exceptionpublic void deployOMAGServerConfig(String className, String methodName, String destinationPlatformName, String serverToBeDeployedName) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationdestinationPlatformName - platform onto which the server is to be deployedserverToBeDeployedName - name of the server to deployServerAuthorViewServiceException - server author exceptionpublic void setOMAGServerConfig(String className, String methodName, String serverToBeConfiguredName, OMAGServerConfig omagServerConfig) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationomagServerConfig - name of the server whose configuration we are settingServerAuthorViewServiceException - server author exceptionpublic void configureAccessService(String className, String methodName, String serverToBeConfiguredName, String serviceURLMarker, Map<String,Object> accessServiceOptions) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredserviceURLMarker - identifier of the access service to configureaccessServiceOptions - access service optionsServerAuthorViewServiceException - server author exceptionpublic void configureAllAccessServices(String className, String methodName, String serverToBeConfiguredName, Map<String,Object> accessServiceOptions) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredaccessServiceOptions - access service options to apply to all access servicesServerAuthorViewServiceException - server author exceptionpublic void setEnterpriseAccessConfig(String className, String methodName, String serverToBeConfiguredName, EnterpriseAccessConfig enterpriseAccessConfig) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredenterpriseAccessConfig - enterprise access configServerAuthorViewServiceException - server author exceptionpublic void setEventBus(String className, String methodName, String serverToBeConfiguredName, String connectorProvider, String topicURLRoot, Map<String,Object> configurationProperties) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredconnectorProvider - connector provider nametopicURLRoot - topic URL rootconfigurationProperties - configuration propertiesServerAuthorViewServiceException - server author exceptionpublic void setDefaultAuditLog(String className, String methodName, String serverToBeConfiguredName) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredServerAuthorViewServiceException - server author exceptionpublic void addConsoleAuditLogDestination(String className, String methodName, String serverToBeConfiguredName, List<String> supportedSeverities) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredsupportedSeverities - a list of support severitiesServerAuthorViewServiceException - server author exceptionpublic void addSLF4JAuditLogDestination(String className, String methodName, String serverToBeConfiguredName, List<String> supportedSeverities) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredsupportedSeverities - a list of support severitiesServerAuthorViewServiceException - server author exceptionpublic void addFileAuditLogDestination(String className, String methodName, String serverToBeConfiguredName, List<String> supportedSeverities) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredsupportedSeverities - a list of support severitiesServerAuthorViewServiceException - server author exceptionpublic void addEventTopicAuditLogDestination(String className, String methodName, String serverToBeConfiguredName, List<String> supportedSeverities) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredsupportedSeverities - a list of support severitiesServerAuthorViewServiceException - server author exceptionpublic void addAuditLogDestination(String className, String methodName, String serverToBeConfiguredName, Connection connection) throws ServerAuthorViewServiceException
className - class Name for diagnostic purposesmethodName - current operationserverToBeConfiguredName - name of the server to being configuredconnection - connection to use for the audit log destinationServerAuthorViewServiceException - server author exceptionpublic OMAGServerConfig getActiveConfiguration(String className, String methodName, String serverToRetrieveName) throws ServerAuthorViewServiceException
className - class name used for diagnosticsmethodName - the current operationserverToRetrieveName - the server to retrive nameServerAuthorViewServiceException - a server author exceptionpublic void activateWithStoredConfig(String className, String methodName, String destinationPlatformName, String serverToBeActivatedName)
className - class name for diagnosticsmethodName - action being performeddestinationPlatformName - name of the platform name on which the configuration should be activatedserverToBeActivatedName - server name of the configuration to activatepublic void deactivateServerPermanently(String className, String methodName, String destinationPlatformName, String serverToBeDeactivatedName)
To activate this server again on this platform, a new configuration must be created, which can then be activated.
className - class name for diagnosticsmethodName - action being performeddestinationPlatformName - name of the platform name on which the configuration should be activatedserverToBeDeactivatedName - server name of the configuration to deactivatepublic void deactivateServerTemporarily(String className, String methodName, String destinationPlatformName, String serverToBeDeactivatedName)
className - class name for diagnosticsmethodName - action being performeddestinationPlatformName - name of the platform name on which the configuration should be activatedserverToBeDeactivatedName - server name of the configuration to deactivateCopyright © 2018–2020 ODPi. All rights reserved.