|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.DocumentHandle
com.extentech.ExtenDOC.DocHandle
com.extentech.ExtenXLS.web.MemeDocument
com.extentech.ExtenXLS.web.MemeWorkBook
com.extentech.ExtenXLS.web.WebWorkBook
public class WebWorkBook
The WebWorkBook class provides additional functionality to the WorkBookHandle class to allow it to participate in a Service-Oriented-Architecture. The additional functionality of the WebWorkBook relates to version and access control using a hosted architecture to provide for the security and versioning repository.
WorkBook,
WorkBookHandle,
http://www.sheetster.com| Field Summary |
|---|
| Fields inherited from class com.extentech.ExtenXLS.web.MemeDocument |
|---|
ACCESS_STATUS_PRIVATE, ACCESS_STATUS_PUBLIC, ACCESS_STATUS_SHARED |
| Fields inherited from interface com.extentech.ExtenXLS.WorkBook |
|---|
ALLOWDUPES, CALCULATE_ALWAYS, CALCULATE_AUTO, CALCULATE_EXPLICIT, DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM, SHAREDUPES, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE |
| Constructor Summary | |
|---|---|
WebWorkBook()
|
|
WebWorkBook(Connection dbc,
byte[] in,
com.extentech.security.User user,
String description)
Create a new WebWorkbook from a workbook passed in. |
|
WebWorkBook(Connection dbcon,
File fx)
|
|
WebWorkBook(Connection cx,
int mix,
boolean storeAsFile,
boolean xmlStorage)
constructor with a meme_id |
|
WebWorkBook(Connection dbcon,
URL u)
|
|
WebWorkBook(InputStream urlx,
com.extentech.security.User user)
constructor that loads workbook from an InputStream |
|
WebWorkBook(int midi,
com.extentech.security.User user)
constructor retrieves workbook referenced by midi |
|
WebWorkBook(String path)
|
|
WebWorkBook(String finpath,
com.extentech.swingtools.ProgressDialog progdialog)
|
|
WebWorkBook(String fCurrent,
String fLatest,
String outputDir,
boolean bDEBUG)
constructor for file comparisons - testing purposes |
|
WebWorkBook(URL urlx,
com.extentech.security.User user)
Deprecated. - use FileStream constructor Move user handling to more logical spot... |
|
WebWorkBook(com.extentech.security.User user)
Create a new WebWorkBook with the passed in user. |
|
| Method Summary | |
|---|---|
WorkBook |
applyDiff(StringBuffer diff)
apply a single diff to a Document |
boolean |
commit()
commit changes from the existing workbook as compared to the stored version retrieve changes as diff and store |
static InputStream |
convertDocumentToInputStream(org.jdom.Document doc)
|
StringBuffer |
getDiff(org.jdom.Document oldDoc,
org.jdom.Document newDoc)
|
List |
getDiffs()
return an Iterator of diff history -- list[0] is the most current changes, applying list[0] to the current document brings it back 1 version. |
org.jdom.Document |
getLatestXML()
retrieve the lastest XML stream from the conurl URL and format into a Document object |
static String |
incrementVersionNumber(String origFName)
test utilty to increase the version number (-n.XML) for file comparisons |
void |
init()
|
static void |
printDocument(org.jdom.Document doc,
String fName)
Handle differences in number of nodes + attributes for the root element only (must handle by hand since DetailedDiff appears to have problems in root-level comparisons) |
DocumentHandle |
revertDiff()
revert current workbook to the most recent previous version |
| Methods inherited from class com.extentech.ExtenDOC.DocHandle |
|---|
getAllText, getFormatHandles, getPage, getParagraphs, getTextRangeHandles, getVersion, getXHTML, setFileName, setXHTML |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.extentech.toolkit.LogOutputter |
|---|
log, log, log |
| Constructor Detail |
|---|
public WebWorkBook(String fCurrent,
String fLatest,
String outputDir,
boolean bDEBUG)
fCurrent - original XML filenamefLatest - updated XML filenamepublic WebWorkBook(String path)
public WebWorkBook(Connection cx,
int mix,
boolean storeAsFile,
boolean xmlStorage)
public WebWorkBook(URL urlx,
com.extentech.security.User user)
public WebWorkBook(InputStream urlx,
com.extentech.security.User user)
public WebWorkBook(com.extentech.security.User user)
public WebWorkBook(int midi,
com.extentech.security.User user)
public WebWorkBook(Connection dbc,
byte[] in,
com.extentech.security.User user,
String description)
throws SQLException
bk - user -
SQLException
public WebWorkBook(String finpath,
com.extentech.swingtools.ProgressDialog progdialog)
public WebWorkBook()
public WebWorkBook(Connection dbcon,
File fx)
public WebWorkBook(Connection dbcon,
URL u)
| Method Detail |
|---|
public void init()
public boolean commit()
public List getDiffs()
public WorkBook applyDiff(StringBuffer diff)
diff - StringBuffer of diffs in specific diff format
public StringBuffer getDiff(org.jdom.Document oldDoc,
org.jdom.Document newDoc)
public org.jdom.Document getLatestXML()
public static String incrementVersionNumber(String origFName)
public static void printDocument(org.jdom.Document doc,
String fName)
oldDocRoot - newDocRoot - xpathRoot - removals - additions -
public static InputStream convertDocumentToInputStream(org.jdom.Document doc)
throws IOException
IOExceptionpublic DocumentHandle revertDiff()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||