public class XDBRepositoryEvent extends XDBEvent
POST_CHECKIN_EVENT, POST_CHECKOUT_EVENT, POST_CREATE_EVENT, POST_DELETE_EVENT, POST_INCONUPDATE_EVENT, POST_LINKIN_EVENT, POST_LINKTO_EVENT, POST_LOCK_EVENT, POST_OPEN_EVENT, POST_UNCHECKOUT_EVENT, POST_UNLINKFROM_EVENT, POST_UNLINKIN_EVENT, POST_UNLOCK_EVENT, POST_UPDATE_EVENT, POST_VERSIONCONTROL_EVENT, PRE_CHECKIN_EVENT, PRE_CHECKOUT_EVENT, PRE_CREATE_EVENT, PRE_DELETE_EVENT, PRE_INCONUPDATE_EVENT, PRE_LINKIN_EVENT, PRE_LINKTO_EVENT, PRE_LOCK_EVENT, PRE_OPEN_EVENT, PRE_UNCHECKOUT_EVENT, PRE_UNLINKFROM_EVENT, PRE_UNLINKIN_EVENT, PRE_UNLOCK_EVENT, PRE_UPDATE_EVENT, PRE_VERSIONCONTROL_EVENT, RENDER_EVENT
Modifier and Type | Method and Description |
---|---|
XMLType |
getApplicationData()
Returns the <applicationData> element extracted from the resource configuration that defines the invoking handler.
|
XDBHandlerList |
getHandlerList()
Returns an
XDBHandlerList object that contains the list of handlers that will be executed after the current handler. |
java.lang.String |
getInterface()
Returns the top-level interface used to initiate the operation that triggered the event.
|
XDBLink |
getLink()
Returns an
XDBLink object for the target resource. |
oracle.xdb.spi.XDBResource |
getOldResource()
Returns the original
XDBResource object before the operation was executed. |
XDBOutputStream |
getOutputStream()
Returns the output stream where the handler can write the rendered data.
|
java.lang.String |
getParameter(java.lang.String key)
Returns the value of a request or session-specific parameter.
|
oracle.xdb.spi.XDBResource |
getParent()
Returns the
XDBResource object corresponding to a parent folder of the target resource. |
XDBPath |
getPath()
Returns the
XDBPath object that represents the path of the resource for which the event was fired . |
oracle.xdb.spi.XDBResource |
getResource()
Returns an
XDBResource object that provides methods to access and modify the contents and metadata of the target resource. |
javax.servlet.http.HttpServletRequest |
getServletRequest()
Returns the servlet request object that corresponds to the HTTP request if the current interface is HTTP; otherwise, an error is returned.
|
void |
setRenderPath(java.lang.String path)
Specifies the path of the resource that contains the rendered contents.
|
void |
setRenderStream(java.io.InputStream istr)
Sets the stream where the rendered contents can be read.
|
getCurrentUser, getEvent
public java.lang.String getInterface()
public javax.servlet.http.HttpServletRequest getServletRequest()
public XMLType getApplicationData()
public XDBPath getPath()
XDBPath
object that represents the path of the resource for which the event was fired . Using this object, you can obtain the path segments.public oracle.xdb.spi.XDBResource getResource()
XDBResource
object that provides methods to access and modify the contents and metadata of the target resource. This object reflects any changes made by previous handlers to the resource. Note that the modifier methods will work only in pre-create and pre-update event handlers. For a link* or unlink* event, this method returns the resource to which the link points. For a create event, this method returns the resource that is being created.public oracle.xdb.spi.XDBResource getParent()
XDBResource
object corresponding to a parent folder of the target resource. Note that this could be any folder that contains a link to the target resource. This is a read-only object. This means that none of the modifier methods will work on this object. For a link* or unlink* event, this method returns the link's parent folder.public XDBHandlerList getHandlerList()
XDBHandlerList
object that contains the list of handlers that will be executed after the current handler. The current handler can then filter out some of the subsequent handlers if necessary, subject to security checks. An insufficient privilege exception is thrown if the executing user does not have the required access privilege to any resource configuration associated with a handler in the list.public XDBLink getLink()
XDBLink
object for the target resource. For a link or unlink event, this will be the link involved in the operation. For other events, an error is returned. Using this object the handler can access link properties such as ParentName, ParentOID, ChildOID and LinkName.public java.lang.String getParameter(java.lang.String key)
public oracle.xdb.spi.XDBResource getOldResource()
XDBResource
object before the operation was executed. This method applies only to Update event. For other events, an error is returned. This is a read-only object. This means that none of the modifier methods will work on this object.XDBResource
public XDBOutputStream getOutputStream()
public void setRenderStream(java.io.InputStream istr) throws java.sql.SQLException
getOutputStream()
is written or after setRenderPath()
is called; doing so will result in an error. This is only valid for the Render event.istr
- - The input streamjava.sql.SQLException
public void setRenderPath(java.lang.String path)
getOutputStream()
is written or after setRenderStream()
is called; doing so will result in an error. This is only valid for the Render event.path
- - The path of the resource to read data