Class EntityFormatServiceImpl

java.lang.Object
fr.becpg.repo.entity.impl.EntityFormatServiceImpl
All Implemented Interfaces:
EntityFormatService

@Service("entityFormatService") public class EntityFormatServiceImpl extends Object implements EntityFormatService

EntityFormatServiceImpl class.

Author:
matthieu
  • Field Details

    • dbNodeService

      @Autowired @Qualifier("mtAwareNodeService") private org.alfresco.service.cmr.repository.NodeService dbNodeService
    • entityListDAO

      @Autowired protected EntityListDAO entityListDAO
    • remoteEntityService

      @Autowired private RemoteEntityService remoteEntityService
    • contentService

      @Autowired protected org.alfresco.service.cmr.repository.ContentService contentService
    • namespaceService

      @Autowired protected org.alfresco.service.namespace.NamespaceService namespaceService
    • exporterService

      @Autowired @Qualifier("exporterComponent") private org.alfresco.service.cmr.view.ExporterService exporterService
    • repositoryHelper

      @Autowired protected org.alfresco.repo.model.Repository repositoryHelper
    • ruleService

      @Autowired protected org.alfresco.service.cmr.rule.RuleService ruleService
    • logger

      private static final org.apache.commons.logging.Log logger
      Constant logger
  • Constructor Details

    • EntityFormatServiceImpl

      public EntityFormatServiceImpl()
  • Method Details

    • generateEntityData

      public String generateEntityData(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, BeCPGModel.EntityFormat toFormat)

      generateEntityData.

      Specified by:
      generateEntityData in interface EntityFormatService
      Parameters:
      entityNodeRef - a NodeRef object
      toFormat - a BeCPGModel.EntityFormat object
      Returns:
      a String object
    • generateEntityData

      public String generateEntityData(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, BeCPGModel.EntityFormat toFormat, Map<String,Object> extraParams)

      generateEntityData.

      Specified by:
      generateEntityData in interface EntityFormatService
      Parameters:
      entityNodeRef - a NodeRef object
      toFormat - a BeCPGModel.EntityFormat object
      extraParams - a Map object
      Returns:
      a String object
    • convertToFormat

      public void convertToFormat(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, BeCPGModel.EntityFormat targetFormat)

      convertToFormat.

      Specified by:
      convertToFormat in interface EntityFormatService
      Parameters:
      entityNodeRef - a NodeRef object
      targetFormat - a BeCPGModel.EntityFormat object
    • convertEntityToJsonFormat

      private void convertEntityToJsonFormat(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)

      convertEntityToJsonFormat.

      Parameters:
      entityNodeRef - a NodeRef object
    • removeEntityDatalists

      private void removeEntityDatalists(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)

      removeEntityDatalists.

      Parameters:
      entityNodeRef - a NodeRef object
    • convertEntityToNodeFormat

      private void convertEntityToNodeFormat(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)

      convertEntityToNodeFormat.

      Parameters:
      entityNodeRef - a NodeRef object
    • createOrUpdateEntityFromJson

      public void createOrUpdateEntityFromJson(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, String entityJson)

      createOrUpdateEntityFromJson.

      Specified by:
      createOrUpdateEntityFromJson in interface EntityFormatService
      Parameters:
      entityNodeRef - a NodeRef object
      entityJson - a String object
    • updateEntityFormat

      public void updateEntityFormat(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, BeCPGModel.EntityFormat format, String data)

      updateEntityFormat.

      Specified by:
      updateEntityFormat in interface EntityFormatService
      Parameters:
      entityNodeRef - a NodeRef object
      format - a BeCPGModel.EntityFormat object
      data - a String object
    • getEntityData

      public String getEntityData(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)

      getEntityData.

      Specified by:
      getEntityData in interface EntityFormatService
      Parameters:
      entityNodeRef - a NodeRef object
      Returns:
      a String object
    • getEntityFormat

      public String getEntityFormat(org.alfresco.service.cmr.repository.NodeRef entityNodeRef)

      getEntityFormat.

      Specified by:
      getEntityFormat in interface EntityFormatService
      Parameters:
      entityNodeRef - a NodeRef object
      Returns:
      a String object