Interface IMandantRessourcenHandler
- All Superinterfaces:
IAPIHandler, IGenericHandler, Serializable
- All Known Implementing Classes:
MandantRessourceHandler
-
Method Summary
Modifier and TypeMethodDescriptioncreate(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant) getAllByMandant(UserContext uc, Mandant mandant) getByName(UserContext uc, Mandant mandant, String name) getDownloadResource(UserContext uc, long clientId, String resourceName) Finds aclient resourceby its resource name.getDownloadResource(UserContext uc, UUID clientUuid, String resourceName) Finds aclient resourceby its resource name.getDownloadRessource(UserContext uc, Integer mandantId, String resourceName) Deprecated, for removal: This API element is subject to removal in a future version.handleDownloadResourceRequest(UserContext uc, long clientId, String resourceName, ETagRequest eTagRequest) Finds the content of aclient resourceby its resource name.handleDownloadResourceRequest(UserContext uc, UUID clientUuid, String resourceName, ETagRequest eTagRequest) Finds the content of aclient resourceby its resource name.update(UserContext uc, byte[] daten, String userName, String fileName, MandantRessource res) Methods inherited from interface IAPIHandler
getNameMethods inherited from interface IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Method Details
-
getByName
-
getAllByMandant
-
create
MandantRessource create(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant) -
update
MandantRessource update(UserContext uc, byte[] daten, String userName, String fileName, MandantRessource res) -
getDownloadRessource
@Deprecated(forRemoval=true, since="8.3.0") MandantRessource getDownloadRessource(UserContext uc, Integer mandantId, String resourceName) Deprecated, for removal: This API element is subject to removal in a future version.UsegetDownloadResource(UserContext, long, String)instead.Finds aclient resourceby its resource name.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandantId- the id of the client.resourceName- the name of the resource.- Returns:
MandantRessourcewith the resource name.
-
getDownloadResource
Finds aclient resourceby its resource name.- Parameters:
uc-UserContextthe user context in which the action is to be performed.clientId- The ID of the client.resourceName- the name of the resource.- Returns:
MandantRessourcewith the resource name.- Since:
- 8.3.0
-
getDownloadResource
Finds aclient resourceby its resource name.- Parameters:
uc-UserContextthe user context in which the action is to be performed.clientUuid- The ID of the client.resourceName- the name of the resource.- Returns:
MandantRessourcewith the resource name.- Since:
- 8.3.0
-
handleDownloadResourceRequest
ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, long clientId, String resourceName, ETagRequest eTagRequest) Finds the content of aclient resourceby its resource name. Returns nothing if the resource has not been modified according to the given ETag request.- Parameters:
uc-UserContextthe user context in which the action is to be performed.clientId- The ID of the client.resourceName- the name of the resource.eTagRequest- The ETag request.- Returns:
- The content of the requested client resource, if modified.
- Since:
- 8.3.0
-
handleDownloadResourceRequest
ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, UUID clientUuid, String resourceName, ETagRequest eTagRequest) Finds the content of aclient resourceby its resource name. Returns nothing if the resource has not been modified according to the given ETag request.- Parameters:
uc-UserContextthe user context in which the action is to be performed.clientUuid- The UUID of the client.resourceName- the name of the resource.eTagRequest- The ETag request.- Returns:
- The content of the requested client resource, if modified.
- Since:
- 8.3.0
-
getDownloadResource(UserContext, long, String)instead.