Class CrmTsvHdl

java.lang.Object
net.tangly.erp.crm.ports.CrmTsvHdl

public class CrmTsvHdl extends Object
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 Details

    • CrmTsvHdl

      public CrmTsvHdl(@NotNull @NotNull CrmRealm realm)
  • 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

      public static <T extends CrmEntity> net.tangly.gleam.model.TsvProperty<T,String> phoneNrProperty(String tagName, VcardType type)
    • emailProperty

      public static <T extends CrmEntity> net.tangly.gleam.model.TsvProperty<T,String> emailProperty(String tagName, VcardType type)
    • createAddressMapping

      public static <T extends CrmEntity> net.tangly.gleam.model.TsvProperty<T,net.tangly.core.Address> createAddressMapping(@NotNull @NotNull VcardType type)