Class EntityTplServiceImpl

java.lang.Object
fr.becpg.repo.entity.impl.EntityTplServiceImpl
All Implemented Interfaces:
EntityTplService

@Service("entityTplService") public class EntityTplServiceImpl extends Object implements EntityTplService

EntityTplServiceImpl class.

Version:
$Id: $Id
Author:
matthieu
  • Field Details

    • ASYNC_ACTION_URL_PREFIX

      private static final String ASYNC_ACTION_URL_PREFIX
      See Also:
    • ENTITY_DATALIST_KEY_PREFIX

      private static final String ENTITY_DATALIST_KEY_PREFIX
      See Also:
    • logger

      private static final org.apache.commons.logging.Log logger
    • isIgnoredAspect

      private static final Set<org.alfresco.service.namespace.QName> isIgnoredAspect
    • nodeService

      @Autowired private org.alfresco.service.cmr.repository.NodeService nodeService
    • mlNodeService

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

      @Autowired private EntityListDAO entityListDAO
    • entityDictionaryService

      @Autowired private EntityDictionaryService entityDictionaryService
    • formulationService

      @Autowired private FormulationService<FormulatedEntity> formulationService
    • alfrescoRepository

      @Autowired private AlfrescoRepository<RepositoryEntity> alfrescoRepository
    • repositoryEntityDefReader

      @Autowired private RepositoryEntityDefReader<RepositoryEntity> repositoryEntityDefReader
    • policyBehaviourFilter

      @Autowired private org.alfresco.repo.policy.BehaviourFilter policyBehaviourFilter
    • namespaceService

      @Autowired private org.alfresco.service.namespace.NamespaceService namespaceService
    • entityService

      @Autowired private EntityService entityService
    • ruleService

      @Autowired private org.alfresco.repo.rule.RuntimeRuleService ruleService
    • entityTplPlugins

      @Autowired private EntityTplPlugin[] entityTplPlugins
    • fileFolderService

      @Autowired private org.alfresco.service.cmr.model.FileFolderService fileFolderService
    • batchQueueService

      @Autowired private BatchQueueService batchQueueService
    • associationService

      @Autowired private AssociationService associationService
    • entityActivityService

      @Autowired private EntityActivityService entityActivityService
    • beCPGCacheService

      @Autowired private BeCPGCacheService beCPGCacheService
  • Constructor Details

    • EntityTplServiceImpl

      public EntityTplServiceImpl()
  • Method Details

    • ignoreAspect

      private boolean ignoreAspect(org.alfresco.service.namespace.QName aspect)
    • createEntityTpl

      public org.alfresco.service.cmr.repository.NodeRef createEntityTpl(org.alfresco.service.cmr.repository.NodeRef parentNodeRef, org.alfresco.service.namespace.QName entityType, String entityTplName, boolean enabled, boolean isDefault, Set<org.alfresco.service.namespace.QName> entityLists, Set<String> subFolders)

      createEntityTpl.

      Specified by:
      createEntityTpl in interface EntityTplService
      Parameters:
      parentNodeRef - a NodeRef object.
      entityType - a QName object.
      entityTplName - a String object.
      enabled - a boolean.
      isDefault - a boolean.
      entityLists - a Set object.
      subFolders - a Set object.
      Returns:
      a NodeRef object.
    • createWUsedList

      public org.alfresco.service.cmr.repository.NodeRef createWUsedList(org.alfresco.service.cmr.repository.NodeRef entityTplNodeRef, org.alfresco.service.namespace.QName typeQName, org.alfresco.service.namespace.QName assocQName)

      createWUsedList.

      Specified by:
      createWUsedList in interface EntityTplService
      Parameters:
      entityTplNodeRef - a NodeRef object.
      typeQName - a QName object.
      assocQName - a QName object.
      Returns:
      a NodeRef object.
    • createView

      public org.alfresco.service.cmr.repository.NodeRef createView(org.alfresco.service.cmr.repository.NodeRef entityTplNodeRef, org.alfresco.service.namespace.QName typeQName, String name)

      createView.

      Specified by:
      createView in interface EntityTplService
      Parameters:
      entityTplNodeRef - a NodeRef object.
      typeQName - a QName object.
      name - a String object.
      Returns:
      a NodeRef object.
    • getEntityTpl

      public org.alfresco.service.cmr.repository.NodeRef getEntityTpl(org.alfresco.service.namespace.QName nodeType)

      getEntityTpl.

      Specified by:
      getEntityTpl in interface EntityTplService
      Parameters:
      nodeType - a QName object.
      Returns:
      a NodeRef object.
    • synchronizeEntities

      public BatchInfo synchronizeEntities(org.alfresco.service.cmr.repository.NodeRef tplNodeRef)

      synchronizeEntities.

      Specified by:
      synchronizeEntities in interface EntityTplService
      Parameters:
      tplNodeRef - a NodeRef object.
      Returns:
      a BatchInfo object
    • createWorkProcessWorkProvider

      private org.alfresco.repo.batch.BatchProcessWorkProvider<org.alfresco.service.cmr.repository.NodeRef> createWorkProcessWorkProvider(org.alfresco.service.cmr.repository.NodeRef tplNodeRef, boolean includeTpl)
    • synchronizeTitle

      private void synchronizeTitle(RepositoryEntity entityTpl, RepositoryEntity entity)
    • findCompositeParent

      private RepositoryEntity findCompositeParent(RepositoryEntity parent, List<BeCPGDataObject> dataListItems)
    • formulateEntities

      public BatchInfo formulateEntities(org.alfresco.service.cmr.repository.NodeRef tplNodeRef)

      formulateEntities.

      Specified by:
      formulateEntities in interface EntityTplService
      Parameters:
      tplNodeRef - a NodeRef object.
      Returns:
      a BatchInfo object
    • synchronizeEntity

      public void synchronizeEntity(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, org.alfresco.service.cmr.repository.NodeRef entityTplNodeRef)

      synchronizeEntity.

      Specified by:
      synchronizeEntity in interface EntityTplService
      Parameters:
      entityNodeRef - a NodeRef object.
      entityTplNodeRef - a NodeRef object.
    • removeDataListOnEntities

      public void removeDataListOnEntities(org.alfresco.service.cmr.repository.NodeRef entityTplNodeRef, String entityListName)

      removeDataListOnEntities.

      Specified by:
      removeDataListOnEntities in interface EntityTplService
      Parameters:
      entityTplNodeRef - a NodeRef object.
      entityListName - a String object.
    • createOrUpdateList

      public org.alfresco.service.cmr.repository.NodeRef createOrUpdateList(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, org.alfresco.service.namespace.QName type)

      createOrUpdateList.

      Specified by:
      createOrUpdateList in interface EntityTplService
      Parameters:
      entityNodeRef - a NodeRef object.
      type - a QName object
      Returns:
      a NodeRef object.