public class MandantRessourcenAPI extends AEntityAPI<MandantRessource>
entityClass
Constructor and Description |
---|
MandantRessourcenAPI() |
Modifier and Type | Method and Description |
---|---|
MandantRessource |
create(UserContext uc,
String name,
byte[] data,
String userName,
String fileName,
Mandant mandant)
Method for creating a
MandantRessource with the transmitted data. |
List<MandantRessource> |
getAllByMandant(UserContext uc,
Mandant mandant)
Method for determining all
MandantRessource s for a client. |
MandantRessource |
getByName(UserContext uc,
Mandant mandant,
String name)
Method for determining the
MandantRessource by his name. |
MandantRessource |
getDownloadRessource(UserContext uc,
Integer mandantId,
String resourceName)
Method for determining a
MandantRessource by the resource name. |
MandantRessource |
update(UserContext uc,
byte[] data,
String userName,
String fileName,
MandantRessource res)
Method for updating a
MandantRessource with the transmitted data. |
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getBy, getById, getById, resultTotalCount, update, update
getHandlerProvider
public MandantRessource getByName(UserContext uc, Mandant mandant, String name)
MandantRessource
by his name.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.MandantRessource
with the transmitted name.public List<MandantRessource> getAllByMandant(UserContext uc, Mandant mandant)
MandantRessource
s for a client.uc
- UserContext
the user context in which the action is to be performed.mandant
- Mandant
the client where the data are associated.List
of all MandantRessource
s for a client.public MandantRessource create(UserContext uc, String name, byte[] data, String userName, String fileName, Mandant mandant)
MandantRessource
with the transmitted data.uc
- UserContext
the user context in which the action is to be performed.name
- of the MandantRessource
.data
- of the MandantRessource
.userName
- String
the name of the user.fileName
- String
the name of the file.mandant
- Mandant
the client where the data are associated.MandantRessource
.public MandantRessource update(UserContext uc, byte[] data, String userName, String fileName, MandantRessource res)
MandantRessource
with the transmitted data.uc
- UserContext
the user context in which the action is to be performed.data
- of the MandantRessource
.userName
- String
the name of the user.fileName
- String
the name of the file.res
- MandantRessource
which should updated.MandantRessource
.public MandantRessource getDownloadRessource(UserContext uc, Integer mandantId, String resourceName)
MandantRessource
by the resource name.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.MandantRessource
with the resource name.Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.