public class ResourceEvent extends Object implements Elementable
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_CONVERTED
A predefined action.
|
static String |
ACTION_COPIED
A predefined action.
|
static String |
ACTION_CREATED
A predefined action.
|
static String |
ACTION_CROPPED
A predefined action.
|
static String |
ACTION_EDITED
A predefined action.
|
static String |
ACTION_FILTERED
A predefined action.
|
static String |
ACTION_FORMATTED
A predefined action.
|
static String |
ACTION_MANAGED
A predefined action.
|
static String |
ACTION_PRINTED
A predefined action.
|
static String |
ACTION_PRODUCED
A predefined action.
|
static String |
ACTION_PUBLISHED
A predefined action.
|
static String |
ACTION_RESIZED
A predefined action.
|
static String |
ACTION_VERSION_UPDATED
A predefined action.
|
static String |
NAMESPACE
Namespace for a resource event.
|
protected Element |
parent
The DOM representation of this object.
|
Constructor and Description |
---|
ResourceEvent(Element parentElement)
Create a resource reference based on a existing parent property set.
|
ResourceEvent(XMPSchema schema)
Create resource event based on schema.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String NAMESPACE
public static final String ACTION_CONVERTED
public static final String ACTION_COPIED
public static final String ACTION_CREATED
public static final String ACTION_CROPPED
public static final String ACTION_EDITED
public static final String ACTION_FILTERED
public static final String ACTION_FORMATTED
public static final String ACTION_VERSION_UPDATED
public static final String ACTION_PRINTED
public static final String ACTION_PUBLISHED
public static final String ACTION_MANAGED
public static final String ACTION_PRODUCED
public static final String ACTION_RESIZED
protected Element parent
public ResourceEvent(Element parentElement)
parentElement
- The parent element that will store the resource properties.public ResourceEvent(XMPSchema schema)
schema
- The schema that this event will be part of.public Element getElement()
getElement
in interface Elementable
public String getAction()
public void setAction(String action)
action
- The action that this event represents.public String getInstanceID()
public void setInstanceID(String id)
id
- The id of the reference document instance.public String getParameters()
public void setParameters(String param)
param
- The additional action parameters.public String getSoftwareAgent()
public void setSoftwareAgent(String software)
software
- The name of the software that performed this action.public Calendar getWhen() throws IOException
IOException
- If there is an error creating the date.public void setWhen(Calendar when)
when
- The date that the event occured.public String getManager()
public void setMangager(String manager)
manager
- The name of the management system.public String getManagerVariant()
public void setMangagerVariant(String managerVariant)
managerVariant
- The name of the management system.public String getManagerTo()
public void setMangagerTo(String managerTo)
managerTo
- The URI to the managed resource.public String getManagerUI()
public void setMangagerUI(String managerUI)
managerUI
- The URI to the managed resource information.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.