Java Doc for ObjectContext.java in  » Web-Framework » roma-webwizard » org » romaframework » core » flow » 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 » Web Framework » roma webwizard » org.romaframework.core.flow 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.romaframework.core.flow.ObjectContext

ObjectContext
public class ObjectContext implements SessionListener(Code)
Manager of forms, user objects and their relationships. Track all changes in objects. It's used to update changed properties of objects after user's code execution.
author:
   Luca Garulli (luca.garulli@assetdata.it)



Constructor Summary
protected  ObjectContext()
    

Method Summary
public  voidclose(Object iUserObject)
    
public  voidcreateObjectFormAssociation(Object iUserObject, String iArea, ContentComponent iForm)
     Create an association between a User Object and a ContentForm.
public  booleanexistComponent(Class<? extends Object> iClass)
     Check if a component was configured in the IoC system.
public  booleanexistComponent(String iComponentName)
     Check if a component was configured in the IoC system.
public  DynaBeangetActionFeatures(Object iUserObject, String iAspectName, String iActionName)
     Return the features of the requested action.
public  DynaBeangetClassFeatures(Object iUserObject, String iAspectName)
     Return the features of the entity.
public  TgetComponent(Class<T> iClass)
     Get a component configured in the IoC system.
public  TgetComponent(String iName)
     Get a component configured in the IoC system.
public  TgetContextComponent(Class<T> iClass)
     Get the component from the current thread's context.
Parameters:
  iClass - Class of the component to get.
public  TgetContextComponent(String iComponent)
     Get the component from the current thread's context.
Parameters:
  iComponent - Component name to get.
public  DynaBeangetFieldFeatures(Object iUserObject, String iAspectName, String iFieldName)
     Return the features of the requested field.
public  ContentComponentgetFormByClass(Object iSession, Class iClassOfObject)
     Return the first form of the declaring Class iClassOfObject.
public  ContentComponentgetFormByObject(Object iUserObject)
     Return the form associated to a User Object.
public  ContentComponentgetFormByObject(Object iSession, Object iUserObject)
     Return the form associated to a User Object.
public  Map<SessionInfo, ContentComponent>getFormsByClass(Class iClass)
     Return all the forms for all the active session that render POJOs of class iClass.
public static  ObjectContextgetInstance()
     Get the singleton instance.
public  ObjectgetObject(String iEntityName)
     Get the instance of user class iEntityClassName.
public  ObjectgetObject(String iEntityName, Object iEntityInstance)
     Get the instance of user class iEntityClassName.
public  TgetObject(Class<T> iEntityClass)
     Get the instance of user class iNextClass.
public  TgetObject(Class<T> iEntityClass, Object iEntityInstance)
     Get the instance of user class iNextClass.
public  ObjectgetProperty(String iKey)
     Get a session context attribute value.
public  SchemaObjectgetSchemaObject(Object iUserObject)
     Get the schema object associated to the current POJO.
public  ScreengetScreen()
     Return the desktop for the current user.
public  ScreengetScreen(Object iUserSession)
     Return the screen for the user.
public  voidlogout()
    
public  voidonSessionCreating(SessionInfo iSession)
    
public  voidonSessionDestroying(SessionInfo iSession)
    
public  voidrefresh(SessionInfo iSession, ContentComponent iForm)
    
public  voidrefresh(Object iUserObject, String iPropertyName)
     Refresh a property feature and/or value.
public  voidrefresh(SessionInfo iUserSession, Object iUserObject, String iPropertyName)
     Refresh a property feature and/or value of iUserSession session.
public  voidremoveObjectFormAssociation(Object iUserObject)
    
public  booleansetActionFeature(Object iUserObject, String iAspectName, String iActionName, String iFeatureName, Object iFeatureValue)
    
public  booleansetClassFeature(Object iUserObject, String iAspectName, String iFeatureName, Object iFeatureValue)
    
public  voidsetContextComponent(Class<? extends Object> iClass, Object iValue)
     Set a component in the thread's context.
public  voidsetContextComponent(String iComponentName, Object iValue)
     Set a component in the thread's context.
public  booleansetFieldFeature(Object iUserObject, String iAspectName, String iFieldName, String iFeatureName, Object iFeatureValue)
    
public  voidsetProperty(String iKey, Object iValue)
     Set a session context attribute giving a name and a value.
public  voidsetScreen(Screen iScreen)
     Set the current screen.
public  voidshow(Object iContent)
     Display the form reading information from POJO received in the current desktop, in default position.
public  voidshow(Object iContent, String iPosition)
     Display the form reading information from POJO received following the layout rules.
public  voidshow(Object iContent, String iPosition, Screen iScreen, SessionInfo iSession)
    
public  voidshow(Object iContent, String iPosition, Screen iScreen, SessionInfo iSession, SchemaObject iSchema)
     Display the form reading information from POJO received following the layout rules.
public  voidshowComponent(Object iComponent, String iArea)
    
public  voidshutdown()
    
public  voidvalidate(Object iPOJO)
     Validate the POJO applying the validation rules found on it.


Constructor Detail
ObjectContext
protected ObjectContext()(Code)




Method Detail
close
public void close(Object iUserObject)(Code)



createObjectFormAssociation
public void createObjectFormAssociation(Object iUserObject, String iArea, ContentComponent iForm)(Code)
Create an association between a User Object and a ContentForm. This association is useful to gather custom form information.
Parameters:
  iUserObject -
Parameters:
  iArea -
Parameters:
  iForm -



existComponent
public boolean existComponent(Class<? extends Object> iClass)(Code)
Check if a component was configured in the IoC system.
Parameters:
  iClass - Interface of component implementation true if was configured, otherwise null



existComponent
public boolean existComponent(String iComponentName)(Code)
Check if a component was configured in the IoC system.
Parameters:
  iComponentName - Name of component to search true if was configured, otherwise null



getActionFeatures
public DynaBean getActionFeatures(Object iUserObject, String iAspectName, String iActionName) throws ConfigurationNotFoundException(Code)
Return the features of the requested action. The first time the features are requested, their are cloned by the original features. This allow to customize features at a User Object level without consuming memory if not necessary.
Parameters:
  iUserObject - User Object
Parameters:
  iActionName - The name of the action DynaBean instance



getClassFeatures
public DynaBean getClassFeatures(Object iUserObject, String iAspectName) throws ConfigurationNotFoundException(Code)
Return the features of the entity. The first time the features are requested, their are cloned by the original features. This allow to customize features at a User Object level without consuming memory if not necessary.
Parameters:
  iUserObject - User Object DynaBean instance



getComponent
public T getComponent(Class<T> iClass)(Code)
Get a component configured in the IoC system.
Parameters:
  iClass - Interface of component implementation the component if any or null if not found



getComponent
public T getComponent(String iName)(Code)
Get a component configured in the IoC system.
Parameters:
  iName - Component name the component if any or null if not found



getContextComponent
public T getContextComponent(Class<T> iClass)(Code)
Get the component from the current thread's context.
Parameters:
  iClass - Class of the component to get. Component if found, otherwise null



getContextComponent
public T getContextComponent(String iComponent)(Code)
Get the component from the current thread's context.
Parameters:
  iComponent - Component name to get. Component if found, otherwise null



getFieldFeatures
public DynaBean getFieldFeatures(Object iUserObject, String iAspectName, String iFieldName) throws ConfigurationNotFoundException(Code)
Return the features of the requested field.
Parameters:
  iUserObject - User Object
Parameters:
  iFieldName - The name of the field DynaBean instance



getFormByClass
public ContentComponent getFormByClass(Object iSession, Class iClassOfObject)(Code)
Return the first form of the declaring Class iClassOfObject.
Parameters:
  iSession - User session, null to get the current active
Parameters:
  iClassOfObject - The Class of the object ContentComponent instance if any, otherwise null



getFormByObject
public ContentComponent getFormByObject(Object iUserObject)(Code)
Return the form associated to a User Object.
Parameters:
  iUserObject - ContentComponent instance if any, otherwise null



getFormByObject
public ContentComponent getFormByObject(Object iSession, Object iUserObject)(Code)
Return the form associated to a User Object.
Parameters:
  iSession - User session, null to get the current active
Parameters:
  iUserObject - ContentComponent instance if any, otherwise null



getFormsByClass
public Map<SessionInfo, ContentComponent> getFormsByClass(Class iClass)(Code)
Return all the forms for all the active session that render POJOs of class iClass.
Parameters:
  iClass - Class to search Map with all entries that are handling POJOs of class iClass



getInstance
public static ObjectContext getInstance()(Code)
Get the singleton instance. The singleton instance.



getObject
public Object getObject(String iEntityName)(Code)
Get the instance of user class iEntityClassName. If the instance is in the user session's pool then recycle it, otherwise create a new one and insert in to the user session's pool.
Parameters:
  iEntityClassName - User Class name of requested object instance of class requested



getObject
public Object getObject(String iEntityName, Object iEntityInstance)(Code)
Get the instance of user class iEntityClassName. If the instance is in the user session's pool then recycle it, otherwise create a new one and insert in to the user session's pool.
Parameters:
  iEntityClassName - User Class name of requested object
Parameters:
  iEntityInstance - Entity instance to assign to the object requested if is instance of ComposedEntity instance of class requested



getObject
public T getObject(Class<T> iEntityClass)(Code)
Get the instance of user class iNextClass. If the instance is in the user session's pool then recycle it, otherwise create a new one and insert in to the user session's pool. Use this method instead of getObject(String) when you know class type at compile time to benefits of static checks and future refactoring.
See Also:   ObjectContext.getObject(String)
Parameters:
  iEntityClass - instance of class requested



getObject
public T getObject(Class<T> iEntityClass, Object iEntityInstance)(Code)
Get the instance of user class iNextClass. If the instance is in the user session's pool then recycle it, otherwise create a new one and insert in to the user session's pool. Use this method instead of getObject(String) when you know class type at compile time to benefits of static checks and future refactoring.
See Also:   ObjectContext.getObject(String)
Parameters:
  iEntityClass -
Parameters:
  iEntityInstance - Entity instance to assign to the object requested if is instance of ComposedEntity instance of class requested



getProperty
public Object getProperty(String iKey)(Code)
Get a session context attribute value.
Parameters:
  iKey - attribute name Attribute value



getSchemaObject
public SchemaObject getSchemaObject(Object iUserObject) throws ConfigurationNotFoundException(Code)
Get the schema object associated to the current POJO.
Parameters:
  iUserObject - User POJO SchemaObject instance
throws:
  ConfigurationNotFoundException -



getScreen
public Screen getScreen()(Code)
Return the desktop for the current user. Desktop instance



getScreen
public Screen getScreen(Object iUserSession)(Code)
Return the screen for the user.
Parameters:
  iUserSession - User session Desktop instance



logout
public void logout()(Code)



onSessionCreating
public void onSessionCreating(SessionInfo iSession)(Code)



onSessionDestroying
public void onSessionDestroying(SessionInfo iSession)(Code)



refresh
public void refresh(SessionInfo iSession, ContentComponent iForm)(Code)



refresh
public void refresh(Object iUserObject, String iPropertyName)(Code)
Refresh a property feature and/or value.
Parameters:
  iUserObject - The User Object of changed property
Parameters:
  iPropertyName - The property name



refresh
public void refresh(SessionInfo iUserSession, Object iUserObject, String iPropertyName)(Code)
Refresh a property feature and/or value of iUserSession session.
Parameters:
  iUserSession - The User Session
Parameters:
  iUserObject - The User Object of changed property
Parameters:
  iPropertyName - The property name



removeObjectFormAssociation
public void removeObjectFormAssociation(Object iUserObject)(Code)



setActionFeature
public boolean setActionFeature(Object iUserObject, String iAspectName, String iActionName, String iFeatureName, Object iFeatureValue) throws ConfigurationNotFoundException(Code)



setClassFeature
public boolean setClassFeature(Object iUserObject, String iAspectName, String iFeatureName, Object iFeatureValue) throws ConfigurationNotFoundException(Code)



setContextComponent
public void setContextComponent(Class<? extends Object> iClass, Object iValue)(Code)
Set a component in the thread's context.
Parameters:
  iClass - Class of the component to set.
Parameters:
  iValue - Component instance



setContextComponent
public void setContextComponent(String iComponentName, Object iValue)(Code)
Set a component in the thread's context.
Parameters:
  iComponentName - Component name to set.
Parameters:
  iValue - Component instance



setFieldFeature
public boolean setFieldFeature(Object iUserObject, String iAspectName, String iFieldName, String iFeatureName, Object iFeatureValue) throws ConfigurationNotFoundException(Code)



setProperty
public void setProperty(String iKey, Object iValue)(Code)
Set a session context attribute giving a name and a value.
Parameters:
  iKey - attribute name
Parameters:
  iValue - attribute value



setScreen
public void setScreen(Screen iScreen)(Code)
Set the current screen.
Parameters:
  iScreen -



show
public void show(Object iContent) throws ViewException(Code)
Display the form reading information from POJO received in the current desktop, in default position.
Parameters:
  iContent - Object instance to display



show
public void show(Object iContent, String iPosition) throws ViewException(Code)
Display the form reading information from POJO received following the layout rules. Display the object on iWhere position in the current desktop.
Parameters:
  iContent -
Parameters:
  iPosition -
throws:
  ViewException -



show
public void show(Object iContent, String iPosition, Screen iScreen, SessionInfo iSession) throws ViewException(Code)



show
public void show(Object iContent, String iPosition, Screen iScreen, SessionInfo iSession, SchemaObject iSchema) throws ViewException(Code)
Display the form reading information from POJO received following the layout rules. Display the object on iWhere position in the desktop received as the argument iDesktop.
Parameters:
  iContent - Object instance to display
Parameters:
  iPosition - Desktop position where render the object
Parameters:
  iScreen - Desktop instance to use
throws:
  Exception -



showComponent
public void showComponent(Object iComponent, String iArea)(Code)



shutdown
public void shutdown()(Code)



validate
public void validate(Object iPOJO)(Code)
Validate the POJO applying the validation rules found on it.
Parameters:
  iPOJO - The object to validate



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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