Package de.xima.fc.api.entity
Class ProjektRessourcenAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<ProjektRessource>
-
- de.xima.fc.api.entity.ProjektRessourcenAPI
-
public class ProjektRessourcenAPI extends AEntityAPI<ProjektRessource>
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description ProjektRessourcenAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated 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, Integer projectId, String resourceName)
Deprecated, for removal: This API element is subject to removal in a future version.ProjektRessource
getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, 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, UUID projectUuid, String resourceName)
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 resourceName)
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.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getPagedResult, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
getByName
public ProjektRessource getByName(UserContext uc, Projekt projekt, String name)
-
getAllByProjekt
public List<ProjektRessource> getAllByProjekt(UserContext uc, Projekt projekt)
-
create
public ProjektRessource create(UserContext uc, String name, byte[] daten, String userName, String fileName, Mandant mandant, Projekt projekt)
-
update
public ProjektRessource update(UserContext uc, byte[] daten, String userName, String fileName, ProjektRessource res)
-
getDownloadResource
@Deprecated(forRemoval=true, since="8.3.0") public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, Integer projectId, String resourceName)
Deprecated, for removal: This API element is subject to removal in a future version.Gets theProjektRessource
for the given client and project UUID, with the given name.- 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, long projectId, String resourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.- 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.
- Since:
- 8.3.0
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, UUID clientUuid, UUID projectUuid, String resourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.- 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.- Returns:
- The resource with the given name, or null if no such resource exists.
- Since:
- 8.3.0
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, Long projectId, String resourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.- 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.- Returns:
- The resource with the given name, or null if no such resource exists.
- Since:
- 8.3.0
-
getDownloadResource
public 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.- Parameters:
uc
- User context.fs
- Frontend server.clientUuid
- UUID of the client that owns the project.projectId
- projectId of the project that contains the resource.resourceName
- Resource name.- Returns:
- The resource with the given name, or null if no such resource exists.
- Since:
- 8.3.0
-
getDownloadResource
public ProjektRessource getDownloadResource(UserContext uc, FrontendServer fs, Long clientId, UUID projectUuid, String resourceName)
Gets theProjektRessource
for the given client and project UUID, with the given name.- 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.- Returns:
- The resource with the given name, or null if no such resource exists.
- Since:
- 8.3.0
-
handleDownloadResourceRequest
public 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.- 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.
- Since:
- 8.3.0
-
handleDownloadResourceRequest
public 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.- 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.
- Since:
- 8.3.0
-
handleDownloadResourceRequest
public 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.- 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.
- Since:
- 8.3.0
-
handleDownloadResourceRequest
public 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.- 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.
- Since:
- 8.3.0
-
handleDownloadResourceRequest
public 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.- 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.
- Since:
- 8.3.0
-
-