public interface TenantResourcesService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TENANT_RESOURCE |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
TenantResourceType type,
byte[] content,
long userId) |
long |
count(TenantResourceType type) |
long |
count(TenantResourceType type,
java.lang.String name) |
java.util.List<STenantResource> |
get(TenantResourceType type,
int from,
int numberOfElements) |
STenantResource |
get(TenantResourceType type,
java.lang.String name) |
STenantResourceLight |
getSingleLightResource(TenantResourceType type)
Returns a single STenantResourceLight of the given type.
|
void |
remove(STenantResourceLight resource) |
void |
removeAll(TenantResourceType external) |
static final java.lang.String TENANT_RESOURCE
void add(java.lang.String name,
TenantResourceType type,
byte[] content,
long userId)
throws SRecorderException
SRecorderExceptionvoid removeAll(TenantResourceType external) throws SBonitaReadException, SRecorderException
java.util.List<STenantResource> get(TenantResourceType type, int from, int numberOfElements) throws SBonitaReadException
SBonitaReadExceptionlong count(TenantResourceType type) throws SBonitaReadException
SBonitaReadExceptionlong count(TenantResourceType type, java.lang.String name) throws SBonitaReadException
SBonitaReadExceptionSTenantResource get(TenantResourceType type, java.lang.String name) throws SBonitaReadException
SBonitaReadExceptionSTenantResourceLight getSingleLightResource(TenantResourceType type) throws SBonitaReadException
type - the type of the resource to filterSBonitaReadException - if non unique result, or other Hibernate exception is issuedvoid remove(STenantResourceLight resource) throws SRecorderException
SRecorderException