Class AbstractAdministrationManager<T_REST_DOCUMENT extends RestDocument>
- java.lang.Object
-
- net.webpdf.wsclient.session.rest.administration.AbstractAdministrationManager<T_REST_DOCUMENT>
-
- All Implemented Interfaces:
AdministrationManager<T_REST_DOCUMENT>
- Direct Known Subclasses:
RestAdministrationManager
public class AbstractAdministrationManager<T_REST_DOCUMENT extends RestDocument> extends Object implements AdministrationManager<T_REST_DOCUMENT>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildSupportPackage(@NotNull File target)Collects a set of support information, that may simplify finding the cause and solution of issues.voidbuildSupportPackage(@NotNull File target, @Nullable AdminSupportEntryGroup[] group)Collects a set of support information, that may simplify finding the cause and solution of issues.voidbuildSupportPackage(@NotNull File target, @Nullable AdminSupportEntryGroup[] group, @Nullable Date start, @Nullable Date end)Collects a set of support information, that may simplify finding the cause and solution of issues.voidbuildSupportPackage(@NotNull OutputStream outputStream)Collects a set of support information, that may simplify finding the cause and solution of issues.voidbuildSupportPackage(@NotNull OutputStream outputStream, @Nullable AdminSupportEntryGroup[] group)Collects a set of support information, that may simplify finding the cause and solution of issues.voidbuildSupportPackage(@NotNull OutputStream outputStream, @Nullable AdminSupportEntryGroup[] group, @Nullable Date start, @Nullable Date end)Collects a set of support information, that may simplify finding the cause and solution of issues.voidcloseSession(@NotNull String sessionId)Closes the session with the specified ID, by activating the session expiration.voiddeleteDatastore(@NotNull AdminFileGroupDataStore group)Deletes a file, depending on the selectedAdminFileGroupDataStore, from the server's data store.voiddeleteDatastore(@NotNull AdminFileGroupDataStore group, @Nullable String filename)Deletes a file, depending on the selectedAdminFileGroupDataStore, from the server's data store.@NotNull ApplicationConfigApplicationfetchApplicationConfiguration()Gets theApplicationConfigApplicationconfiguration from the server updating the cached configuration.@NotNull Map<String,AdminConnectorKeyStore>fetchConnectorKeyStore()AdminFileDataStorefetchDatastore(@NotNull AdminFileGroupDataStore group)Retrieves a file, depending on the selectedAdminFileGroupDataStore, from the server's data store.AdminFileDataStorefetchDatastore(@NotNull AdminFileGroupDataStore group, @Nullable String filename)Retrieves a file, depending on the selectedAdminFileGroupDataStore, from the server's data store.@NotNull AdminGlobalKeyStorefetchGlobalKeyStore()Gets theAdminGlobalKeyStoreof the server updating the cached keystore.@NotNull StringfetchLog()Returns the contents of the current log file of the server.@NotNull StringfetchLog(@NotNull String range)Returns the contents of the current log file of the server.@NotNull StringfetchLog(@NotNull String range, @Nullable Date date)Returns the contents of the current log or a specific log file of the server.@NotNull AdminLogFileConfigurationfetchLogConfiguration()Gets theAdminLogFileConfigurationfrom the server updating the cached configuration.@NotNull IntegerfetchLogLength()Returns the byte size of the current log file of the server.@NotNull IntegerfetchLogLength(@Nullable Date date)Returns the byte size of the current log or a specific log file of the server.@NotNull ServerConfigServerfetchServerConfiguration()Gets theServerConfigServerconfiguration from the server updating the cached configuration.@NotNull AdminStatisticfetchServerStatistic(@NotNull AdminDataSourceServerState dataSource, @NotNull AdminAggregationServerState aggregation, @NotNull List<Webservice> webservices, @NotNull Date start, @NotNull Date end)(Experimental Web service)@NotNull AdminServerStatusfetchServerStatus()Provides status information about the server, the JVM and the Web services.@NotNull SessionTablefetchSessionTable()Returns the session table from server with detailed status information about each session.@NotNull AdminTrustStoreKeyStorefetchTrustStoreKeyStore()Gets theAdminTrustStoreKeyStorefrom the server updating the cached keystore.@NotNull UserConfigUsersfetchUserConfiguration()Gets theUserConfigUsersconfiguration of the server updating the cached configuration.@NotNull ApplicationConfigApplicationgetApplicationConfiguration()Gets the cachedApplicationConfigApplicationconfiguration of the server or fetches viaAdministrationManager.fetchApplicationConfiguration()if cache is empty@NotNull Map<String,AdminConnectorKeyStore>getConnectorKeyStore()Gets the cachedAdminConnectorKeyStores of the server or fetches viaAdministrationManager.fetchConnectorKeyStore()if cache is empty@NotNull AdminGlobalKeyStoregetGlobalKeyStore()Gets the cachedAdminGlobalKeyStoreof the server or fetches viaAdministrationManager.fetchGlobalKeyStore()if cache is empty@NotNull AdminLogFileConfigurationgetLogConfiguration()Gets the cachedAdminLogFileConfigurationconfiguration of the server or fetches viaAdministrationManager.fetchLogConfiguration()if cache is empty@NotNull ServerConfigServergetServerConfiguration()Gets the cachedServerConfigServerconfiguration of the server or fetches viaAdministrationManager.fetchServerConfiguration()if cache is empty@NotNull RestSession<T_REST_DOCUMENT>getSession()Returns theRestSessionused by thisAdministrationManager.@NotNull AdminTrustStoreKeyStoregetTrustStoreKeyStore()Gets the cachedAdminTrustStoreKeyStoreconfiguration of the server or fetches viaAdministrationManager.fetchTrustStoreKeyStore()if cache is empty@NotNull UserConfigUsersgetUserConfiguration()Gets the cachedUserConfigUsersconfiguration of the server or fetches viaAdministrationManager.fetchUserConfiguration()if cache is emptyvoidrestartServer()Restarts the server.voidsetConnectorKeyStore(@NotNull Map<String,AdminConnectorKeyStore> keystore)Sets theAdminConnectorKeyStoreof the server.voidsetGlobalKeyStore(@NotNull AdminGlobalKeyStore keystore)Sets theAdminGlobalKeyStoreof the server.voidsetTrustStoreKeyStore(@NotNull AdminTrustStoreKeyStore keystore)Sets theAdminTrustStoreKeyStoreof the server.@NotNull AdminConfigurationResulttestExecutables(@NotNull ApplicationConfigApplication configuration, @NotNull List<AdminExecutableName> executables)This is a shortcut function to validateApplicationConfigApplicationconfiguration executables@NotNull AdminConfigurationResultupdateApplicationConfiguration(@NotNull ApplicationConfigApplication configuration)Updates theApplicationConfigApplicationconfiguration if noAdminConfigurationResult.getError()occured.@NotNull AdminConfigurationResultupdateApplicationConfiguration(@NotNull ApplicationConfigApplication configuration, @NotNull List<AdminApplicationCheck> checks)Updates theApplicationConfigApplicationconfiguration if noAdminConfigurationResult.getError()occured.voidupdateDatastore(@NotNull AdminFileDataStore fileDataStore)Updates a file in the server's data store.@NotNull AdminConfigurationResultupdateLogConfiguration(@NotNull AdminLogFileConfiguration configuration)Updates theAdminLogFileConfigurationif noAdminConfigurationResult.getError()occured.@NotNull AdminConfigurationResultupdateLogConfiguration(@NotNull AdminLogFileConfiguration configuration, @NotNull List<AdminLogCheck> checks)Updates theAdminLogFileConfigurationif noAdminConfigurationResult.getError()occured.@NotNull AdminConfigurationResultupdateServerConfiguration(@NotNull ServerConfigServer configuration)Updates theServerConfigServerconfiguration if noAdminConfigurationResult.getError()occured.@NotNull AdminConfigurationResultupdateServerConfiguration(@NotNull ServerConfigServer configuration, @NotNull List<AdminServerCheck> checks)Updates theServerConfigServerconfiguration if noAdminConfigurationResult.getError()occured.@NotNull AdminConfigurationResultupdateUserConfiguration(@NotNull UserConfigUsers configuration)Updates theUserConfigUsersconfiguration if noAdminConfigurationResult.getError()occured.@NotNull AdminConfigurationResultupdateUserConfiguration(@NotNull UserConfigUsers configuration, @NotNull List<AdminUserCheck> checks)Updates theUserConfigUsersconfiguration if noAdminConfigurationResult.getError()occured.@NotNull AdminConfigurationResultvalidateApplicationConfiguration(@NotNull ApplicationConfigApplication configuration, @NotNull List<AdminApplicationCheck> checks)Validates theApplicationConfigApplicationconfiguration with the givenAdminApplicationChecks.@NotNull AdminConfigurationResultvalidateLogConfiguration(@NotNull AdminLogFileConfiguration configuration, @NotNull List<AdminLogCheck> checks)Validates theAdminLogFileConfigurationconfiguration with the givenAdminLogChecks.@NotNull AdminConfigurationResultvalidateServerConfiguration(@NotNull ServerConfigServer configuration, @NotNull List<AdminServerCheck> checks)Validates theServerConfigServerconfiguration with the givenAdminServerChecks.protected voidvalidateUser()Validates if the current user has access rights and throwsClientResultExceptionotherwise@NotNull AdminConfigurationResultvalidateUserConfiguration(@NotNull UserConfigUsers configuration, @NotNull List<AdminUserCheck> checks)Validates theUserConfigUsersconfiguration with the givenAdminUserChecks.
-
-
-
Method Detail
-
getSession
@NotNull public @NotNull RestSession<T_REST_DOCUMENT> getSession()
Returns theRestSessionused by thisAdministrationManager.- Specified by:
getSessionin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
- The
RestSessionused by thisAdministrationManager.
-
validateUser
protected void validateUser() throws ResultExceptionValidates if the current user has access rights and throwsClientResultExceptionotherwise- Throws:
ResultException- Shall be thrown upon invalid user access.
-
fetchLogLength
@NotNull public @NotNull Integer fetchLogLength(@Nullable @Nullable Date date) throws ResultException
Returns the byte size of the current log or a specific log file of the server. If the date query parameter is specified, an explicitly selected log will be read.- Specified by:
fetchLogLengthin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
date- A specificDateto extract from the server log.- Returns:
- number the length of the requested log
- Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchLogLength
@NotNull public @NotNull Integer fetchLogLength() throws ResultException
Returns the byte size of the current log file of the server.- Specified by:
fetchLogLengthin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
- number the length of the requested log
- Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchLog
@NotNull public @NotNull String fetchLog(@NotNull @NotNull String range, @Nullable @Nullable Date date) throws ResultException
Returns the contents of the current log or a specific log file of the server. If the date query parameter is specified, an explicitly selected log will be read.- Specified by:
fetchLogin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
range- A specific byte range (e.g. 0-1024) to extract from the server logdate- A specific optionalDateto extract from the server log. By default, today's date will be used.- Returns:
- number The contents of the current log or a specific log file of the server
- Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchLog
@NotNull public @NotNull String fetchLog(@NotNull @NotNull String range) throws ResultException
Returns the contents of the current log file of the server.- Specified by:
fetchLogin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
range- A specific byte range (e.g. 0-1024) to extract from the server log- Returns:
- number The contents of the current log or a specific log file of the server
- Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchLog
@NotNull public @NotNull String fetchLog() throws ResultException
Returns the contents of the current log file of the server.- Specified by:
fetchLogin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
- number The contents of the current log or a specific log file of the server
- Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchServerStatus
@NotNull public @NotNull AdminServerStatus fetchServerStatus() throws ResultException
Provides status information about the server, the JVM and the Web services.- Specified by:
fetchServerStatusin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminServerStatusThe status information about the server.- Throws:
ResultException- Shall be thrown, if the request failed.
-
buildSupportPackage
public void buildSupportPackage(@NotNull @NotNull OutputStream outputStream, @Nullable @Nullable AdminSupportEntryGroup[] group, @Nullable @Nullable Date start, @Nullable @Nullable Date end) throws ResultExceptionCollects a set of support information, that may simplify finding the cause and solution of issues.- Specified by:
buildSupportPackagein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
outputStream- The targetOutputStreamthe support information shall be written to.group- List of components to be included in the support information.start- StartDatefrom when the logs will be included (if logs is included in group). If empty, then current date.end- EndDateuntil when the logs will be included (if logs is included in group). If empty, then current date.- Throws:
ResultException- Shall be thrown, if the request failed.
-
buildSupportPackage
public void buildSupportPackage(@NotNull @NotNull OutputStream outputStream, @Nullable @Nullable AdminSupportEntryGroup[] group) throws ResultExceptionCollects a set of support information, that may simplify finding the cause and solution of issues.- Specified by:
buildSupportPackagein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
outputStream- The targetOutputStreamthe support information shall be written to.group- List of components to be included in the support information.- Throws:
ResultException- Shall be thrown, if the request failed.
-
buildSupportPackage
public void buildSupportPackage(@NotNull @NotNull OutputStream outputStream) throws ResultExceptionCollects a set of support information, that may simplify finding the cause and solution of issues.- Specified by:
buildSupportPackagein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
outputStream- The targetOutputStreamthe support information shall be written to.- Throws:
ResultException- Shall be thrown, if the request failed.
-
buildSupportPackage
public void buildSupportPackage(@NotNull @NotNull File target, @Nullable @Nullable AdminSupportEntryGroup[] group, @Nullable @Nullable Date start, @Nullable @Nullable Date end) throws ResultExceptionCollects a set of support information, that may simplify finding the cause and solution of issues.- Specified by:
buildSupportPackagein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
target- The targetFilethe support information shall be written to.group- List of components to be included in the support information.start- StartDatefrom when the logs will be included (if logs is included in group). If empty, then current date.end- EndDateuntil when the logs will be included (if logs is included in group). If empty, then current date.- Throws:
ResultException- Shall be thrown, if the request failed.
-
buildSupportPackage
public void buildSupportPackage(@NotNull @NotNull File target, @Nullable @Nullable AdminSupportEntryGroup[] group) throws ResultExceptionCollects a set of support information, that may simplify finding the cause and solution of issues.- Specified by:
buildSupportPackagein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
target- The targetFilethe support information shall be written to.group- List of components to be included in the support information.- Throws:
ResultException- Shall be thrown, if the request failed.
-
buildSupportPackage
public void buildSupportPackage(@NotNull @NotNull File target) throws ResultExceptionCollects a set of support information, that may simplify finding the cause and solution of issues.- Specified by:
buildSupportPackagein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
target- The targetFilethe support information shall be written to.- Throws:
ResultException- Shall be thrown, if the request failed.
-
restartServer
public void restartServer() throws ResultExceptionRestarts the server.- Specified by:
restartServerin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchApplicationConfiguration
@NotNull public @NotNull ApplicationConfigApplication fetchApplicationConfiguration() throws ResultException
Gets theApplicationConfigApplicationconfiguration from the server updating the cached configuration.- Specified by:
fetchApplicationConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
ApplicationConfigApplicationthe requested configuration.- Throws:
ResultException- Shall be thrown, if the request failed.
-
getApplicationConfiguration
@NotNull public @NotNull ApplicationConfigApplication getApplicationConfiguration() throws ResultException
Gets the cachedApplicationConfigApplicationconfiguration of the server or fetches viaAdministrationManager.fetchApplicationConfiguration()if cache is empty- Specified by:
getApplicationConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
ApplicationConfigApplicationthe requested configuration.- Throws:
ResultException- Shall be thrown, if the request failed.
-
updateApplicationConfiguration
@NotNull public @NotNull AdminConfigurationResult updateApplicationConfiguration(@NotNull @NotNull ApplicationConfigApplication configuration, @NotNull @NotNull List<AdminApplicationCheck> checks) throws ResultException
Updates the
ApplicationConfigApplicationconfiguration if noAdminConfigurationResult.getError()occured.Optionally also validates the
ApplicationConfigApplicationconfiguration with additionalAdminApplicationChecks.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateApplicationConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheApplicationConfigApplicationconfiguration defines settings for the web services and the portal page.checks- A list ofAdminApplicationChecks to validate the configuration.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theApplicationConfigApplicationconfiguration is updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
updateApplicationConfiguration
@NotNull public @NotNull AdminConfigurationResult updateApplicationConfiguration(@NotNull @NotNull ApplicationConfigApplication configuration) throws ResultException
Updates the
ApplicationConfigApplicationconfiguration if noAdminConfigurationResult.getError()occured.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateApplicationConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheApplicationConfigApplicationconfiguration defines settings for the web services and the portal page.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theApplicationConfigApplicationconfiguration is updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
validateApplicationConfiguration
@NotNull public @NotNull AdminConfigurationResult validateApplicationConfiguration(@NotNull @NotNull ApplicationConfigApplication configuration, @NotNull @NotNull List<AdminApplicationCheck> checks) throws ResultException
Validates the
ApplicationConfigApplicationconfiguration with the givenAdminApplicationChecks.- Specified by:
validateApplicationConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheApplicationConfigApplicationconfiguration defines settings for the web services and the portal page.checks- The list ofAdminApplicationChecks to validate the configuration with.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theApplicationConfigApplicationconfiguration is validated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchServerConfiguration
@NotNull public @NotNull ServerConfigServer fetchServerConfiguration() throws ResultException
Gets theServerConfigServerconfiguration from the server updating the cached configuration.- Specified by:
fetchServerConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
ServerConfigServerthe requested configuration- Throws:
ResultException- Shall be thrown, if the request failed.
-
getServerConfiguration
@NotNull public @NotNull ServerConfigServer getServerConfiguration() throws ResultException
Gets the cachedServerConfigServerconfiguration of the server or fetches viaAdministrationManager.fetchServerConfiguration()if cache is empty- Specified by:
getServerConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
ServerConfigServerthe requested configuration- Throws:
ResultException- Shall be thrown, if the request failed.
-
updateServerConfiguration
@NotNull public @NotNull AdminConfigurationResult updateServerConfiguration(@NotNull @NotNull ServerConfigServer configuration, @NotNull @NotNull List<AdminServerCheck> checks) throws ResultException
Updates the
ServerConfigServerconfiguration if noAdminConfigurationResult.getError()occured.Optionally also validates the
ServerConfigServerconfiguration with additionalAdminServerChecks.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateServerConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheServerConfigServerconfiguration defines settings for the server such as the ports, user sources or authorization settings.checks- A list ofAdminServerChecks to validate the configuration- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theServerConfigServerconfiguration is updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
updateServerConfiguration
@NotNull public @NotNull AdminConfigurationResult updateServerConfiguration(@NotNull @NotNull ServerConfigServer configuration) throws ResultException
Updates the
ServerConfigServerconfiguration if noAdminConfigurationResult.getError()occured.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateServerConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheServerConfigServerconfiguration defines settings for the server such as the ports, user sources or authorization settings.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theServerConfigServerconfiguration is updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
validateServerConfiguration
@NotNull public @NotNull AdminConfigurationResult validateServerConfiguration(@NotNull @NotNull ServerConfigServer configuration, @NotNull @NotNull List<AdminServerCheck> checks) throws ResultException
Validates the
ServerConfigServerconfiguration with the givenAdminServerChecks.- Specified by:
validateServerConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheServerConfigServerconfiguration defines settings for the web services and the portal page.checks- The list ofAdminServerChecks to validate the configuration with.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theServerConfigServerconfiguration is validated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchUserConfiguration
@NotNull public @NotNull UserConfigUsers fetchUserConfiguration() throws ResultException
Gets theUserConfigUsersconfiguration of the server updating the cached configuration.- Specified by:
fetchUserConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
UserConfigUsersthe requested configuration- Throws:
ResultException- Shall be thrown, if the request failed.
-
getUserConfiguration
@NotNull public @NotNull UserConfigUsers getUserConfiguration() throws ResultException
Gets the cachedUserConfigUsersconfiguration of the server or fetches viaAdministrationManager.fetchUserConfiguration()if cache is empty- Specified by:
getUserConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
UserConfigUsersthe requested configuration- Throws:
ResultException- Shall be thrown, if the request failed.
-
updateUserConfiguration
@NotNull public @NotNull AdminConfigurationResult updateUserConfiguration(@NotNull @NotNull UserConfigUsers configuration, @NotNull @NotNull List<AdminUserCheck> checks) throws ResultException
Updates the
UserConfigUsersconfiguration if noAdminConfigurationResult.getError()occured.Optionally also validates the
UserConfigUsersconfiguration with additionalAdminUserChecks.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateUserConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheUserConfigUsersconfiguration lists users of the webPDF server.checks- A list ofAdminUserChecks to validate the configuration- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theUserConfigUsersconfiguration is updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
updateUserConfiguration
@NotNull public @NotNull AdminConfigurationResult updateUserConfiguration(@NotNull @NotNull UserConfigUsers configuration) throws ResultException
Updates the
UserConfigUsersconfiguration if noAdminConfigurationResult.getError()occured.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateUserConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheUserConfigUsersconfiguration lists users of the webPDF server.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theUserConfigUsersconfiguration is updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
validateUserConfiguration
@NotNull public @NotNull AdminConfigurationResult validateUserConfiguration(@NotNull @NotNull UserConfigUsers configuration, @NotNull @NotNull List<AdminUserCheck> checks) throws ResultException
Validates the
UserConfigUsersconfiguration with the givenAdminUserChecks.- Specified by:
validateUserConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheUserConfigUsersconfiguration defines settings for the web services and the portal page.checks- The list ofAdminUserChecks to validate the configuration with.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theUserConfigUsersconfiguration is validated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchLogConfiguration
@NotNull public @NotNull AdminLogFileConfiguration fetchLogConfiguration() throws ResultException
Gets theAdminLogFileConfigurationfrom the server updating the cached configuration.- Specified by:
fetchLogConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminLogFileConfigurationthe requested configuration- Throws:
ResultException- Shall be thrown, if the request failed.
-
getLogConfiguration
@NotNull public @NotNull AdminLogFileConfiguration getLogConfiguration() throws ResultException
Gets the cachedAdminLogFileConfigurationconfiguration of the server or fetches viaAdministrationManager.fetchLogConfiguration()if cache is empty- Specified by:
getLogConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminLogFileConfigurationthe requested configuration- Throws:
ResultException- Shall be thrown, if the request failed.
-
updateLogConfiguration
@NotNull public @NotNull AdminConfigurationResult updateLogConfiguration(@NotNull @NotNull AdminLogFileConfiguration configuration, @NotNull @NotNull List<AdminLogCheck> checks) throws ResultException
Updates the
AdminLogFileConfigurationif noAdminConfigurationResult.getError()occured.Optionally also validates the
AdminLogFileConfigurationwith additionalAdminLogChecks.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateLogConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheAdminLogFileConfigurationprovides information and settings about the configured server logging.checks- A list ofAdminLogChecks to validate the configuration- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theAdminLogFileConfigurationis updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
updateLogConfiguration
@NotNull public @NotNull AdminConfigurationResult updateLogConfiguration(@NotNull @NotNull AdminLogFileConfiguration configuration) throws ResultException
Updates the
AdminLogFileConfigurationif noAdminConfigurationResult.getError()occured.Be Aware: Some of these changes might require a server restart to take effect.
- Specified by:
updateLogConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheAdminLogFileConfigurationprovides information and settings about the configured server logging.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theAdminLogFileConfigurationis updated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
validateLogConfiguration
@NotNull public @NotNull AdminConfigurationResult validateLogConfiguration(@NotNull @NotNull AdminLogFileConfiguration configuration, @NotNull @NotNull List<AdminLogCheck> checks) throws ResultException
Validates the
AdminLogFileConfigurationconfiguration with the givenAdminLogChecks.- Specified by:
validateLogConfigurationin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheAdminLogFileConfigurationconfiguration defines settings for the web services and the portal page.checks- The list ofAdminLogChecks to validate the configuration with.- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theAdminLogFileConfigurationconfiguration is validated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchGlobalKeyStore
@NotNull public @NotNull AdminGlobalKeyStore fetchGlobalKeyStore() throws ResultException
Gets theAdminGlobalKeyStoreof the server updating the cached keystore.- Specified by:
fetchGlobalKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminGlobalKeyStorethe requested keystore- Throws:
ResultException- Shall be thrown, if the request failed.
-
getGlobalKeyStore
@NotNull public @NotNull AdminGlobalKeyStore getGlobalKeyStore() throws ResultException
Gets the cachedAdminGlobalKeyStoreof the server or fetches viaAdministrationManager.fetchGlobalKeyStore()if cache is empty- Specified by:
getGlobalKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminGlobalKeyStorethe requested keystore- Throws:
ResultException- Shall be thrown, if the request failed.
-
setGlobalKeyStore
public void setGlobalKeyStore(@NotNull @NotNull AdminGlobalKeyStore keystore)Sets the
AdminGlobalKeyStoreof the server.Be Aware: This needs to be updated via
AdministrationManager.updateApplicationConfiguration(net.webpdf.wsclient.openapi.ApplicationConfigApplication, java.util.List<net.webpdf.wsclient.openapi.AdminApplicationCheck>)to take effekt on the server.- Specified by:
setGlobalKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
keystore- theAdminGlobalKeyStoreto set
-
fetchTrustStoreKeyStore
@NotNull public @NotNull AdminTrustStoreKeyStore fetchTrustStoreKeyStore() throws ResultException
Gets theAdminTrustStoreKeyStorefrom the server updating the cached keystore.- Specified by:
fetchTrustStoreKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminTrustStoreKeyStorethe requested keystore- Throws:
ResultException- Shall be thrown, if the request failed.
-
getTrustStoreKeyStore
@NotNull public @NotNull AdminTrustStoreKeyStore getTrustStoreKeyStore() throws ResultException
Gets the cachedAdminTrustStoreKeyStoreconfiguration of the server or fetches viaAdministrationManager.fetchTrustStoreKeyStore()if cache is empty- Specified by:
getTrustStoreKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminTrustStoreKeyStorethe requested keystore- Throws:
ResultException- Shall be thrown, if the request failed.
-
setTrustStoreKeyStore
public void setTrustStoreKeyStore(@NotNull @NotNull AdminTrustStoreKeyStore keystore)Sets the
AdminTrustStoreKeyStoreof the server.Be Aware: This needs to be updated via
AdministrationManager.updateServerConfiguration(net.webpdf.wsclient.openapi.ServerConfigServer, java.util.List<net.webpdf.wsclient.openapi.AdminServerCheck>)to take effekt on the server.- Specified by:
setTrustStoreKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
keystore- theAdminTrustStoreKeyStoreto set
-
fetchConnectorKeyStore
@NotNull public @NotNull Map<String,AdminConnectorKeyStore> fetchConnectorKeyStore() throws ResultException
- Specified by:
fetchConnectorKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminConnectorKeyStorethe requested keystore- Throws:
ResultException- Shall be thrown, if the request failed.
-
getConnectorKeyStore
@NotNull public @NotNull Map<String,AdminConnectorKeyStore> getConnectorKeyStore() throws ResultException
Gets the cachedAdminConnectorKeyStores of the server or fetches viaAdministrationManager.fetchConnectorKeyStore()if cache is empty- Specified by:
getConnectorKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
AdminConnectorKeyStores the requested keystore- Throws:
ResultException- Shall be thrown, if the request failed.
-
setConnectorKeyStore
public void setConnectorKeyStore(@NotNull @NotNull Map<String,AdminConnectorKeyStore> keystore)Sets the
AdminConnectorKeyStoreof the server.Be Aware: This needs to be updated via
AdministrationManager.updateServerConfiguration(net.webpdf.wsclient.openapi.ServerConfigServer, java.util.List<net.webpdf.wsclient.openapi.AdminServerCheck>)to take effekt on the server.- Specified by:
setConnectorKeyStorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
keystore- theAdminConnectorKeyStoreto set
-
testExecutables
@NotNull public @NotNull AdminConfigurationResult testExecutables(@NotNull @NotNull ApplicationConfigApplication configuration, @NotNull @NotNull List<AdminExecutableName> executables) throws ResultException
This is a shortcut function to validateApplicationConfigApplicationconfiguration executables- Specified by:
testExecutablesin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
configuration- TheApplicationConfigApplicationconfiguration defines settings for the web services and the portal page.executables- A list ofAdminExecutableNames to validate- Returns:
- defines an extended
AdminConfigurationResultfor administrative configuration operations when theApplicationConfigApplicationconfiguration validated. - Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchDatastore
public AdminFileDataStore fetchDatastore(@NotNull @NotNull AdminFileGroupDataStore group, @Nullable @Nullable String filename) throws ResultException
Retrieves a file, depending on the selectedAdminFileGroupDataStore, from the server's data store. IfAdminFileGroupDataStore.GENERICis set, the file to get is referenced by the optional filename parameter.- Specified by:
fetchDatastorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
group- The group of datastore files to search for the file.filename- A filename to specify the file ifAdminFileGroupDataStore.GENERICis set- Returns:
- The requested
AdminFileDataStore. - Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchDatastore
public AdminFileDataStore fetchDatastore(@NotNull @NotNull AdminFileGroupDataStore group) throws ResultException
Retrieves a file, depending on the selectedAdminFileGroupDataStore, from the server's data store. IfAdminFileGroupDataStore.GENERICis set, the file to get is referenced by the optional filename parameter.- Specified by:
fetchDatastorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
group- The group of datastore files to search for the file.- Returns:
- The requested
AdminFileDataStore. - Throws:
ResultException- Shall be thrown, if the request failed.
-
updateDatastore
public void updateDatastore(@NotNull @NotNull AdminFileDataStore fileDataStore) throws ResultExceptionUpdates a file in the server's data store.- Specified by:
updateDatastorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
fileDataStore- Bundles the file, the file group and the settings to be updated asAdminFileDataStore- Throws:
ResultException- Shall be thrown, if the request failed.
-
deleteDatastore
public void deleteDatastore(@NotNull @NotNull AdminFileGroupDataStore group, @Nullable @Nullable String filename) throws ResultExceptionDeletes a file, depending on the selectedAdminFileGroupDataStore, from the server's data store. IfAdminFileGroupDataStore.GENERICis set, the file to delete is referenced by the optional filename parameter.- Specified by:
deleteDatastorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
group- The group of datastore files to search for the file.filename- A filename to specify the file ifAdminFileGroupDataStore.GENERICis set- Throws:
ResultException- Shall be thrown, if the request failed.
-
deleteDatastore
public void deleteDatastore(@NotNull @NotNull AdminFileGroupDataStore group) throws ResultExceptionDeletes a file, depending on the selectedAdminFileGroupDataStore, from the server's data store.- Specified by:
deleteDatastorein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
group- The group of datastore files to search for the file.- Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchServerStatistic
@NotNull public @NotNull AdminStatistic fetchServerStatistic(@NotNull @NotNull AdminDataSourceServerState dataSource, @NotNull @NotNull AdminAggregationServerState aggregation, @NotNull @NotNull List<Webservice> webservices, @NotNull @NotNull Date start, @NotNull @NotNull Date end) throws ResultException
(Experimental Web service)
Reads statistic information from the server for Web services and file formats.
- Specified by:
fetchServerStatisticin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
dataSource- Data source from which the data is read.aggregation- Aggregation mode for the retrieved data.webservices- List of webservice names from which the data should be retrieved.start- StartDatefor the data, formatted as ISO-8601 extended offset (zoned based) date-time format.end- EndDatefor the data, formatted as ISO-8601 extended offset (zoned based) date-time format.- Returns:
- The requested
AdminStatistic. - Throws:
ResultException- Shall be thrown, if the request failed.
-
fetchSessionTable
@NotNull public @NotNull SessionTable fetchSessionTable() throws ResultException
Returns the session table from server with detailed status information about each session.- Specified by:
fetchSessionTablein interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Returns:
- The requested
SessionTable. - Throws:
ResultException- Shall be thrown, if the request failed.
-
closeSession
public void closeSession(@NotNull @NotNull String sessionId) throws ResultExceptionCloses the session with the specified ID, by activating the session expiration. After the call, any access to the session results in an error.- Specified by:
closeSessionin interfaceAdministrationManager<T_REST_DOCUMENT extends RestDocument>- Parameters:
sessionId- ID of the session to be closed.- Throws:
ResultException- Shall be thrown, if the request failed.
-
-