Class MandantRessourceHandler
java.lang.Object
de.xima.fc.handler.AMSApiHandler
de.xima.fc.handler.entity.GenericHandler
de.xima.fc.handler.entity.MandantRessourceHandler
- All Implemented Interfaces:
IAPIHandler, IGenericHandler, IMandantRessourcenHandler, Serializable
- See Also:
-
Field Summary
Fields inherited from class GenericHandler
LOG -
Constructor Summary
Constructors -
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 ressourceName) Finds aclient resourceby its resource name.getDownloadResource(UserContext uc, UUID clientUuid, String ressourceName) Finds aclient resourceby its resource name.getDownloadRessource(UserContext uc, Integer mandantId, String ressourceName) Finds aclient resourceby its resource name.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 class GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, updateMethods inherited from class AMSApiHandler
getNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
MandantRessourceHandler
public MandantRessourceHandler()
-
-
Method Details
-
getByName
- Specified by:
getByNamein interfaceIMandantRessourcenHandler
-
getAllByMandant
- Specified by:
getAllByMandantin interfaceIMandantRessourcenHandler
-
create
public MandantRessource create(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant) - Specified by:
createin interfaceIMandantRessourcenHandler
-
update
public MandantRessource update(UserContext uc, byte[] daten, String userName, String fileName, MandantRessource res) - Specified by:
updatein interfaceIMandantRessourcenHandler
-
getDownloadRessource
public MandantRessource getDownloadRessource(UserContext uc, Integer mandantId, String ressourceName) Description copied from interface:IMandantRessourcenHandlerFinds aclient resourceby its resource name.- Specified by:
getDownloadRessourcein interfaceIMandantRessourcenHandler- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandantId- the id of the client.ressourceName- the name of the resource.- Returns:
MandantRessourcewith the resource name.
-
getDownloadResource
Description copied from interface:IMandantRessourcenHandlerFinds aclient resourceby its resource name.- Specified by:
getDownloadResourcein interfaceIMandantRessourcenHandler- Parameters:
uc-UserContextthe user context in which the action is to be performed.clientId- The ID of the client.ressourceName- the name of the resource.- Returns:
MandantRessourcewith the resource name.
-
getDownloadResource
Description copied from interface:IMandantRessourcenHandlerFinds aclient resourceby its resource name.- Specified by:
getDownloadResourcein interfaceIMandantRessourcenHandler- Parameters:
uc-UserContextthe user context in which the action is to be performed.clientUuid- The ID of the client.ressourceName- the name of the resource.- Returns:
MandantRessourcewith the resource name.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, long clientId, String resourceName, ETagRequest eTagRequest) Description copied from interface:IMandantRessourcenHandlerFinds the content of aclient resourceby its resource name. Returns nothing if the resource has not been modified according to the given ETag request.- Specified by:
handleDownloadResourceRequestin interfaceIMandantRessourcenHandler- 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.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, UUID clientUuid, String resourceName, ETagRequest eTagRequest) Description copied from interface:IMandantRessourcenHandlerFinds the content of aclient resourceby its resource name. Returns nothing if the resource has not been modified according to the given ETag request.- Specified by:
handleDownloadResourceRequestin interfaceIMandantRessourcenHandler- 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.
-