@StableMinor(version="12.5", sinceVersion="8.2") public class Activity extends Object implements Serializable
This entity must not be persisted or removed directly using EntityManager
. Use methods available in
IActivityStreamManager
instead.
ManagerFactory.getActivityStreamManager()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
SCOPE_OBJECT_ADMIN
Scope value that indicates this activity is relevant to the
activity's object
administrators. |
static String |
SCOPE_OBJECT_END_USER
Scope value that indicates this activity is relevant to the
activity's object end users. |
static String |
SCOPE_PORTAL_ADMIN
Scope value that indicates this activity is relevant to the portal administrators.
|
Constructor and Description |
---|
Activity() |
Modifier and Type | Method and Description |
---|---|
void |
addScope(String scope)
Adds a scope in this activity.
|
ActivityAction |
getAction()
Returns the action of this activity.
|
ActivityActor |
getActor()
Returns the actor of this activity.
|
long |
getCreatedDateTimeMillis()
Returns the date/time this activity was created.
|
String |
getCustomData()
Returns the custom data stored in this activity.
|
String |
getId()
Returns the identifier of this activity.
|
ActivityObject |
getObject()
Returns the direct object of this activity.
|
String |
getOriginServiceInstanceId()
Returns the identifier of the service instance origin of the activity.
|
Collection<String> |
getScopes()
Returns the scopes that indicates the population this activity is relevant for.
Scopes should be added with addScope(String) . |
ActivityObject |
getTarget()
Returns the target of this activity.
|
void |
setAction(ActivityAction action)
Sets the action of this activity.
|
void |
setActor(ActivityActor actor)
Sets the actor of this activity.
|
void |
setCustomData(String customData)
Sets the custom data of this activity.
|
void |
setObject(ActivityObject object)
Sets the direct object of this activity.
|
void |
setOriginServiceInstanceId(String originServiceInstanceId)
Sets the service instance origin of the activity.
|
void |
setTarget(ActivityObject target)
Sets the direct target of this activity.
|
public static final String SCOPE_OBJECT_END_USER
activity's object
end users.public static final String SCOPE_OBJECT_ADMIN
activity's object
administrators.public static final String SCOPE_PORTAL_ADMIN
public String getId()
public String getOriginServiceInstanceId()
public void setOriginServiceInstanceId(String originServiceInstanceId)
public long getCreatedDateTimeMillis()
public String getCustomData()
null
if it was not set.public void setCustomData(String customData)
customData
- the json object string code to store as custom data of
this activity.public ActivityObject getObject()
null
if it does
not have a direct object.public void setObject(ActivityObject object)
object
- the direct object.public ActivityActor getActor()
null
if it does not have an actor.public void setActor(ActivityActor actor)
actor
- the user identifier of the actor.public ActivityAction getAction()
null
if it does
not have an action.public void setAction(ActivityAction action)
action
- the action.public Collection<String> getScopes()
addScope(String)
.public void addScope(String scope)
scope
- the scope value. A scope value may only contain ASCII alphanumeric characters and underscore, and
cannot be null
or an empty string.getScopes()
,
SCOPE_OBJECT_END_USER
,
SCOPE_OBJECT_ADMIN
public ActivityObject getTarget()
null
if it does not have a target.public void setTarget(ActivityObject target)
object
- the direct object.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.