org.jempbox.xmp
Class ResourceEvent
java.lang.Object
org.jempbox.xmp.ResourceEvent
- Elementable
public class ResourceEvent
extends java.lang.Object
This class represents a high level event that occured during the processing
of this resource.
- Ben Litchfield (ben@benlitchfield.com)
ResourceEvent(Element parentElement) - Create a resource reference based on a existing parent property set.
|
String | getAction() - Get the action that occured.
|
Element | getElement() - Get the underlying XML element.
|
String | getInstanceID() - Get the referenced resource's instance id.
|
String | getManager() - Get name of the asset management system that manages this resource.
|
String | getManagerTo() - URI identifying the managed resource.
|
String | getManagerUI() - URI to info about the managed resource.
|
String | getManagerVariant() - Get name of the variant of asset management system that manages this resource.
|
String | getParameters() - Get an additional description of the event.
|
String | getSoftwareAgent() - Get the software that performed this action.
|
Calendar | getWhen() - Get the date/time that this event occured.
|
void | setAction(String action) - Set the action that this event represents.
|
void | setInstanceID(String id) - Set the referenced resource's document instance id.
|
void | setMangager(String manager) - Set the name of the system that manages this resource.
|
void | setMangagerTo(String managerTo) - Set the URI to the managed resource.
|
void | setMangagerUI(String managerUI) - Set the URI to the info about the managed resource.
|
void | setMangagerVariant(String managerVariant) - Set the name of the variant of the system that manages this resource.
|
void | setParameters(String param) - Set some addition description to this event.
|
void | setSoftwareAgent(String software) - Set the software that performed this operation.
|
void | setWhen(Calendar when) - Set when the event occured.
|
ACTION_CONVERTED
public static final String ACTION_CONVERTED
A predefined action.
ACTION_COPIED
public static final String ACTION_COPIED
A predefined action.
ACTION_CREATED
public static final String ACTION_CREATED
A predefined action.
ACTION_CROPPED
public static final String ACTION_CROPPED
A predefined action.
ACTION_EDITED
public static final String ACTION_EDITED
A predefined action.
ACTION_FILTERED
public static final String ACTION_FILTERED
A predefined action.
ACTION_FORMATTED
public static final String ACTION_FORMATTED
A predefined action.
ACTION_MANAGED
public static final String ACTION_MANAGED
A predefined action.
ACTION_PRINTED
public static final String ACTION_PRINTED
A predefined action.
ACTION_PRODUCED
public static final String ACTION_PRODUCED
A predefined action.
ACTION_PUBLISHED
public static final String ACTION_PUBLISHED
A predefined action.
ACTION_RESIZED
public static final String ACTION_RESIZED
A predefined action.
ACTION_VERSION_UPDATED
public static final String ACTION_VERSION_UPDATED
A predefined action.
parent
protected Element parent
The DOM representation of this object.
ResourceEvent
public ResourceEvent(Element parentElement)
Create a resource reference based on a existing parent property set.
parentElement
- The parent element that will store the resource properties.
getAction
public String getAction()
Get the action that occured. See the ACTION_XXX constants.
- An action key, such as 'created' or 'printed'.
getElement
public Element getElement()
Get the underlying XML element.
- getElement in interface Elementable
- The XML element that this object represents.
getInstanceID
public String getInstanceID()
Get the referenced resource's instance id.
- The id of the reference document instance.
getManager
public String getManager()
Get name of the asset management system that manages this resource.
- The name of a asset management system.
getManagerTo
public String getManagerTo()
URI identifying the managed resource.
getManagerUI
public String getManagerUI()
URI to info about the managed resource.
- The URI to the resource info.
getManagerVariant
public String getManagerVariant()
Get name of the variant of asset management system that manages this resource.
- The name of a asset management system.
getParameters
public String getParameters()
Get an additional description of the event.
- Additional description of this event
getSoftwareAgent
public String getSoftwareAgent()
Get the software that performed this action.
- The software that performed the action.
getWhen
public Calendar getWhen()
throws IOException
Get the date/time that this event occured.
setAction
public void setAction(String action)
Set the action that this event represents. See the ACTION_XXX constants.
action
- The action that this event represents.
setInstanceID
public void setInstanceID(String id)
Set the referenced resource's document instance id.
id
- The id of the reference document instance.
setMangager
public void setMangager(String manager)
Set the name of the system that manages this resource.
manager
- The name of the management system.
setMangagerTo
public void setMangagerTo(String managerTo)
Set the URI to the managed resource.
managerTo
- The URI to the managed resource.
setMangagerUI
public void setMangagerUI(String managerUI)
Set the URI to the info about the managed resource.
managerUI
- The URI to the managed resource information.
setMangagerVariant
public void setMangagerVariant(String managerVariant)
Set the name of the variant of the system that manages this resource.
managerVariant
- The name of the management system.
setParameters
public void setParameters(String param)
Set some addition description to this event.
param
- The additional action parameters.
setSoftwareAgent
public void setSoftwareAgent(String software)
Set the software that performed this operation.
software
- The name of the software that performed this action.
setWhen
public void setWhen(Calendar when)
Set when the event occured.
when
- The date that the event occured.