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
- 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, Projekt projekt) getAllByProjekt(UserContext uc, Projekt projekt) getByName(UserContext uc, Projekt projekt, String name) getDownloadResource(UserContext uc, FrontendServer fs, long projectId, String resourceName) Gets theProjektRessourcefor the given client and project UUID, with the given name.getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, Long projectId, String ressourceName) Gets theProjektRessourcefor the given client and project UUID, with the given name.getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, UUID projectUuid, String ressourceName) Gets theProjektRessourcefor the given client and project UUID, with the given name.getDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, Long projectId, String resourceName) Gets theProjektRessourcefor the given client and project UUID, with the given name.getDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, UUID projectUuid, String ressourceName) Gets theProjektRessourcefor the given client and project UUID, with the given name.getDownloadRessource(UserContext uc, FrontendServer fs, Integer projektId, String ressourceName) Gets theProjektRessourcefor the given client and project UUID, with the given name.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.handleDownloadResourceRequest(UserContext uc, FrontendServer fs, Long projectId, String resourceName, ETagRequest eTagRequest) Gets theProjektRessourcefor the given client and project UUID, with the given name.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.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.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.update(UserContext uc, byte[] daten, String userName, String fileName, ProjektRessource 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
-
ProjektRessourceHandler
public ProjektRessourceHandler()
-
-
Method Details
-
getByName
- Specified by:
getByNamein interfaceIProjektRessourcenHandler
-
getAllByProjekt
- 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.
-