Java Doc for Event.java in  » 6.0-JDK-Modules » jsr-283 » javax » jcr » observation » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jsr 283 » javax.jcr.observation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.jcr.observation.Event

Event
public interface Event (Code)
An event fired by the observation mechanism.

An event may be a method event or a state-change event. If this is a method event then Event.getType will return the constant Event.METHOD_EVENT. If this is a state-change event then Event.getType will return one of the other int constants defined in this interface.

For each state-change event constant, the values returned by the methods Event.getPath , Event.getIdentifier are explained.

For method events further information about the particular method which caused the event can be acquired through Event.getMethod and Event.getMethodInfo .

The value returned by Event.getUserID is always the same as that returned by javax.jcr.Session.getUserID of the session that caused the event.



Field Summary
final public static  StringADD_NODE
    
final public static  StringADD_VERSION_LABEL
    
final public static  StringCANCEL_MERGE
    
final public static  StringCHANGE_MIXINS
    
final public static  StringCHECKIN
    
final public static  StringCHECKOUT
    
final public static  StringCOPY
    
final public static  StringCOPY_EXTERNAL
    
final public static  StringCREATE_ACTIVITY
    
final public static  StringCREATE_CONFIGURATION
    
final public static  StringDELETE_POLICY
    
final public static  StringDELETE_PRIVILEGES
    
final public static  StringDONE_MERGE
    
final public static  StringLOCK
    
final public static  StringMERGE
    
final public static  StringMERGE_ACTIVITY
    
final public static  intMETHOD_EVENT
     Indicates that this event is a method event.
final public static  intNODE_ADDED
     Generated on persist when a node is added.
final public static  intNODE_REMOVED
     Generated on persist when a node is removed.
final public static  StringORDER_BEFORE
    
final public static  StringPERSIST
    
final public static  intPROPERTY_ADDED
     Generated on persist when a property is added.
final public static  intPROPERTY_CHANGED
     Generated on persist when a property is changed.
final public static  intPROPERTY_REMOVED
     Generated on persist when a property is removed.
final public static  StringREGISTER_NODE_TYPE
    
final public static  StringREMOVE
    
final public static  StringREMOVE_HOLD
    
final public static  StringREMOVE_RETENTION_POLICY
    
final public static  StringREMOVE_VERSION
    
final public static  StringREMOVE_VERSION_LABEL
    
final public static  StringSESSION_IMPORT
    
final public static  StringSESSION_MOVE
    
final public static  StringSET_HOLD
    
final public static  StringSET_POLICY
    
final public static  StringSET_PRIMARY_TYPE
    
final public static  StringSET_PRIVILEGES
    
final public static  StringSET_PROPERTY
    
final public static  StringSET_RETENTION_POLICY
    
final public static  StringSTORE_AS_NODE
    
final public static  StringUNLOCK
    
final public static  StringUNREGISTER_NODE_TYPE
    
final public static  StringUPDATE
    
final public static  StringWORKSPACE_IMPORT
    
final public static  StringWORKSPACE_MOVE
    


Method Summary
public  StringgetIdentifier()
     Returns the identifier associated with this event or null if this event has no associated identifier.
public  StringgetMethod()
     If this is a method event, returns the string constant identify the method that caused this event.
public  MapgetMethodInfo()
     If this is a method event, returns a Map holding the parameters passed to the method that caused this event.
public  StringgetPath()
     Returns the absolute path associated with this event.
public  intgetType()
     Returns the type of this event: a constant defined by this interface.
public  StringgetUserData()
    
public  StringgetUserID()
     Returns the user ID connected with this event.

Field Detail
ADD_NODE
final public static String ADD_NODE(Code)



ADD_VERSION_LABEL
final public static String ADD_VERSION_LABEL(Code)



CANCEL_MERGE
final public static String CANCEL_MERGE(Code)



CHANGE_MIXINS
final public static String CHANGE_MIXINS(Code)



CHECKIN
final public static String CHECKIN(Code)



CHECKOUT
final public static String CHECKOUT(Code)



COPY
final public static String COPY(Code)



COPY_EXTERNAL
final public static String COPY_EXTERNAL(Code)



CREATE_ACTIVITY
final public static String CREATE_ACTIVITY(Code)



CREATE_CONFIGURATION
final public static String CREATE_CONFIGURATION(Code)



DELETE_POLICY
final public static String DELETE_POLICY(Code)



DELETE_PRIVILEGES
final public static String DELETE_PRIVILEGES(Code)



DONE_MERGE
final public static String DONE_MERGE(Code)



LOCK
final public static String LOCK(Code)



MERGE
final public static String MERGE(Code)



MERGE_ACTIVITY
final public static String MERGE_ACTIVITY(Code)



METHOD_EVENT
final public static int METHOD_EVENT(Code)
Indicates that this event is a method event.



NODE_ADDED
final public static int NODE_ADDED(Code)
Generated on persist when a node is added.



NODE_REMOVED
final public static int NODE_REMOVED(Code)
Generated on persist when a node is removed.



ORDER_BEFORE
final public static String ORDER_BEFORE(Code)



PERSIST
final public static String PERSIST(Code)



PROPERTY_ADDED
final public static int PROPERTY_ADDED(Code)
Generated on persist when a property is added.



PROPERTY_CHANGED
final public static int PROPERTY_CHANGED(Code)
Generated on persist when a property is changed.



PROPERTY_REMOVED
final public static int PROPERTY_REMOVED(Code)
Generated on persist when a property is removed.



REGISTER_NODE_TYPE
final public static String REGISTER_NODE_TYPE(Code)



REMOVE
final public static String REMOVE(Code)



REMOVE_HOLD
final public static String REMOVE_HOLD(Code)



REMOVE_RETENTION_POLICY
final public static String REMOVE_RETENTION_POLICY(Code)



REMOVE_VERSION
final public static String REMOVE_VERSION(Code)



REMOVE_VERSION_LABEL
final public static String REMOVE_VERSION_LABEL(Code)



SESSION_IMPORT
final public static String SESSION_IMPORT(Code)



SESSION_MOVE
final public static String SESSION_MOVE(Code)



SET_HOLD
final public static String SET_HOLD(Code)



SET_POLICY
final public static String SET_POLICY(Code)



SET_PRIMARY_TYPE
final public static String SET_PRIMARY_TYPE(Code)



SET_PRIVILEGES
final public static String SET_PRIVILEGES(Code)



SET_PROPERTY
final public static String SET_PROPERTY(Code)



SET_RETENTION_POLICY
final public static String SET_RETENTION_POLICY(Code)



STORE_AS_NODE
final public static String STORE_AS_NODE(Code)



UNLOCK
final public static String UNLOCK(Code)



UNREGISTER_NODE_TYPE
final public static String UNREGISTER_NODE_TYPE(Code)



UPDATE
final public static String UPDATE(Code)



WORKSPACE_IMPORT
final public static String WORKSPACE_IMPORT(Code)



WORKSPACE_MOVE
final public static String WORKSPACE_MOVE(Code)





Method Detail
getIdentifier
public String getIdentifier() throws RepositoryException(Code)
Returns the identifier associated with this event or null if this event has no associated identifier. The meaning of the associated identifier depends upon the type of the event. the identifier associated with this event or nullif this event has no associated identifier.
throws:
  RepositoryException - if an error occurs.
since:
   JCR 2.0



getMethod
public String getMethod() throws RepositoryException(Code)
If this is a method event, returns the string constant identify the method that caused this event. String
throws:
  RepositoryException -



getMethodInfo
public Map getMethodInfo() throws RepositoryException(Code)
If this is a method event, returns a Map holding the parameters passed to the method that caused this event. The parameters are held in the Map as name/value pairs where the name is the string used in this Javadoc to identify the parameter, and the value is the parameter passed. If the parameter is a primitive type then it is converted to its corresponding Java reference type (that is, an Object). Map
throws:
  RepositoryException -



getPath
public String getPath() throws RepositoryException(Code)
Returns the absolute path associated with this event. The meaning of the associated path depends upon the type of the event. the absolute path associated with this event.
throws:
  RepositoryException - if an error occurs.



getType
public int getType()(Code)
Returns the type of this event: a constant defined by this interface. One of:
  • NODE_ADDED
  • NODE_REMOVED
  • PROPERTY_ADDED
  • PROPERTY_REMOVED
  • PROPERTY_CHANGED
  • METHOD_EVENT
the type of this event.



getUserData
public String getUserData() throws RepositoryException(Code)
Returns the user data set in ObservationManager.setUserData String
throws:
  RepositoryException -



getUserID
public String getUserID() throws RepositoryException(Code)
Returns the user ID connected with this event. This is the string returned by javax.jcr.Session.getUserID of the session that caused the event. a String.
throws:
  RepositoryException - if an error occurs.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.