@GeneratedType(value="net.datenwerke.dtoservices.dtogenerator.DtoAnnotationProcessor") public class DtoServiceImpl extends java.lang.Object implements DtoMainService, DtoService
Constructor and Description |
---|
DtoServiceImpl(<any> creationHelperProvider,
Injector injector) |
Modifier and Type | Method and Description |
---|---|
void |
attachSubModule(DtoService subModule) |
java.lang.Object |
createDto(java.lang.Object poso) |
java.lang.Object |
createDto(java.lang.Object poso,
DtoView here,
DtoView referenced)
Generates a DTO given a Poso.
|
java.lang.Object |
createDtoFullAccess(java.lang.Object poso) |
java.lang.String[] |
createFto(java.lang.Object poso) |
java.lang.String[] |
createFto(java.lang.Object poso,
DtoView here,
DtoView referenced) |
java.lang.String[] |
createFtoFullAccess(java.lang.Object poso) |
java.lang.Object |
createListDto(java.lang.Object poso) |
java.lang.String[] |
createListFto(java.lang.Object poso) |
java.lang.Object |
createPoso(java.lang.Object dto)
Generates a Poso given a Dto.
|
java.lang.Object |
createUnmanagedPoso(java.lang.Object dto)
Generates a Poso given a Dto.
|
java.lang.String[] |
dto2Fto(Dto dto) |
DtoCreationHelper |
getCreationHelper() |
java.lang.Class<?> |
getPosoFromDtoMapper(Dto2PosoMapper mapper)
Resolves poso from mapper
|
java.lang.Object |
instantiateDto(java.lang.Class<?> posoType)
Generates a Dto instance given a Poso.
|
java.lang.Object |
instantiateDto(java.lang.Object poso)
Generates a Dto instance given a Poso.
|
java.lang.Object |
instantiatePoso(java.lang.Class<?> dtoType)
Generates a Poso given a Dto's class (no properties are set).
|
boolean |
isAuthorityForDto(java.lang.Object dto) |
boolean |
isAuthorityForDtoClass(java.lang.Class<?> dtoType) |
boolean |
isAuthorityForPoso(java.lang.Object poso) |
boolean |
isAuthorityForPosoClass(java.lang.Class<?> posoType) |
java.lang.Object |
loadAndMergePoso(java.lang.Object dto)
Loads a poso and merges data given a Dto.
|
java.lang.Object |
loadPoso(java.lang.Object dto)
Loads a Poso given a Dto.
|
void |
mergePoso(java.lang.Object dto,
java.lang.Object poso)
Merges a Poso given a Dto.
|
void |
mergeUnmanagedPoso(java.lang.Object dto,
java.lang.Object poso)
Merges an unmanaged Poso given a Dto.
|
void |
setCreationHelper(DtoCreationHelper creationHelper) |
public DtoServiceImpl(<any> creationHelperProvider, Injector injector)
public java.lang.Object instantiateDto(java.lang.Object poso)
instantiateDto
in interface DtoService
public java.lang.Object instantiateDto(java.lang.Class<?> posoType)
instantiateDto
in interface DtoService
public java.lang.Object createDto(java.lang.Object poso, DtoView here, DtoView referenced)
createDto
in interface DtoService
public java.lang.Object createDto(java.lang.Object poso)
createDto
in interface DtoService
public java.lang.Object createListDto(java.lang.Object poso)
createListDto
in interface DtoService
public java.lang.Object createDtoFullAccess(java.lang.Object poso)
createDtoFullAccess
in interface DtoService
public java.lang.Object loadPoso(java.lang.Object dto)
loadPoso
in interface DtoService
dto
- the dto send e.g. by the clientpublic java.lang.Object createPoso(java.lang.Object dto) throws ExpectedException
createPoso
in interface DtoService
ExpectedException
public java.lang.Object createUnmanagedPoso(java.lang.Object dto) throws ExpectedException
createUnmanagedPoso
in interface DtoService
ExpectedException
public java.lang.Object instantiatePoso(java.lang.Class<?> dtoType)
instantiatePoso
in interface DtoService
public void mergePoso(java.lang.Object dto, java.lang.Object poso) throws ExpectedException
mergePoso
in interface DtoService
ExpectedException
public void mergeUnmanagedPoso(java.lang.Object dto, java.lang.Object poso) throws ExpectedException
mergeUnmanagedPoso
in interface DtoService
ExpectedException
public java.lang.Object loadAndMergePoso(java.lang.Object dto) throws ExpectedException
loadAndMergePoso
in interface DtoService
ExpectedException
public boolean isAuthorityForPosoClass(java.lang.Class<?> posoType)
isAuthorityForPosoClass
in interface DtoService
public boolean isAuthorityForDtoClass(java.lang.Class<?> dtoType)
isAuthorityForDtoClass
in interface DtoService
public boolean isAuthorityForPoso(java.lang.Object poso)
isAuthorityForPoso
in interface DtoService
public boolean isAuthorityForDto(java.lang.Object dto)
isAuthorityForDto
in interface DtoService
public java.lang.String[] createFto(java.lang.Object poso, DtoView here, DtoView referenced)
createFto
in interface DtoService
public java.lang.String[] createFto(java.lang.Object poso)
createFto
in interface DtoService
public java.lang.String[] createListFto(java.lang.Object poso)
createListFto
in interface DtoService
public java.lang.String[] createFtoFullAccess(java.lang.Object poso)
createFtoFullAccess
in interface DtoService
public java.lang.String[] dto2Fto(Dto dto)
dto2Fto
in interface DtoService
public DtoCreationHelper getCreationHelper()
getCreationHelper
in interface DtoMainService
public void setCreationHelper(DtoCreationHelper creationHelper)
public void attachSubModule(DtoService subModule)
attachSubModule
in interface DtoMainService
public java.lang.Class<?> getPosoFromDtoMapper(Dto2PosoMapper mapper)
getPosoFromDtoMapper
in interface DtoService