Package de.xima.fc.handler.entity
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
public class MandantRessourceHandler extends GenericHandler implements IMandantRessourcenHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description MandantRessourceHandler()
-
Method Summary
-
Methods inherited from class de.xima.fc.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public MandantRessource getByName(UserContext uc, Mandant mandant, String name)
- Specified by:
getByName
in interfaceIMandantRessourcenHandler
-
getAllByMandant
public List<MandantRessource> getAllByMandant(UserContext uc, Mandant mandant)
- Specified by:
getAllByMandant
in interfaceIMandantRessourcenHandler
-
create
public MandantRessource create(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant)
- Specified by:
create
in interfaceIMandantRessourcenHandler
-
update
public MandantRessource update(UserContext uc, byte[] daten, String userName, String fileName, MandantRessource res)
- Specified by:
update
in interfaceIMandantRessourcenHandler
-
getDownloadRessource
public MandantRessource getDownloadRessource(UserContext uc, Integer mandantId, String ressourceName)
Description copied from interface:IMandantRessourcenHandler
Finds aclient resource
by its resource name.- Specified by:
getDownloadRessource
in interfaceIMandantRessourcenHandler
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandantId
- the id of the client.ressourceName
- the name of the resource.- Returns:
MandantRessource
with the resource name.
-
getDownloadResource
public MandantRessource getDownloadResource(UserContext uc, long clientId, String ressourceName)
Description copied from interface:IMandantRessourcenHandler
Finds aclient resource
by its resource name.- Specified by:
getDownloadResource
in interfaceIMandantRessourcenHandler
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.clientId
- The ID of the client.ressourceName
- the name of the resource.- Returns:
MandantRessource
with the resource name.
-
getDownloadResource
public MandantRessource getDownloadResource(UserContext uc, UUID clientUuid, String ressourceName)
Description copied from interface:IMandantRessourcenHandler
Finds aclient resource
by its resource name.- Specified by:
getDownloadResource
in interfaceIMandantRessourcenHandler
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.clientUuid
- The ID of the client.ressourceName
- the name of the resource.- Returns:
MandantRessource
with the resource name.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, long clientId, String resourceName, ETagRequest eTagRequest)
Description copied from interface:IMandantRessourcenHandler
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.- Specified by:
handleDownloadResourceRequest
in interfaceIMandantRessourcenHandler
- 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.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, UUID clientUuid, String resourceName, ETagRequest eTagRequest)
Description copied from interface:IMandantRessourcenHandler
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.- Specified by:
handleDownloadResourceRequest
in interfaceIMandantRessourcenHandler
- 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.
-
-