Package de.xima.fc.handler.entity
Class ProjektRessourceHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.ProjektRessourceHandler
-
- All Implemented Interfaces:
IAPIHandler
,IGenericHandler
,IProjektRessourcenHandler
,Serializable
public class ProjektRessourceHandler extends GenericHandler implements IProjektRessourcenHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description ProjektRessourceHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjektRessource
create(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant, Projekt projekt)
List<ProjektRessource>
getAllByProjekt(UserContext uc, Projekt projekt)
ProjektRessource
getByName(UserContext uc, Projekt projekt, String name)
ProjektRessource
getDownloadResource(UserContext uc, FrontendServer fs, long projectId, String resourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.ProjektRessource
getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, Long projectId, String ressourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.ProjektRessource
getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, UUID projectUuid, String ressourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.ProjektRessource
getDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, Long projectId, String resourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.ProjektRessource
getDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, UUID projectUuid, String ressourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.ProjektRessource
getDownloadRessource(UserContext uc, FrontendServer fs, Integer projektId, String ressourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.ETagResource<ByteArrayFile>
handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long clientId, Long projectId, String resourceName, ETagRequest eTagRequest)
Gets theProjektRessource
for the given client and project UUID, with the given name.ETagResource<ByteArrayFile>
handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long projectId, String resourceName, ETagRequest eTagRequest)
Gets theProjektRessource
for the given client and project UUID, with the given name.ETagResource<ByteArrayFile>
handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long clientId, UUID projectUuid, String resourceName, ETagRequest eTagRequest)
Gets theProjektRessource
for the given client and project UUID, with the given name.ETagResource<ByteArrayFile>
handleDownloadResourceRequest(UserContext uc, FrontendServer fs, UUID clientUuid, Long projectId, String resourceName, ETagRequest eTagRequest)
Gets theProjektRessource
for the given client and project UUID, with the given name.ETagResource<ByteArrayFile>
handleDownloadResourceRequest(UserContext uc, FrontendServer fs, UUID clientUuid, UUID projectUuid, String resourceName, ETagRequest eTagRequest)
Gets theProjektRessource
for the given client and project UUID, with the given name.ProjektRessource
update(UserContext uc, byte[] daten, String userName, String fileName, ProjektRessource res)
-
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 ProjektRessource getByName(UserContext uc, Projekt projekt, String name)
- Specified by:
getByName
in interfaceIProjektRessourcenHandler
-
getAllByProjekt
public List<ProjektRessource> getAllByProjekt(UserContext uc, Projekt projekt)
- Specified by:
getAllByProjekt
in interfaceIProjektRessourcenHandler
-
create
public ProjektRessource create(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant, Projekt projekt)
- Specified by:
create
in interfaceIProjektRessourcenHandler
-
update
public ProjektRessource update(UserContext uc, byte[] daten, String userName, String fileName, ProjektRessource res)
- Specified by:
update
in interfaceIProjektRessourcenHandler
-
getDownloadRessource
public ProjektRessource getDownloadRessource(UserContext uc, FrontendServer fs, Integer projektId, String ressourceName)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
getDownloadRessource
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.projektId
- ID of the project that contains the resource.ressourceName
- Resource name.- Returns:
- The resource with the given name, or null if no such resource exists.
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, long projectId, String resourceName)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
getDownloadResource
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.projectId
- ID of the project that contains the resource.resourceName
- Resource name.- Returns:
- The resource with the given name, or null if no such resource exists.
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, UUID projectUuid, String ressourceName)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
getDownloadResource
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientUuid
- UUID of the client that owns the project.projectUuid
- UUID of the project that contains the resource.ressourceName
- Resource name.- Returns:
- The resource with the given name, or null if no such resource exists.
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, Long projectId, String resourceName)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
getDownloadResource
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientUuid
- UUID of the client that owns the project.projectId
- ID of the project that contains the resource.resourceName
- Resource name.- Returns:
- The resource with the given name, or null if no such resource exists.
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, Long projectId, String ressourceName)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
getDownloadResource
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientId
- ID of the client that owns the project.projectId
- ID of the project that contains the resource.ressourceName
- Resource name.- Returns:
- The resource with the given name, or null if no such resource exists.
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, UUID projectUuid, String ressourceName)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
getDownloadResource
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientId
- ID of the client that owns the project.projectUuid
- UUID of the project that contains the resource.ressourceName
- Resource name.- Returns:
- The resource with the given name, or null if no such resource exists.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long projectId, String resourceName, ETagRequest eTagRequest)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
handleDownloadResourceRequest
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.projectId
- ID of the project that contains the resource.resourceName
- Resource name.eTagRequest
- Data of the ETag request.- Returns:
- The resource with the given name, or null if no such resource exists.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, FrontendServer fs, UUID clientUuid, UUID projectUuid, String resourceName, ETagRequest eTagRequest)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
handleDownloadResourceRequest
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientUuid
- UUID of the client that owns the project.projectUuid
- UUID of the project that contains the resource.resourceName
- Resource name.eTagRequest
- Data of the ETag request.- Returns:
- The resource with the given name, or null if no such resource exists.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, FrontendServer fs, UUID clientUuid, Long projectId, String resourceName, ETagRequest eTagRequest)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
handleDownloadResourceRequest
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientUuid
- UUID of the client that owns the project.projectId
- ID of the project that contains the resource.resourceName
- Resource name.eTagRequest
- Data of the ETag request.- Returns:
- The resource with the given name, or null if no such resource exists.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long clientId, UUID projectUuid, String resourceName, ETagRequest eTagRequest)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
handleDownloadResourceRequest
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientId
- ID of the client that owns the project.projectUuid
- UUID of the project that contains the resource.resourceName
- Resource name.eTagRequest
- Data of the ETag request.- Returns:
- The resource with the given name, or null if no such resource exists.
-
handleDownloadResourceRequest
public ETagResource<ByteArrayFile> handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long clientId, Long projectId, String resourceName, ETagRequest eTagRequest)
Description copied from interface:IProjektRessourcenHandler
Gets theProjektRessource
for the given client and project UUID, with the given name.- Specified by:
handleDownloadResourceRequest
in interfaceIProjektRessourcenHandler
- Parameters:
uc
- User context.fs
- Frontend server.clientId
- ID of the client that owns the project.projectId
- ID of the project that contains the resource.resourceName
- Resource name.eTagRequest
- Data of the ETag request.- Returns:
- The resource with the given name, or null if no such resource exists.
-
-