public final class Activity extends BaseScopableProcessorExtension
Constructor and Description |
---|
Activity() |
Modifier and Type | Method and Description |
---|---|
org.mozilla.javascript.Scriptable |
getFeedControls()
For current user, get feed controls
|
void |
postActivity(String activityType,
String siteId,
String appTool,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Post a pre-defined activity type - activity data will be looked-up asynchronously, including:
name
displayPath
typeQName
firstName (of posting user)
lastName (of posting user)
|
void |
postActivity(String activityType,
String siteId,
String appTool,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
String beforeName)
Post a pre-defined activity type - eg.
|
void |
postActivity(String activityType,
String siteId,
String appTool,
org.alfresco.service.cmr.repository.NodeRef nodeRef,
String name,
org.alfresco.service.namespace.QName typeQName,
org.alfresco.service.cmr.repository.NodeRef parentNodeRef)
Post a pre-defined activity type - eg.
|
void |
postActivity(String activityType,
String siteId,
String appTool,
String jsonActivityData)
Post a custom activity type
|
void |
setActivityService(ActivityService activityService)
Set the activity service
|
void |
setFeedControl(String siteId,
String appToolId)
For current user, set feed control (opt-out) for a site or an appTool or a site/appTool combination
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
Set the tenant service
|
void |
unsetFeedControl(String siteId,
String appToolId)
For current user, unset feed control
|
getScope, setScope
getExtensionName, register, setExtensionName, setProcessor
public void setActivityService(ActivityService activityService)
activityService
- the activity servicepublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
tenantService
- the tenant servicepublic void postActivity(String activityType, String siteId, String appTool, String jsonActivityData)
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringjsonActivityData
- - requiredpublic void postActivity(String activityType, String siteId, String appTool, org.alfresco.service.cmr.repository.NodeRef nodeRef)
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringnodeRef
- - required - do not use for deleted (or about to be deleted) nodeRefpublic void postActivity(String activityType, String siteId, String appTool, org.alfresco.service.cmr.repository.NodeRef nodeRef, String beforeName)
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringnodeRef
- - required - do not use deleted (or about to be deleted) nodeRefbeforeName
- - optional - name of node (eg. prior to name change)public void postActivity(String activityType, String siteId, String appTool, org.alfresco.service.cmr.repository.NodeRef nodeRef, String name, org.alfresco.service.namespace.QName typeQName, org.alfresco.service.cmr.repository.NodeRef parentNodeRef)
activityType
- - requiredsiteId
- - optional, if null will be stored as empty stringappTool
- - optional, if null will be stored as empty stringnodeRef
- - required - can be a deleted (or about to be deleted) nodeRefname
- - optional - name of nametypeQName
- - optional - type of nodeparentNodeRef
- - required - used to lookup path/displayPathpublic org.mozilla.javascript.Scriptable getFeedControls()
public void setFeedControl(String siteId, String appToolId)
siteId
- - required (optional, if appToolId is supplied)appToolId
- - required (optional, if siteId is supplied)Copyright © 2005–2017 Alfresco Software. All rights reserved.