Class CrmTsvHdl
java.lang.Object
net.tangly.erp.crm.ports.CrmTsvHdl
Provide import and export functions for CRM entities persisted in tab-separated files. These files are often defined for integration testing or integration of legacy systems, not
providing programmatic API. The description of the TSV file structure and the mapping rules are of a declarative nature. One2one relations are mapped
through the oid of the
referenced entity if defined, otherwise an empty string. One2many relations are mapped through a tab-separated list for the oid of the referenced entities if at least one is
defined, otherwise an empty string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends CrmEntity>
net.tangly.gleam.model.TsvProperty<T, net.tangly.core.Address> createAddressMapping
(@NotNull VcardType type) emailProperty
(String tagName, VcardType type) void
exportActivities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportComments
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportContractExtensions
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportContracts
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportEmployees
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportLeads
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportLegalEntities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportNaturalEntities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
exportOpportunities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importActivities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importComments
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importContractExtensions
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importContracts
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importEmployees
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importLeads
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importLegalEntities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importNaturalEntities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) void
importOpportunities
(@NotNull net.tangly.core.domain.DomainAudit audit, @NotNull Path path) phoneNrProperty
(String tagName, VcardType type)
-
Constructor Details
-
CrmTsvHdl
-
-
Method Details
-
importComments
public void importComments(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportComments
public void exportComments(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importLeads
public void importLeads(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportLeads
public void exportLeads(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importNaturalEntities
public void importNaturalEntities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportNaturalEntities
public void exportNaturalEntities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importLegalEntities
public void importLegalEntities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportLegalEntities
public void exportLegalEntities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importEmployees
public void importEmployees(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportEmployees
public void exportEmployees(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importContracts
public void importContracts(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importContractExtensions
public void importContractExtensions(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportContracts
public void exportContracts(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportContractExtensions
public void exportContractExtensions(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importOpportunities
public void importOpportunities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportOpportunities
public void exportOpportunities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
importActivities
public void importActivities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
exportActivities
public void exportActivities(@NotNull @NotNull net.tangly.core.domain.DomainAudit audit, @NotNull @NotNull Path path) -
phoneNrProperty
-
emailProperty
-
createAddressMapping
-