public interface IResourceManager extends ILifecycleComponent
Modifier and Type | Method and Description |
---|---|
IMultiResourceCreateResponse |
copyTemplateResourcesToTenant(java.lang.String templateId,
java.lang.String tenantId,
ResourceCreateMode mode)
Copies resources from a tenant template into a tenant with the given id.
|
IMultiResourceCreateResponse |
createGlobalResources(java.util.List<IResourceCreateRequest> request,
ResourceCreateMode mode)
Create one or more global resources.
|
IMultiResourceCreateResponse |
createTenantResources(java.lang.String tenantId,
java.util.List<IResourceCreateRequest> request,
ResourceCreateMode mode)
Create one or more tenant resources.
|
IResource |
deleteGlobalResource(java.lang.String path)
Delete global resource at the given path.
|
IResource |
deleteTenantResource(java.lang.String tenantId,
java.lang.String path)
Delete tenant resource at the given path.
|
IResource |
getGlobalResource(java.lang.String path)
Get a global resource registered for the given path.
|
java.util.List<IResource> |
getGlobalResources()
Get list of all global resources.
|
IResource |
getTenantResource(java.lang.String tenantId,
java.lang.String path)
Get a tenant resource registered for the given path.
|
java.util.List<IResource> |
getTenantResources(java.lang.String tenantId)
Get list of all resources for the given tenant.
|
java.util.List<IResource> |
getTenantTemplateResources(java.lang.String templateId)
Gets resources associated with the given tenant template.
|
java.util.List<java.lang.String> |
getTenantTemplateRoots()
Get root names for tenant template resource trees.
|
canPause, findComponentsOfType, getComponentId, getComponentName, getComponentType, getCreatedDate, getLifecycleComponents, getLifecycleError, getLifecycleStatus, getLogger, initialize, initializeNestedComponent, lifecycleInitialize, lifecyclePause, lifecycleStart, lifecycleStop, lifecycleStop, logState, pause, start, startNestedComponent, stop, stop
IMultiResourceCreateResponse createGlobalResources(java.util.List<IResourceCreateRequest> request, ResourceCreateMode mode) throws SiteWhereException
request
- mode
- SiteWhereException
IResource getGlobalResource(java.lang.String path) throws SiteWhereException
path
- SiteWhereException
java.util.List<IResource> getGlobalResources() throws SiteWhereException
SiteWhereException
java.util.List<java.lang.String> getTenantTemplateRoots() throws SiteWhereException
SiteWhereException
java.util.List<IResource> getTenantTemplateResources(java.lang.String templateId) throws SiteWhereException
templateId
- SiteWhereException
IResource deleteGlobalResource(java.lang.String path) throws SiteWhereException
path
- SiteWhereException
IMultiResourceCreateResponse copyTemplateResourcesToTenant(java.lang.String templateId, java.lang.String tenantId, ResourceCreateMode mode) throws SiteWhereException
prefix
- tenantId
- mode
- SiteWhereException
IMultiResourceCreateResponse createTenantResources(java.lang.String tenantId, java.util.List<IResourceCreateRequest> request, ResourceCreateMode mode) throws SiteWhereException
tenantId
- request
- mode
- SiteWhereException
IResource getTenantResource(java.lang.String tenantId, java.lang.String path) throws SiteWhereException
tenantId
- path
- SiteWhereException
java.util.List<IResource> getTenantResources(java.lang.String tenantId) throws SiteWhereException
tenantId
- SiteWhereException
IResource deleteTenantResource(java.lang.String tenantId, java.lang.String path) throws SiteWhereException
tenantId
- path
- SiteWhereException