Class ActivityPostServiceImpl

  • All Implemented Interfaces:
    ActivityPostService

    public class ActivityPostServiceImpl
    extends java.lang.Object
    implements ActivityPostService
    Activity Post Service Implementation
    Since:
    3.0
    Author:
    janv
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void postActivity​(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, java.lang.String activityData)
      Post a custom activity type
      void postActivity​(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, java.lang.String activityData, java.lang.String userId)
      Post a custom activity type
      void postActivity​(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, java.lang.String activityData, org.alfresco.sync.repo.Client client)
      Post a custom activity type
      void postActivity​(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, java.lang.String jsonActivityData, org.alfresco.sync.repo.Client client, FileInfo contentNodeInfo)
      Post a custom activity type
      void postActivity​(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, org.alfresco.service.cmr.repository.NodeRef nodeRef)
      Post a pre-defined activity type - certain activity data will be looked-up asynchronously, including: name (of nodeRef) displayPath typeQName firstName (of posting user) lastName (of posting user)
      void postActivity​(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String name)
      Post a pre-defined activity type - eg.
      void postActivity​(java.lang.String activityType, java.lang.String siteId, java.lang.String appTool, org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String name, org.alfresco.service.namespace.QName typeQName, org.alfresco.service.cmr.repository.NodeRef parentNodeRef)
      Post a pre-defined activity type - eg.
      void setEstimatedGridSize​(int estGridSize)  
      void setEventPublisher​(org.alfresco.sync.repo.events.EventPublisher eventPublisher)  
      void setIgnoredActivityTypes​(java.lang.String ignoredActivityTypes)  
      void setPostDAO​(ActivityPostDAO postDAO)  
      void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)  
      void setUserNamesAreCaseSensitive​(boolean userNamesAreCaseSensitive)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ActivityPostServiceImpl

        public ActivityPostServiceImpl()
    • Method Detail

      • setIgnoredActivityTypes

        public void setIgnoredActivityTypes​(java.lang.String ignoredActivityTypes)
      • setUserNamesAreCaseSensitive

        public void setUserNamesAreCaseSensitive​(boolean userNamesAreCaseSensitive)
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
      • setEstimatedGridSize

        public void setEstimatedGridSize​(int estGridSize)
      • setEventPublisher

        public void setEventPublisher​(org.alfresco.sync.repo.events.EventPublisher eventPublisher)
      • postActivity

        public void postActivity​(java.lang.String activityType,
                                 java.lang.String siteId,
                                 java.lang.String appTool,
                                 java.lang.String activityData)
        Description copied from interface: ActivityPostService
        Post a custom activity type
        Specified by:
        postActivity in interface ActivityPostService
        Parameters:
        activityType - - required
        siteId - - optional, if null will be stored as empty string
        appTool - - optional, if null will be stored as empty string
        activityData - - required
      • postActivity

        public void postActivity​(java.lang.String activityType,
                                 java.lang.String siteId,
                                 java.lang.String appTool,
                                 java.lang.String activityData,
                                 org.alfresco.sync.repo.Client client)
        Description copied from interface: ActivityPostService
        Post a custom activity type
        Specified by:
        postActivity in interface ActivityPostService
        Parameters:
        activityType - - required
        siteId - - optional, if null will be stored as empty string
        appTool - - optional, if null will be stored as empty string
        activityData - - required
      • postActivity

        public void postActivity​(java.lang.String activityType,
                                 java.lang.String siteId,
                                 java.lang.String appTool,
                                 java.lang.String jsonActivityData,
                                 org.alfresco.sync.repo.Client client,
                                 FileInfo contentNodeInfo)
        Description copied from interface: ActivityPostService
        Post a custom activity type
        Specified by:
        postActivity in interface ActivityPostService
        Parameters:
        activityType - - required
        siteId - - optional, if null will be stored as empty string
        appTool - - optional, if null will be stored as empty string
        jsonActivityData - - required
        contentNodeInfo - FileInfo
      • postActivity

        public void postActivity​(java.lang.String activityType,
                                 java.lang.String siteId,
                                 java.lang.String appTool,
                                 java.lang.String activityData,
                                 java.lang.String userId)
        Description copied from interface: ActivityPostService
        Post a custom activity type
        Specified by:
        postActivity in interface ActivityPostService
        Parameters:
        activityType - - required
        siteId - - optional, if null will be stored as empty string
        appTool - - optional, if null will be stored as empty string
        activityData - - required
        userId - - required
      • postActivity

        public void postActivity​(java.lang.String activityType,
                                 java.lang.String siteId,
                                 java.lang.String appTool,
                                 org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Description copied from interface: ActivityPostService
        Post a pre-defined activity type - certain activity data will be looked-up asynchronously, including: name (of nodeRef) displayPath typeQName firstName (of posting user) lastName (of posting user)
        Specified by:
        postActivity in interface ActivityPostService
        Parameters:
        activityType - - required
        siteId - - optional, if null will be stored as empty string
        appTool - - optional, if null will be stored as empty string
        nodeRef - - required - do not use for deleted (or about to be deleted) nodeRef
      • postActivity

        public void postActivity​(java.lang.String activityType,
                                 java.lang.String siteId,
                                 java.lang.String appTool,
                                 org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                 java.lang.String name)
        Description copied from interface: ActivityPostService
        Post a pre-defined activity type - eg. for checked-out nodeRef or renamed nodeRef
        Specified by:
        postActivity in interface ActivityPostService
        Parameters:
        activityType - - required
        siteId - - optional, if null will be stored as empty string
        appTool - - optional, if null will be stored as empty string
        nodeRef - - required - do not use deleted (or about to be deleted) nodeRef
        name - - optional - name of node (eg. prior to name change)
      • postActivity

        public void postActivity​(java.lang.String activityType,
                                 java.lang.String siteId,
                                 java.lang.String appTool,
                                 org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                 java.lang.String name,
                                 org.alfresco.service.namespace.QName typeQName,
                                 org.alfresco.service.cmr.repository.NodeRef parentNodeRef)
        Description copied from interface: ActivityPostService
        Post a pre-defined activity type - eg. for deleted nodeRef
        Specified by:
        postActivity in interface ActivityPostService
        Parameters:
        activityType - - required
        siteId - - optional, if null will be stored as empty string
        appTool - - optional, if null will be stored as empty string
        nodeRef - - required - can be a deleted (or about to be deleted) nodeRef
        name - - optional - name of name
        typeQName - - optional - type of node
        parentNodeRef - - required - used to lookup path/displayPath