Interface IMandantRessourcenHandler
-
- All Superinterfaces:
IAPIHandler
,IGenericHandler
,Serializable
- All Known Implementing Classes:
MandantRessourceHandler
public interface IMandantRessourcenHandler extends IGenericHandler
-
-
Method Summary
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getByName
MandantRessource getByName(UserContext uc, Mandant mandant, String name)
-
getAllByMandant
List<MandantRessource> getAllByMandant(UserContext uc, Mandant mandant)
-
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 resource
by its resource name.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandantId
- the id of the client.resourceName
- the name of the resource.- Returns:
MandantRessource
with the resource name.
-
getDownloadResource
MandantRessource getDownloadResource(UserContext uc, long clientId, String resourceName)
Finds aclient resource
by its resource name.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.clientId
- The ID of the client.resourceName
- the name of the resource.- Returns:
MandantRessource
with the resource name.- Since:
- 8.3.0
-
getDownloadResource
MandantRessource getDownloadResource(UserContext uc, UUID clientUuid, String resourceName)
Finds aclient resource
by its resource name.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.clientUuid
- The ID of the client.resourceName
- the name of the resource.- Returns:
MandantRessource
with the resource name.- Since:
- 8.3.0
-
handleDownloadResourceRequest
ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, long clientId, String resourceName, ETagRequest eTagRequest)
Finds the content of aclient resource
by its resource name. Returns nothing if the resource has not been modified according to the given ETag request.- Parameters:
uc
-UserContext
the 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 resource
by its resource name. Returns nothing if the resource has not been modified according to the given ETag request.- Parameters:
uc
-UserContext
the 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
-
-