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 ProjektRessourcecreate(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant, Projekt projekt)List<ProjektRessource>getAllByProjekt(UserContext uc, Projekt projekt)ProjektRessourcegetByName(UserContext uc, Projekt projekt, String name)ProjektRessourcegetDownloadResource(UserContext uc, FrontendServer fs, long projectId, String resourceName)Gets theProjektRessourcefor the given client and project UUID, with the given name.ProjektRessourcegetDownloadResource(UserContext uc, FrontendServer fs, Long clientId, Long projectId, String ressourceName)Gets theProjektRessourcefor the given client and project UUID, with the given name.ProjektRessourcegetDownloadResource(UserContext uc, FrontendServer fs, Long clientId, UUID projectUuid, String ressourceName)Gets theProjektRessourcefor the given client and project UUID, with the given name.ProjektRessourcegetDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, Long projectId, String resourceName)Gets theProjektRessourcefor the given client and project UUID, with the given name.ProjektRessourcegetDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, UUID projectUuid, String ressourceName)Gets theProjektRessourcefor the given client and project UUID, with the given name.ProjektRessourcegetDownloadRessource(UserContext uc, FrontendServer fs, Integer projektId, String ressourceName)Gets theProjektRessourcefor 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 theProjektRessourcefor the given client and project UUID, with the given name.ETagResource<ByteArrayFile>handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long projectId, String resourceName, ETagRequest eTagRequest)Gets theProjektRessourcefor 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 theProjektRessourcefor 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 theProjektRessourcefor 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 theProjektRessourcefor the given client and project UUID, with the given name.ProjektRessourceupdate(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:
 getByNamein interfaceIProjektRessourcenHandler
 
- 
getAllByProjekt
public List<ProjektRessource> getAllByProjekt(UserContext uc, Projekt projekt)
- Specified by:
 getAllByProjektin interfaceIProjektRessourcenHandler
 
- 
create
public ProjektRessource create(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant, Projekt projekt)
- Specified by:
 createin interfaceIProjektRessourcenHandler
 
- 
update
public ProjektRessource update(UserContext uc, byte[] daten, String userName, String fileName, ProjektRessource res)
- Specified by:
 updatein interfaceIProjektRessourcenHandler
 
- 
getDownloadRessource
public ProjektRessource getDownloadRessource(UserContext uc, FrontendServer fs, Integer projektId, String ressourceName)
Description copied from interface:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 getDownloadRessourcein 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 getDownloadResourcein 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 getDownloadResourcein 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 getDownloadResourcein 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 getDownloadResourcein 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 getDownloadResourcein 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 handleDownloadResourceRequestin 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 handleDownloadResourceRequestin 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 handleDownloadResourceRequestin 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 handleDownloadResourceRequestin 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:IProjektRessourcenHandlerGets theProjektRessourcefor the given client and project UUID, with the given name.- Specified by:
 handleDownloadResourceRequestin 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.
 
 
 - 
 
 -