Java Doc for State.java in  » Content-Management-System » harmonise » org » openharmonise » rm » publishing » 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 » Content Management System » harmonise » org.openharmonise.rm.publishing 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openharmonise.commons.xml.XMLDocument
      org.openharmonise.rm.publishing.State

State
public class State extends XMLDocument (Code)
This class provides an XML representation of a context with the process of publishing content within the Harmonise framework. Extending XMLDocument, it is generally a XML representation of the HTTP query string which the Harmonise servlet receives.
author:
   Michael Bell
version:
   $Revision: 1.2 $


Field Summary
final public static  StringATTRIB_STATE_ID
    
final protected static  StringPNAME_DEFAULT_PAGE
    
final public static  StringTAG_REFERER
    
final public static  StringTAG_STATE
    
protected  Userm_User
    
protected  Profilem_UserProf
    
protected  booleanm_bIsPopulated
    
protected  AbstractDataStoreInterfacem_dsi
    
protected  Filem_filecontent
    
protected  PublishFilterm_publishFilter
    
protected  Stringm_stringcontent
    

Constructor Summary
public  State(AbstractDataStoreInterface dbintrf)
     Constructs State object from a W3C Document.
public  State(AbstractDataStoreInterface dbintrf, User usr)
     Constructs State object from a W3C Document.
public  State(org.w3c.dom.Document document, AbstractDataStoreInterface dbintrf)
     Constructs State object from W3C Document.

Method Summary
public  voidaddFileContents(File fileContent)
     Adds the file as extra contents to this representation of the state.
protected  voidaddHttpParams(StringBuffer sUrl, StringBuffer sCurrentFragment, Element el)
     Adds HTTP parameters to a URL, recurses to grow the URL.
public  voidaddStringContents(String sContent)
     Adds sContent as extra content to this state.
public  StringencodeAsHttpParams()
     Returns a String that is this state converted to a list of HTTP params.
public  ElementfindElement(Element el)
    
public  ListfindElements(Element el)
     Finds elements in state which matches the given element.
public  intgetCurrentPageId()
     Returns the current Webpage id found in the state.
public  FilegetFile()
     Returns the File contents of this state.
public  MapgetHeaders()
     Returns the headers included in the HTTP request.
public  UsergetLoggedInUser()
     Finds and returns the logged-in User found from Session in the state.
public  ProfilegetLoggedInUserProfile()
     Finds logged in User from Session in the state and returns their Profile.
public  intgetPageId()
     Returns the page id from state.
public  PublishFiltergetPublishFilter()
     Returns the PublishFilter for this state.
public  StringgetRemoteAddress()
     Returns the remote address associated with the HTTP request.
public  SessiongetSession()
     Returns the session associated with this state.
public  StringgetSessionId()
     Returns the session id from state.
public  StringgetStringContent()
     Returns the String contents of this state.
public  voidpopulate(HttpRequestManager req_man)
     Populates this object from the given HttpRequestManager.
public  StringresolveRelativePath(String sClassName, String sPath)
     Resolves a relative path to an absolute one.
public  voidsetLoggedInUser(User usr)
     Adds a user to this state representation.
public  voidsetPublishFilter(PublishFilter filter)
     Sets the PublishFilter for this state.
public  voidsetSessionId(String sessionId)
     Sets the session id associated to this object.

Field Detail
ATTRIB_STATE_ID
final public static String ATTRIB_STATE_ID(Code)



PNAME_DEFAULT_PAGE
final protected static String PNAME_DEFAULT_PAGE(Code)



TAG_REFERER
final public static String TAG_REFERER(Code)



TAG_STATE
final public static String TAG_STATE(Code)



m_User
protected User m_User(Code)



m_UserProf
protected Profile m_UserProf(Code)



m_bIsPopulated
protected boolean m_bIsPopulated(Code)



m_dsi
protected AbstractDataStoreInterface m_dsi(Code)



m_filecontent
protected File m_filecontent(Code)



m_publishFilter
protected PublishFilter m_publishFilter(Code)



m_stringcontent
protected String m_stringcontent(Code)




Constructor Detail
State
public State(AbstractDataStoreInterface dbintrf) throws StateException(Code)
Constructs State object from a W3C Document.
Parameters:
  document - - The document to use



State
public State(AbstractDataStoreInterface dbintrf, User usr) throws StateException(Code)
Constructs State object from a W3C Document.
Parameters:
  document - - The document to use



State
public State(org.w3c.dom.Document document, AbstractDataStoreInterface dbintrf) throws StateException(Code)
Constructs State object from W3C Document.
Parameters:
  document - - The document to use




Method Detail
addFileContents
public void addFileContents(File fileContent)(Code)
Adds the file as extra contents to this representation of the state.
Parameters:
  fileContent -



addHttpParams
protected void addHttpParams(StringBuffer sUrl, StringBuffer sCurrentFragment, Element el)(Code)
Adds HTTP parameters to a URL, recurses to grow the URL.
Parameters:
  sUrl - The URL that is being built
Parameters:
  sCurrentFragment - The current context
Parameters:
  el - The Element to start at



addStringContents
public void addStringContents(String sContent)(Code)
Adds sContent as extra content to this state.
Parameters:
  stringContent -



encodeAsHttpParams
public String encodeAsHttpParams()(Code)
Returns a String that is this state converted to a list of HTTP params. The parameters



findElement
public Element findElement(Element el)(Code)
Finds element in state which matches the given element
Parameters:
  el - Element to match in state
Parameters:
  state - XML representation of state
exception:
  Exception - Matching Element found in state



findElements
public List findElements(Element el)(Code)
Finds elements in state which matches the given element.
Parameters:
  el - Element to match in state
Parameters:
  state - XML representation of state
exception:
  Exception - Matching Element found in state



getCurrentPageId
public int getCurrentPageId() throws Exception(Code)
Returns the current Webpage id found in the state.
Parameters:
  state - XML representation of the state
exception:
  Exception - Current Webpage id



getFile
public File getFile()(Code)
Returns the File contents of this state.



getHeaders
public Map getHeaders()(Code)
Returns the headers included in the HTTP request.



getLoggedInUser
public User getLoggedInUser()(Code)
Finds and returns the logged-in User found from Session in the state.
Parameters:
  state - XML representation of the state
exception:
  Exception - User found in the state



getLoggedInUserProfile
public Profile getLoggedInUserProfile()(Code)
Finds logged in User from Session in the state and returns their Profile.
Parameters:
  state - XML state representation
exception:
  Exception - Profile of current logged in user



getPageId
public int getPageId()(Code)
Returns the page id from state.



getPublishFilter
public PublishFilter getPublishFilter()(Code)
Returns the PublishFilter for this state.
See Also:   PublishFilter



getRemoteAddress
public String getRemoteAddress()(Code)
Returns the remote address associated with the HTTP request.



getSession
public Session getSession() throws DataAccessException(Code)
Returns the session associated with this state.
throws:
  DataAccessException -



getSessionId
public String getSessionId()(Code)
Returns the session id from state.



getStringContent
public String getStringContent()(Code)
Returns the String contents of this state.



populate
public void populate(HttpRequestManager req_man) throws StateException(Code)
Populates this object from the given HttpRequestManager.
Parameters:
  req_man -
throws:
  StateException -



resolveRelativePath
public String resolveRelativePath(String sClassName, String sPath) throws StateException(Code)
Resolves a relative path to an absolute one. Only copes with relative tokens at the beginning of a path.
Parameters:
  sClassName - The tag name for the class that the path is in the context of
Parameters:
  sPath - The path An absolute version of the path
throws:
  Exception -



setLoggedInUser
public void setLoggedInUser(User usr)(Code)
Adds a user to this state representation.
Parameters:
  usr -



setPublishFilter
public void setPublishFilter(PublishFilter filter)(Code)
Sets the PublishFilter for this state.
Parameters:
  filter -
See Also:   PublishFilter



setSessionId
public void setSessionId(String sessionId)(Code)
Sets the session id associated to this object.
Parameters:
  sessionId - the session id



Methods inherited from org.openharmonise.commons.xml.XMLDocument
public Node appendChild(Node arg0) throws DOMException(Code)(Java Doc)
public Node cloneNode(boolean arg0)(Code)(Java Doc)
public static boolean compareElement(Element origEl, Element compEl)(Code)(Java Doc)
public void copyChildren(Element parent_destination, Element parent_source)(Code)(Java Doc)
public void copyChildren(Element parent_destination, Element parent_source, Vector ignoreTags)(Code)(Java Doc)
public Node copyNode(Node originalEl)(Code)(Java Doc)
public Attr createAttribute(String arg0) throws DOMException(Code)(Java Doc)
public Attr createAttributeNS(String arg0, String arg1) throws DOMException(Code)(Java Doc)
public CDATASection createCDATASection(String arg0) throws DOMException(Code)(Java Doc)
public Comment createComment(String arg0)(Code)(Java Doc)
public DocumentFragment createDocumentFragment()(Code)(Java Doc)
public Element createElement(String arg0) throws DOMException(Code)(Java Doc)
public Element createElementNS(String arg0, String arg1) throws DOMException(Code)(Java Doc)
public EntityReference createEntityReference(String arg0) throws DOMException(Code)(Java Doc)
public ProcessingInstruction createProcessingInstruction(String arg0, String arg1) throws DOMException(Code)(Java Doc)
public Text createTextNode(String arg0)(Code)(Java Doc)
public static String elementInfo(Element element)(Code)(Java Doc)
public boolean equals(Object arg0)(Code)(Java Doc)
public static Element findElement(Element sourceEl, Element toFindEl)(Code)(Java Doc)
public NamedNodeMap getAttributes()(Code)(Java Doc)
public NodeList getChildNodes()(Code)(Java Doc)
public static String getChildTextNodeValue(Element xmlElement)(Code)(Java Doc)
public DocumentType getDoctype()(Code)(Java Doc)
public Element getDocumentElement()(Code)(Java Doc)
public Element getElementById(String arg0)(Code)(Java Doc)
public NodeList getElementsByTagName(String arg0)(Code)(Java Doc)
public NodeList getElementsByTagNameNS(String arg0, String arg1)(Code)(Java Doc)
public Node getFirstChild()(Code)(Java Doc)
public DOMImplementation getImplementation()(Code)(Java Doc)
public Node getLastChild()(Code)(Java Doc)
public String getLocalName()(Code)(Java Doc)
public String getNamespaceURI()(Code)(Java Doc)
public Node getNextSibling()(Code)(Java Doc)
public String getNodeName()(Code)(Java Doc)
public short getNodeType()(Code)(Java Doc)
public String getNodeValue() throws DOMException(Code)(Java Doc)
public Document getOwnerDocument()(Code)(Java Doc)
public Node getParentNode()(Code)(Java Doc)
public String getPrefix()(Code)(Java Doc)
public Node getPreviousSibling()(Code)(Java Doc)
public static org.w3c.dom.Document getXMLDocumentFromString(String sXML) throws SAXException, IOException, ParserConfigurationException, FactoryConfigurationError(Code)(Java Doc)
public boolean hasAttributes()(Code)(Java Doc)
public boolean hasChildNodes()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public Node importNode(Node arg0, boolean arg1) throws DOMException(Code)(Java Doc)
public Node insertBefore(Node arg0, Node arg1) throws DOMException(Code)(Java Doc)
public boolean isSupported(String arg0, String arg1)(Code)(Java Doc)
public void normalize()(Code)(Java Doc)
public static String printNode(Node node)(Code)(Java Doc)
public Node removeChild(Node arg0) throws DOMException(Code)(Java Doc)
public Node replaceChild(Node arg0, Node arg1) throws DOMException(Code)(Java Doc)
public void setNodeValue(String arg0) throws DOMException(Code)(Java Doc)
public void setPrefix(String arg0) throws DOMException(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.