Java Doc for PageSet.java in  » Groupware » hipergate » com » knowgate » dataxslt » 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 » Groupware » hipergate » com.knowgate.dataxslt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   dom.DOMDocument
      com.knowgate.dataxslt.PageSet

PageSet
public class PageSet extends DOMDocument (Code)
PageSet DOMDocument
author:
   Sergio Montoro Ten
version:
   2.1


Field Summary
final public static  shortClassId
    

Constructor Summary
public  PageSet(String sMsiteURI)
     Create empty PageSet from a Microsite.
public  PageSet(String sMsiteURI, boolean bValidateXML)
    
public  PageSet(String sMsiteURI, String sPageSetURI)
     Create PageSet from a Microsite and load data from an XML file.
public  PageSet(String sMsiteURI, String sPageSetURI, boolean bValidateXML)
     Create PageSet from a Microsite and load data from an XML file.

Method Summary
public  StringaddBlock(String sFilePath, String sPageGUID, String sBlockXML)
    
public  Vectoraddresses()
    
public  PagebuildPageForEdit(String sPageGUID, String sBasePath, String sOutputPath, String sCtrlPath, String sMenuPath, String sIntegradorPath, String sSelPageOptions, Properties oEnvironmentProps, Properties oUserProps)
    
public  VectorbuildSite(String sBasePath, String sOutputPath, Properties oEnvironmentProps, Properties oUserProps)
    
public  voidbuildSiteForEdit(String sBasePath, String sOutputPath, String sCtrlPath, String sMenuPath, String sIntegradorPath, String sSelPageOptions, Properties oEnvironmentProps, Properties oUserProps)
    
public  Stringcatalog()
    
public  Stringcompany()
    
public static  StringgetMicrositeGUID(String sPageSetURI)
    

Get base Microsite GUID from a PageSet XML file.

GUID is obtained directly from raw text reading without parsing the input file.

public  Stringguid()
    
public  TransformerExceptionlastException()
    
public static  voidmain(String[] argv)
    
public static  voidmergeCompanyInfo(JDCConnection oConn, String sFilePath, String sCompanyGUID)
    

Merge Company addresses, catalog and other information into a PageSet XML file

Addresses are readed from k_addresses table and appended to the XML file after the <pages> node.

public  Micrositemicrosite()
    
public  Pagepage(String sPageId)
    
public  Vectorpages()
    
public static  voidremoveBlock(String sFilePath, String sPageGUID, String sBlockId)
    
public static  voidremovePage(String sFilePath, String sPageGUID)
    
public static  voidremovePageByTitle(String sFilePath, String sPageGUIDAttr)
    
public  voidsave(String sFilePath)
    

Field Detail
ClassId
final public static short ClassId(Code)




Constructor Detail
PageSet
public PageSet(String sMsiteURI) throws ClassNotFoundException, IllegalAccessException, FileNotFoundException, Exception(Code)
Create empty PageSet from a Microsite. XML validation is disabled.
Parameters:
  sMsiteURI - Microsite XML file URI
throws:
  ClassNotFoundException -
throws:
  IllegalAccessException -
throws:
  FileNotFoundException -



PageSet
public PageSet(String sMsiteURI, boolean bValidateXML) throws ClassNotFoundException, Exception, IllegalAccessException, FileNotFoundException(Code)
Create empty PageSet from a Microsite
Parameters:
  sMsiteURI - Microsite XML file URI(for example file:///opt/knowgate/storage/xslt/templates/Comtemporary.xml)
Parameters:
  bValidateXML - true if XML validation with W3C schemas is to be done,false is no validation is to be done.
throws:
  ClassNotFoundException -
throws:
  IllegalAccessException -
throws:
  FileNotFoundException -



PageSet
public PageSet(String sMsiteURI, String sPageSetURI) throws ClassNotFoundException, Exception, IllegalAccessException, FileNotFoundException(Code)
Create PageSet from a Microsite and load data from an XML file.
Parameters:
  sMsiteURI - Microsite XML file URI
Parameters:
  sPageSetURI - PageSet XML file URI(for example file:///opt/knowgate/storage/domains/1026/workareas/f7f055ca39854673b17518ec5f87de3b/apps/Mailwire/data/Newsletter01.xml)
throws:
  ClassNotFoundException -
throws:
  IllegalAccessException -



PageSet
public PageSet(String sMsiteURI, String sPageSetURI, boolean bValidateXML) throws ClassNotFoundException, Exception, IllegalAccessException, FileNotFoundException(Code)
Create PageSet from a Microsite and load data from an XML file.
Parameters:
  sMsiteURI - Microsite XML file URI
Parameters:
  sPageSetURI - PageSet XML file URI
Parameters:
  bValidateXML - true if XML validation with W3C schemas is to be done,false is no validation is to be done.
throws:
  ClassNotFoundException -
throws:
  IllegalAccessException -




Method Detail
addBlock
public String addBlock(String sFilePath, String sPageGUID, String sBlockXML) throws IllegalAccessException, IOException, ClassNotFoundException, NumberFormatException, UTFDataFormatException, Exception(Code)

Add block at the end of a Page


Parameters:
  sFilePath - Path to PageSet XML file
Parameters:
  sPageGUID - <Page> GUID attribute
Parameters:
  sBlockXML - XML of Block to be added New Block Id
throws:
  IllegalAccessException -
throws:
  IOException -
throws:
  ClassNotFoundException -
throws:
  NumberFormatException - If Identifier attribute is not an integer number.



addresses
public Vector addresses() throws DOMException(Code)
Get Addresses for this PageSet vector of Page objects
throws:
  DOMException - If node is not found



buildPageForEdit
public Page buildPageForEdit(String sPageGUID, String sBasePath, String sOutputPath, String sCtrlPath, String sMenuPath, String sIntegradorPath, String sSelPageOptions, Properties oEnvironmentProps, Properties oUserProps) throws IOException, DOMException, TransformerException, TransformerConfigurationException, MalformedURLException(Code)



buildSite
public Vector buildSite(String sBasePath, String sOutputPath, Properties oEnvironmentProps, Properties oUserProps) throws IOException, DOMException, TransformerException, TransformerConfigurationException(Code)

Generate XSL Transformation output for PageSet.


Parameters:
  sBasePath - Path to directory containing XSL stylesheets
Parameters:
  sOutputPath - Path to output directory where generated files shall be saved.
Parameters:
  oEnvironmentProps - Environment Properties
Parameters:
  oUserProps - User Properties
throws:
  IOException -
throws:
  TransformerException -
throws:
  TransformerConfigurationException -



buildSiteForEdit
public void buildSiteForEdit(String sBasePath, String sOutputPath, String sCtrlPath, String sMenuPath, String sIntegradorPath, String sSelPageOptions, Properties oEnvironmentProps, Properties oUserProps) throws IOException, DOMException, TransformerException, TransformerConfigurationException, MalformedURLException(Code)

Generate XSL Transformation output with editing layers for PageSet.


Parameters:
  sBasePath - Path to directory containing XSL stylesheets
Parameters:
  sOutputPath - Path to output directory where generated files shall be saved.
Parameters:
  sCtrlPath - Path to source code of the edition layer (tipically /includes/integrador_ctrl.inc file)
Parameters:
  sMenuPath - Path to dynamic page that generates the block list (tipically /webbuilder/wb_mnuintegrador.jsp)
Parameters:
  sIntegradorPath - Path to JavaScript functions of edition layer (tipically integrador.js)
Parameters:
  sSelPageOptions - If this is a single Page PageSet this parameter must be "",else it is a list of available pages in HTML format.
Parameters:
  oEnvironmentProps - Environment properties to be replaced at templated
Parameters:
  oUserProps - User Properties to be replaced at templated
throws:
  IOException -
throws:
  DOMException -
throws:
  TransformerException -
throws:
  TransformerConfigurationException -
throws:
  NullPointerException -



catalog
public String catalog() throws DOMException(Code)
GUID of Catalog associated to this PageSet Catalog GUID or null if <catalog> node does not exist.
throws:
  DOMException -



company
public String company() throws DOMException(Code)
GUID of Company associated to this PageSet Company GUID or null if <company> node does not exist.
throws:
  DOMException -



getMicrositeGUID
public static String getMicrositeGUID(String sPageSetURI) throws FileNotFoundException, IOException(Code)

Get base Microsite GUID from a PageSet XML file.

GUID is obtained directly from raw text reading without parsing the input file.
Parameters:
  sPageSetURI - Path to PageSet XML file Microsite GUID
throws:
  FileNotFoundException -
throws:
  IOException -




guid
public String guid()(Code)
Get PageSet <guid> value



lastException
public TransformerException lastException()(Code)
Last TransformerException raised by buildSite() or buildSiteForEdit()



main
public static void main(String[] argv) throws IllegalAccessException, ClassNotFoundException, Exception(Code)



mergeCompanyInfo
public static void mergeCompanyInfo(JDCConnection oConn, String sFilePath, String sCompanyGUID) throws SQLException, IOException(Code)

Merge Company addresses, catalog and other information into a PageSet XML file

Addresses are readed from k_addresses table and appended to the XML file after the <pages> node.
Parameters:
  oConn - JDBC database connection
Parameters:
  sFilePath - Complete path to the PageSet XML data file
Parameters:
  sCompanyGUID - GUID of Company which addresses are to be merged into the PageSet XML file
throws:
  SQLException -
throws:
  IOException -




microsite
public Microsite microsite()(Code)



page
public Page page(String sPageId) throws DOMException, NullPointerException(Code)
Get a Page from this PageSet
Parameters:
  sPageId - GUID of page to be retrieved Page object or null if no page with such GUID was found at XML file
throws:
  DOMException - If node is not found
throws:
  NullPointerException - If sPageId is null



pages
public Vector pages() throws DOMException(Code)
Get pages for this PageSet vector of Page objects
throws:
  DOMException - If node is not found



removeBlock
public static void removeBlock(String sFilePath, String sPageGUID, String sBlockId) throws IOException(Code)

Remove Block

Block is searched by an internal XPath expression:
pageset/pages/page[@guid='sPageGUID']/blocks/block[@id='sBlockId']
Parameters:
  sFilePath - Path to PageSet XML file
Parameters:
  sPageGUID - <Page> GUID attribute
Parameters:
  sBlockId - id attribute of Block to be removed
throws:
  IOException -



removePage
public static void removePage(String sFilePath, String sPageGUID) throws IOException(Code)

Remove Page from PageSet

Page is searched by an internal XPath expression:
pageset/pages/page[@guid='sPageGUID']
Parameters:
  sFilePath - Path to PageSet XML file
Parameters:
  sPageGUID - <Page> GUID attribute
throws:
  IOException -



removePageByTitle
public static void removePageByTitle(String sFilePath, String sPageGUIDAttr) throws IOException(Code)

Remove a Page searching it by title

Page is searched by an internal XPath expression:
pageset/pages/page[guid = 'sPageTitle']
Parameters:
  sFilePath - Path to PageSet XML file
Parameters:
  sPageGUIDAttr - Page GUID
throws:
  IOException -



save
public void save(String sFilePath) throws IOException(Code)



Methods inherited from dom.DOMDocument
public Vector filterChildsByName(Element oParent, String sChildsName)(Code)(Java Doc)
public String getAttribute(Node oNode, String sAttrName)(Code)(Java Doc)
public Document getDocument()(Code)(Java Doc)
public Element getFirstElement(Node oParent)(Code)(Java Doc)
public boolean getNamesSpaces()(Code)(Java Doc)
public Element getNextElement(Node oPreviousSibling)(Code)(Java Doc)
public Element getRootElement()(Code)(Java Doc)
public Node getRootNode()(Code)(Java Doc)
public String getTextValue(Element oElement)(Code)(Java Doc)
public boolean getValidation()(Code)(Java Doc)
public String getWriterEncoding()(Code)(Java Doc)
public void parseStream(InputStream oStrm) throws ClassNotFoundException, IllegalAccessException, UTFDataFormatException, InstantiationException, SAXNotSupportedException, SAXNotRecognizedException, Exception(Code)(Java Doc)
public void parseURI(String sURI, String sEncoding) throws ClassNotFoundException, UTFDataFormatException, IllegalAccessException, InstantiationException, FileNotFoundException, UnsupportedEncodingException, IOException, SAXNotSupportedException, SAXNotRecognizedException, Exception(Code)(Java Doc)
public void parseURI(String sURI) throws ClassNotFoundException, UTFDataFormatException, FileNotFoundException, IllegalAccessException, InstantiationException, IOException, Exception, SAXNotSupportedException, SAXNotRecognizedException(Code)(Java Doc)
public void print(OutputStream oOutStream) throws IOException, UnsupportedEncodingException(Code)(Java Doc)
public String print() throws IOException, UnsupportedEncodingException(Code)(Java Doc)
public Element seekChildByAttr(Node oParent, String sAttrName, String sAttrValue)(Code)(Java Doc)
public Element seekChildByName(Node oParent, String sName)(Code)(Java Doc)
public void setAttribute(Node oNode, String sAttrName, String sAttrValue)(Code)(Java Doc)
public void setNamesSpaces(boolean bNames)(Code)(Java Doc)
public void setValidation(boolean bValidate)(Code)(Java Doc)
protected Attr[] sortAttributes(NamedNodeMap attrs)(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.