|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.DocumentHandle
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, FILE_TYPE_NATIVE, FILE_TYPE_XLS, FILE_TYPE_XLSX, FILE_TYPE_XMLSS, MEME_TYPE, STORAGE_LOCATION_DB, STORAGE_LOCATION_FILESYSTEM, STORAGE_LOCATION_S3 |
| Fields inherited from class com.extentech.ExtenXLS.DocumentHandle |
|---|
FORMAT_NATIVE |
| Fields inherited from interface com.extentech.ExtenXLS.WorkBook |
|---|
ALLOWDUPES, CALC_MODE_PROP, CALCULATE_ALWAYS, CALCULATE_AUTO, CALCULATE_EXPLICIT, REFTRACK_PROP, SHAREDUPES, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE |
| Fields inherited from interface com.extentech.ExtenXLS.Document |
|---|
DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM |
| Constructor Summary | |
|---|---|
WebWorkBook()
|
|
WebWorkBook(byte[] b)
Constructor which creates a spreadsheet from XLS or XLSX bytes |
|
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 memeid,
int storeType,
int storeLocation)
Deprecated. storetype and storelocation are now handled within storage |
|
WebWorkBook(Connection dbcon,
URL u)
|
|
WebWorkBook(InputStream urlx,
com.extentech.security.User user)
constructor that s workbook from an InputStream |
|
WebWorkBook(int midi,
com.extentech.security.User user)
constructor retrieves workbook referenced by midi |
|
WebWorkBook(int memeId,
WorkBookHandle theBook)
Create a new MemeWorkBook from the workbook passed in and set to the meme ID |
|
WebWorkBook(String path)
Constructor that s a spreadsheet from a file 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. |
|
WebWorkBook(WorkBookHandle book)
|
|
| Method Summary | |
|---|---|
WorkBook |
applyDiff(StringBuffer diff)
apply a single diff to a Document |
boolean |
commit()
Deprecated. for now, this is not tested anywhere, and does not seem to function, returns false, handle storage/saving issues to reimplement (see 2 commented out storeNewDocument() and save() calls below) |
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)
|
DocumentHandle |
revertDiff()
revert current workbook to the most recent previous version |
| Methods inherited from class com.extentech.ExtenXLS.DocumentHandle |
|---|
getInstance, getVersion |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.extentech.ExtenXLS.WorkBook |
|---|
addProperty, addSheetFromWorkBook, addWorkSheet, calculateFormulas, copyChartToSheet, copyChartToSheet, copyWorkSheet, createWorkSheet, getBytes, getCell, getCells, getChart, getCharts, getFormats, getFormulaCalculationMode, getName, getNamedRange, getNamedRanges, getNoSheetWorkBook, getNumCells, getPivotTable, getPivotTables, getProperty, getWorkBook, getWorkSheet, getWorkSheet, getWorkSheets, removeAllWorkSheets, reset, setDebugLevel, setDefaultColWidth, setDefaultRowHeight, setDupeStringMode, setFormulaCalculationMode, setName, setProtected, setStringEncodingMode, toString, writeBytes |
| 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)
path -
public WebWorkBook(int memeId,
WorkBookHandle theBook)
theBook - public WebWorkBook(WorkBookHandle book)
public WebWorkBook(Connection cx,
int memeid,
int storeType,
int storeLocation)
Connection - database connectionmemeid - meme idstoreType - maps to STORAGE static ints, force to a specific save as type. native (0) will save as existing format
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)
public WebWorkBook(byte[] b)
xls - or xlsx file bytes| 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)
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 | |||||||||