Package de.xima.fc.api.entity
Class MandantRessourcenAPI
- java.lang.Object
 - 
- de.xima.fc.api.ASubAPI
 - 
- de.xima.fc.api.entity.AEntityAPI<MandantRessource>
 - 
- de.xima.fc.api.entity.MandantRessourcenAPI
 
 
 
 
- 
public class MandantRessourcenAPI extends AEntityAPI<MandantRessource>
 
- 
- 
Field Summary
- 
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MandantRessourcenAPI() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MandantRessourcecreate(UserContext uc, String name, byte[] data, String userName, String fileName, Mandant mandant)Method for creating aMandantRessourcewith the transmitted data.List<MandantRessource>getAllByMandant(UserContext uc, Mandant mandant)Method for determining allMandantRessources for a client.MandantRessourcegetByName(UserContext uc, Mandant mandant, String name)Method for determining theMandantRessourceby his name.MandantRessourcegetDownloadRessource(UserContext uc, Integer mandantId, String resourceName)Method for determining aMandantRessourceby the resource name.MandantRessourceupdate(UserContext uc, byte[] data, String userName, String fileName, MandantRessource res)Method for updating aMandantRessourcewith 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, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update 
- 
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getByName
public MandantRessource getByName(UserContext uc, Mandant mandant, String name)
Method for determining theMandantRessourceby his name.- Parameters:
 uc-UserContextthe user context in which the action is to be performed.mandant-Mandantthe client where the data are associated.name- of the client ressource.- Returns:
 MandantRessourcewith the transmitted name.
 
- 
getAllByMandant
public List<MandantRessource> getAllByMandant(UserContext uc, Mandant mandant)
Method for determining allMandantRessources for a client.- Parameters:
 uc-UserContextthe user context in which the action is to be performed.mandant-Mandantthe client where the data are associated.- Returns:
 Listof allMandantRessources for a client.
 
- 
create
public MandantRessource create(UserContext uc, String name, byte[] data, String userName, String fileName, Mandant mandant)
Method for creating aMandantRessourcewith the transmitted data.- Parameters:
 uc-UserContextthe user context in which the action is to be performed.name- of theMandantRessource.data- of theMandantRessource.userName-Stringthe name of the user.fileName-Stringthe name of the file.mandant-Mandantthe 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 aMandantRessourcewith the transmitted data.- Parameters:
 uc-UserContextthe user context in which the action is to be performed.data- of theMandantRessource.userName-Stringthe name of the user.fileName-Stringthe name of the file.res-MandantRessourcewhich should updated.- Returns:
 - The updated 
MandantRessource. 
 
- 
getDownloadRessource
public MandantRessource getDownloadRessource(UserContext uc, Integer mandantId, String resourceName)
Method for determining aMandantRessourceby the resource name.- Parameters:
 uc-UserContextthe user context in which the action is to be performed.mandantId- the id of the client.resourceName- the name of the resource.- Returns:
 MandantRessourcewith the resource name.
 
 - 
 
 -