Class MandantRessourcenAPI
-
Field Summary
Fields inherited from class AEntityAPI
entityClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod for creating aMandantRessourcewith the transmitted data.getAllByMandant(UserContext uc, Mandant mandant) Method for determining allMandantRessources for a client.getByName(UserContext uc, Mandant mandant, String name) Method for determining theMandantRessourceby his 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[] data, String userName, String fileName, MandantRessource res) Method for updating aMandantRessourcewith the transmitted data.Methods inherited from class AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getPagedResult, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, updateMethods inherited from class ASubAPI
getHandlerProvider
-
Constructor Details
-
MandantRessourcenAPI
public MandantRessourcenAPI()
-
-
Method Details
-
getByName
Method for determining theMandantRessourceby his name.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantthe client where the data are associated.name- of the client ressource.- Returns:
MandantRessourcewith the transmitted name.
-
getAllByMandant
Method for determining allMandantRessources for a client.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantthe client where the data are associated.- Returns:
Listof allMandantRessources for a client.
-
create
public MandantRessource create(UserContext uc, String name, byte[] data, String userName, String fileName, Mandant mandant) Method for creating aMandantRessourcewith the transmitted data.- Parameters:
uc-UserContextthe user context in which the action is to be performed.name- of theMandantRessource.data- of theMandantRessource.userName-Stringthe name of the user.fileName-Stringthe name of the file.mandant-Mandantthe client where the data are associated.- Returns:
- The created
MandantRessource.
-
update
public MandantRessource update(UserContext uc, byte[] data, String userName, String fileName, MandantRessource res) Method for updating aMandantRessourcewith the transmitted data.- Parameters:
uc-UserContextthe user context in which the action is to be performed.data- of theMandantRessource.userName-Stringthe name of the user.fileName-Stringthe name of the file.res-MandantRessourcewhich should updated.- Returns:
- The updated
MandantRessource.
-
getDownloadRessource
@Deprecated(forRemoval=true, since="8.3.0") public 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
public 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
public 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.