public interface ITenantConfigurationResolver
Modifier and Type | Method and Description |
---|---|
com.sitewhere.spi.resource.IResource |
copyTenantTemplateResources()
Copies all resources from the tenant template into the tenant.
|
com.sitewhere.spi.resource.IResource |
getActiveTenantConfiguration()
Gets the active configuration resource for a given tenant.
|
com.sitewhere.spi.resource.IResource |
getAssetResource(java.lang.String path)
Get an asset resource based on relative path.
|
IGlobalConfigurationResolver |
getGlobalConfigurationResolver()
Get the global configuration resolver.
|
com.sitewhere.spi.resource.IResource |
getResourceForPath(java.lang.String path)
Get tenant resource that corresponds to path.
|
com.sitewhere.spi.resource.IResource |
getScriptResource(java.lang.String path)
Get a script resource based on relative path.
|
com.sitewhere.spi.resource.IResource |
getStagedTenantConfiguration()
Gets the staged configuration resource for a given tenant.
|
boolean |
hasStagedConfiguration()
Indicates if a staged configuration exists for the tenant.
|
boolean |
hasValidConfiguration()
Indicates a configuration exists for the tenant.
|
com.sitewhere.spi.resource.IResource |
stageTenantConfiguration(byte[] content)
Stage a new tenant configuration.
|
void |
transitionStagedToActiveTenantConfiguration()
Transition the staged tenant configuration to the active tenant
configuration, backing up the active configuration in the process.
|
IGlobalConfigurationResolver getGlobalConfigurationResolver() throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereException
boolean hasValidConfiguration()
boolean hasStagedConfiguration()
com.sitewhere.spi.resource.IResource getResourceForPath(java.lang.String path) throws com.sitewhere.spi.SiteWhereException
path
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.resource.IResource getAssetResource(java.lang.String path) throws com.sitewhere.spi.SiteWhereException
path
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.resource.IResource getScriptResource(java.lang.String path) throws com.sitewhere.spi.SiteWhereException
path
- com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.resource.IResource getActiveTenantConfiguration() throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.resource.IResource copyTenantTemplateResources() throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.resource.IResource getStagedTenantConfiguration() throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.resource.IResource stageTenantConfiguration(byte[] content) throws com.sitewhere.spi.SiteWhereException
content
- com.sitewhere.spi.SiteWhereException
void transitionStagedToActiveTenantConfiguration() throws com.sitewhere.spi.SiteWhereException
com.sitewhere.spi.SiteWhereException