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, stopIMultiResourceCreateResponse createGlobalResources(java.util.List<IResourceCreateRequest> request, ResourceCreateMode mode) throws SiteWhereException
request - mode - SiteWhereExceptionIResource getGlobalResource(java.lang.String path) throws SiteWhereException
path - SiteWhereExceptionjava.util.List<IResource> getGlobalResources() throws SiteWhereException
SiteWhereExceptionjava.util.List<java.lang.String> getTenantTemplateRoots()
throws SiteWhereException
SiteWhereExceptionjava.util.List<IResource> getTenantTemplateResources(java.lang.String templateId) throws SiteWhereException
templateId - SiteWhereExceptionIResource deleteGlobalResource(java.lang.String path) throws SiteWhereException
path - SiteWhereExceptionIMultiResourceCreateResponse copyTemplateResourcesToTenant(java.lang.String templateId, java.lang.String tenantId, ResourceCreateMode mode) throws SiteWhereException
prefix - tenantId - mode - SiteWhereExceptionIMultiResourceCreateResponse createTenantResources(java.lang.String tenantId, java.util.List<IResourceCreateRequest> request, ResourceCreateMode mode) throws SiteWhereException
tenantId - request - mode - SiteWhereExceptionIResource getTenantResource(java.lang.String tenantId, java.lang.String path) throws SiteWhereException
tenantId - path - SiteWhereExceptionjava.util.List<IResource> getTenantResources(java.lang.String tenantId) throws SiteWhereException
tenantId - SiteWhereExceptionIResource deleteTenantResource(java.lang.String tenantId, java.lang.String path) throws SiteWhereException
tenantId - path - SiteWhereException