Package de.xima.fc.api.entity
Class MandantRessourcenAPI
-
Field Summary
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod for creating aMandantRessource
with the transmitted data.getAllByMandant
(UserContext uc, Mandant mandant) Method for determining allMandantRessource
s for a client.getByName
(UserContext uc, Mandant mandant, String name) Method for determining theMandantRessource
by his name.getDownloadRessource
(UserContext uc, Integer mandantId, String resourceName) Method for determining aMandantRessource
by the resource name.update
(UserContext uc, byte[] data, String userName, String fileName, MandantRessource res) Method for updating aMandantRessource
with the transmitted data.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, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
MandantRessourcenAPI
public MandantRessourcenAPI()
-
-
Method Details
-
getByName
Method for determining theMandantRessource
by his name.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
-Mandant
the client where the data are associated.name
- of the client ressource.- Returns:
MandantRessource
with the transmitted name.
-
getAllByMandant
Method for determining allMandantRessource
s for a client.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
-Mandant
the client where the data are associated.- Returns:
List
of allMandantRessource
s for a client.
-
create
public MandantRessource create(UserContext uc, String name, byte[] data, String userName, String fileName, Mandant mandant) Method for creating aMandantRessource
with the transmitted data.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.name
- of theMandantRessource
.data
- of theMandantRessource
.userName
-String
the name of the user.fileName
-String
the name of the file.mandant
-Mandant
the client where the data are associated.- Returns:
- The created
MandantRessource
.
-
update
public MandantRessource update(UserContext uc, byte[] data, String userName, String fileName, MandantRessource res) Method for updating aMandantRessource
with the transmitted data.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.data
- of theMandantRessource
.userName
-String
the name of the user.fileName
-String
the name of the file.res
-MandantRessource
which should updated.- Returns:
- The updated
MandantRessource
.
-
getDownloadRessource
public MandantRessource getDownloadRessource(UserContext uc, Integer mandantId, String resourceName) Method for determining aMandantRessource
by the resource name.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandantId
- the id of the client.resourceName
- the name of the resource.- Returns:
MandantRessource
with the resource name.
-