@Entity public abstract class ActivityType extends Object implements Externalizable
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_FORMAT_PROPERTY_PREFIX
Property representing the original message value format.
|
static String |
RTGOV_PROPERTY_PREFIX
Property representing a RTGov header value.
|
| Constructor and Description |
|---|
ActivityType()
The default constructor.
|
ActivityType(ActivityType act)
The copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Context> |
getContext()
This method gets the context.
|
String |
getPrincipal()
This method gets the principal associated with
the activity event.
|
Map<String,String> |
getProperties()
This method gets the properties.
|
long |
getTimestamp()
This method gets the timestamp.
|
String |
getUnitId()
This method gets the activity unit id.
|
int |
getUnitIndex()
This method sets the index of the activity
type within the activity unit.
|
void |
readExternal(ObjectInput in) |
void |
setContext(Set<Context> context)
This method sets the context.
|
void |
setPrincipal(String principal)
This method sets the principal associated with
the activity event.
|
void |
setProperties(Map<String,String> props)
This method sets the properties.
|
void |
setTimestamp(long timestamp)
This method sets the timestamp.
|
void |
setUnitId(String id)
This method sets the activity unit id.
|
void |
setUnitIndex(int index)
This method sets the index of the activity
type within the activity unit.
|
void |
writeExternal(ObjectOutput out) |
public static final String HEADER_FORMAT_PROPERTY_PREFIX
public static final String RTGOV_PROPERTY_PREFIX
public ActivityType()
public ActivityType(ActivityType act)
act - The activity to copy.public void setUnitId(String id)
id - The activity unit idpublic String getUnitId()
public void setUnitIndex(int index)
index - The indexpublic int getUnitIndex()
public void setPrincipal(String principal)
principal - The principalpublic String getPrincipal()
public void setTimestamp(long timestamp)
timestamp - The timestamppublic long getTimestamp()
public void setContext(Set<Context> context)
context - The contextpublic void setProperties(Map<String,String> props)
props - The propertiespublic Map<String,String> getProperties()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.