Package org.deckfour.xes.extension.std
Class XOrganizationalExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.deckfour.xes.extension.std.XOrganizationalExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XOrganizationalExtension extends XExtension
This extension adds the organizational perspective to event logs. It defines for events three attributes, referring to:- The resource which has executed the event
- The role of this resource
- The group of this resource
- Author:
- Christian W. Guenther (christian@deckfour.org)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static XAttributeLiteralATTR_GROUPGroup attribute prototype.static XAttributeLiteralATTR_RESOURCEResource attribute prototype.static XAttributeLiteralATTR_ROLERole attribute prototype.static java.net.URIEXTENSION_URIUnique URI of this extension.static java.lang.StringKEY_GROUPKey for the group attribute.static java.lang.StringKEY_RESOURCEKey for the resource attribute.static java.lang.StringKEY_ROLEKey for the role attribute.-
Fields inherited from class org.deckfour.xes.extension.XExtension
allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignGroup(XEvent event, java.lang.String group)Assigns the group attribute value for a given event.voidassignResource(XEvent event, java.lang.String resource)Assigns the resource attribute value for a given event.voidassignRole(XEvent event, java.lang.String role)Assigns the role attribute value for a given event.java.lang.StringextractGroup(XEvent event)Extracts the group attribute string from an event.java.lang.StringextractResource(XEvent event)Extracts the resource attribute string from an event.java.lang.StringextractRole(XEvent event)Extracts the role attribute string from an event.static XOrganizationalExtensioninstance()Provides access to the singleton instance.-
Methods inherited from class org.deckfour.xes.extension.XExtension
accept, equals, getDefinedAttributes, getEventAttributes, getLogAttributes, getMetaAttributes, getName, getPrefix, getTraceAttributes, getUri, hashCode, toString
-
-
-
-
Field Detail
-
EXTENSION_URI
public static final java.net.URI EXTENSION_URI
Unique URI of this extension.
-
KEY_RESOURCE
public static final java.lang.String KEY_RESOURCE
Key for the resource attribute.- See Also:
- Constant Field Values
-
KEY_ROLE
public static final java.lang.String KEY_ROLE
Key for the role attribute.- See Also:
- Constant Field Values
-
KEY_GROUP
public static final java.lang.String KEY_GROUP
Key for the group attribute.- See Also:
- Constant Field Values
-
ATTR_RESOURCE
public static XAttributeLiteral ATTR_RESOURCE
Resource attribute prototype.
-
ATTR_ROLE
public static XAttributeLiteral ATTR_ROLE
Role attribute prototype.
-
ATTR_GROUP
public static XAttributeLiteral ATTR_GROUP
Group attribute prototype.
-
-
Method Detail
-
instance
public static XOrganizationalExtension instance()
Provides access to the singleton instance.- Returns:
- Singleton extension.
-
extractResource
public java.lang.String extractResource(XEvent event)
Extracts the resource attribute string from an event.- Parameters:
event- Event to be queried.- Returns:
- Resource string for the given event (may be
nullif not defined)
-
assignResource
public void assignResource(XEvent event, java.lang.String resource)
Assigns the resource attribute value for a given event.- Parameters:
event- Event to be modified.resource- Resource string to be assigned.
-
extractRole
public java.lang.String extractRole(XEvent event)
Extracts the role attribute string from an event.- Parameters:
event- Event to be queried.- Returns:
- Role string for the given event (may be
nullif not defined)
-
assignRole
public void assignRole(XEvent event, java.lang.String role)
Assigns the role attribute value for a given event.- Parameters:
event- Event to be modified.resource- Role string to be assigned.
-
extractGroup
public java.lang.String extractGroup(XEvent event)
Extracts the group attribute string from an event.- Parameters:
event- Event to be queried.- Returns:
- Group string for the given event (may be
nullif not defined)
-
assignGroup
public void assignGroup(XEvent event, java.lang.String group)
Assigns the group attribute value for a given event.- Parameters:
event- Event to be modified.resource- Group string to be assigned.
-
-