|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.xdb.event.XDBEvent
oracle.xdb.event.XDBRepositoryEvent
public class XDBRepositoryEvent
This class stores information about the repository event that is fired. An object of this type is constructed and passed to event handlers. Handlers can use this to obtain information about the triggering event and the resources involved.
Field Summary | |
---|---|
protected java.sql.Connection |
m_conn |
Method Summary | |
---|---|
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. |
Methods inherited from class oracle.xdb.event.XDBEvent |
---|
getCurrentUser, getEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.sql.Connection m_conn
Method Detail |
---|
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
|
Oracle® Database XML Java API Reference 11g Release 2 (11.2) E10769-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |