|
||||||||||
| 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
public class MemeDocument
This class provides Saving and Reconstituting Documents as memes in the Extentech KB schema.
| Field Summary | |
|---|---|
static int |
ACCESS_STATUS_PRIVATE
|
static int |
ACCESS_STATUS_PUBLIC
|
static int |
ACCESS_STATUS_SHARED
|
| Fields inherited from interface com.extentech.ExtenXLS.Document |
|---|
ALLOWDUPES, DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM, SHAREDUPES, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE |
| Constructor Summary | |
|---|---|
MemeDocument()
constructor inits meme database connection |
|
MemeDocument(Connection dbc,
byte[] bb)
constructor inits meme database connection |
|
MemeDocument(Connection connection2,
byte[] bytes,
com.extentech.security.User u,
String nm)
May 16, 2010 |
|
MemeDocument(Connection dbc,
File input)
constructor inits meme database connection |
|
MemeDocument(Connection cx,
int memeid,
boolean storeAsFile,
boolean xmlStore)
retrieves XML bytes for database record ID and converts to XLS WorkBook |
|
MemeDocument(InputStream urlx)
|
|
MemeDocument(int memeid)
retrieves XML bytes for database record ID and converts to XLS WorkBook |
|
MemeDocument(String path)
|
|
MemeDocument(String finpath,
com.extentech.swingtools.ProgressDialog progdialog)
|
|
MemeDocument(URL urlx)
Deprecated. - use FileStream constructor |
|
| Method Summary | |
|---|---|
void |
addUser(com.extentech.security.User usr)
add a concurrent user to the book |
void |
appendOutputDir(String p)
append to the existing outputDir, if any |
boolean |
bindData(Map values)
Fetch and Merge Live Data: Returns a modified workbook |
void |
createPage(String nm,
int position)
May 16, 2010 |
void |
deleteBook(WorkBook book,
int memeid)
Deletes the meme record |
void |
deleteDoc(MemeDocument wbh,
int parseInt)
May 16, 2010 |
ArrayList |
getAllDiffs(int memeid)
retrieves ordered list of all differences for this meme_id |
WorkBook |
getBook(int memeid)
retrieves XML bytes for database record ID and converts to XLS WorkBook |
Map |
getConcurrentUsers()
|
Connection |
getConnection()
|
String |
getCryptPass()
|
ExtenXLSReportFactory |
getDataFactory()
|
String |
getDatamapping()
|
String |
getDefaultFileString(int memeid)
Gets the correct path to save to. |
String |
getDescription()
|
String |
getFileName()
Get the filename for this document for saveasfile setting. |
String |
getLatestDiff(int memeid)
retrieves most current String difference for database record ID |
int |
getMemeId()
|
int |
getMemeType()
|
com.extentech.comm.MessageManager |
getMessageManager()
|
int |
getNumPages()
May 16, 2010 |
String |
getOutputDir()
retrieve the webdir for this WebWorkBook |
int |
getOwnerId()
|
com.extentech.ExtenDOC.PageHandle[] |
getPages()
May 16, 2010 |
List |
getRESTEmit()
|
List |
getRESTlog()
|
String |
getServerURL()
|
javax.servlet.http.HttpSession |
getSession()
Get the session associated with this WWB |
int |
getSharingAccess()
|
File |
getTempfile()
|
InputStream |
getXMLStream(int memeid)
retrieves XML bytes for database record ID |
boolean |
isPublic()
get whether this is a public document |
boolean |
isSaved()
get if the workbook has ever been saved, or if it should be deleted on session end |
void |
loadDataDefinition()
Load the data definition: loads RDF (report definition format) Records from database and initializes the ReportFactory |
void |
loadDataDefinition(WebWorkBook book,
int rdfmeme)
Load the data definition: loads RDF (report definition format) Records from database and initializes the ReportFactory |
void |
log(String msg)
output the string to the log |
void |
log(String msg,
Exception e)
output the string to the log |
void |
log(String msg,
Exception e,
boolean b)
Output an exception to the log, print stack trace optional |
static void |
main(String[] args)
|
DocumentHandle |
revert()
retrieve the latest from the db and replaces current workbook |
void |
save(int memeid)
Saves the existing book record to the database and the book itself to the correct location Book can |
void |
setConnection(Connection _connection)
|
void |
setCryptPass(String _cryptPass)
|
void |
setDataFactory(ExtenXLSReportFactory d)
|
void |
setDatamapping(String d)
|
void |
setDescription(String _description)
|
void |
setMemeId(int _memeId)
|
void |
setMemeType(int _memeType)
|
void |
setMessageManager(com.extentech.comm.ChatMessageManager ms)
|
void |
setOutputDir(String od)
|
void |
setOwnerId(int _ownerId)
|
void |
setRESTlog(List r)
|
void |
setSaved(boolean s)
Set if the workbook has ever been saved, or if it should be deleted on session end |
void |
setServerURL(String serverURL)
|
void |
setSession(javax.servlet.http.HttpSession s)
Set the session associated with this WWB |
void |
setSharingAccess(int access)
|
void |
setStoreAsXML(boolean s)
|
void |
setStoreBookAsFile(boolean s)
|
void |
setTempfile(File tempfile)
|
boolean |
storeAsXML()
|
boolean |
storeBookAsFile()
|
int |
storeDiff(int meme_id,
StringBuffer diff)
Saves the difference (in string format) between two versions of a workbook |
int |
storeNewDocument()
Saves the Workbook as a new record in the database. |
StringBuffer |
writeBytes(OutputStream out)
|
| Methods inherited from class com.extentech.ExtenDOC.DocHandle |
|---|
addProperty, close, finalize, getAllText, getBytes, getChart, getCharts, getFactory, getFormatHandles, getFormats, getName, getPage, getParagraphs, getProperties, getProperty, getTextRangeHandles, getVersion, getWorkingDirectory, getXHTML, reset, searchAndReplace, setDebugLevel, setDupeStringMode, setFileName, setName, setProperties, setProtected, setStringEncodingMode, setXHTML, toString, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ACCESS_STATUS_PRIVATE
public static final int ACCESS_STATUS_PUBLIC
public static final int ACCESS_STATUS_SHARED
| Constructor Detail |
|---|
public MemeDocument()
public MemeDocument(int memeid)
ID - int ID of database record
SQLException
public MemeDocument(Connection dbc,
byte[] bb)
public MemeDocument(Connection dbc,
File input)
public MemeDocument(URL urlx)
public MemeDocument(String finpath,
com.extentech.swingtools.ProgressDialog progdialog)
public MemeDocument(Connection cx,
int memeid,
boolean storeAsFile,
boolean xmlStore)
ID - int ID of database recordConnection - database connection
SQLExceptionpublic MemeDocument(String path)
public MemeDocument(InputStream urlx)
public MemeDocument(Connection connection2,
byte[] bytes,
com.extentech.security.User u,
String nm)
connection2 - bytes - u - nm - | Method Detail |
|---|
public String getOutputDir()
public void appendOutputDir(String p)
p - public void addUser(com.extentech.security.User usr)
usr -
public int storeNewDocument()
throws SQLException
connection - database connection
SQLExceptionpublic String getFileName()
getFileName in class com.extentech.ExtenDOC.DocHandle
public InputStream getXMLStream(int memeid)
throws SQLException
ID - int ID of database recordConnection - database connection
SQLException
public String getDefaultFileString(int memeid)
throws SQLException
ID - int ID of database record
SQLException
public WorkBook getBook(int memeid)
throws SQLException
ID - int ID of database record
SQLException
public void save(int memeid)
throws Exception
memeid - int ID of this meme database record
SQLException
Exceptionpublic StringBuffer writeBytes(OutputStream out)
writeBytes in interface DocumentwriteBytes in class com.extentech.ExtenDOC.DocHandleDocument.writeBytes(java.io.OutputStream)
public void deleteBook(WorkBook book,
int memeid)
throws SQLException
book - WorkBookHandlememeid - int ID of this meme database record
SQLExceptionpublic static void main(String[] args)
public int storeDiff(int meme_id,
StringBuffer diff)
throws SQLException
diff - StringBuffer String format of the differences between the XML
of workbook versionsconnection - database connection
SQLExceptionWebWorkBook.java
public String getLatestDiff(int memeid)
throws SQLException
ID - int ID of database recordConnection - database connection
SQLException
public ArrayList getAllDiffs(int memeid)
throws SQLException
memeid -
SQLExceptionpublic boolean isPublic()
public void loadDataDefinition(WebWorkBook book,
int rdfmeme)
throws Exception
rdfmeme -
Exceptionpublic void loadDataDefinition()
rdfmeme -
public boolean bindData(Map values)
throws Exception
values -
Exceptionpublic Connection getConnection()
public void setConnection(Connection _connection)
connection - The connection to set.public int getMemeType()
public void setMemeType(int _memeType)
memeType - The memeType to set.public int getOwnerId()
public void setOwnerId(int _ownerId)
ownerId - The ownerId to set.public String getDescription()
public void setDescription(String _description)
description - The description to set.public Map getConcurrentUsers()
public void log(String msg,
Exception e)
com.extentech.toolkit.LogOutputter
log in interface com.extentech.toolkit.LogOutputterpublic void log(String msg)
com.extentech.toolkit.LogOutputter
log in interface com.extentech.toolkit.LogOutputter
public void log(String msg,
Exception e,
boolean b)
com.extentech.toolkit.LogOutputter
log in interface com.extentech.toolkit.LogOutputterpublic String getCryptPass()
public void setCryptPass(String _cryptPass)
public int getMemeId()
public void setMemeId(int _memeId)
memeId - The memeId to set.public List getRESTEmit()
public String getDatamapping()
public void setDatamapping(String d)
datamapping - The datamapping to set.public ExtenXLSReportFactory getDataFactory()
public void setDataFactory(ExtenXLSReportFactory d)
dataFactory - The dataFactory to set.public void setStoreBookAsFile(boolean s)
storeBookAsFile - whether to store the book as a filepublic boolean isSaved()
public void setSaved(boolean s)
isSaved - public javax.servlet.http.HttpSession getSession()
public void setSession(javax.servlet.http.HttpSession s)
public boolean storeAsXML()
public DocumentHandle revert()
public void setStoreAsXML(boolean s)
public boolean storeBookAsFile()
public int getSharingAccess()
public void setSharingAccess(int access)
public com.extentech.comm.MessageManager getMessageManager()
public void setMessageManager(com.extentech.comm.ChatMessageManager ms)
public String getServerURL()
public void setServerURL(String serverURL)
public List getRESTlog()
public void setRESTlog(List r)
restlog - The restlog to set.public File getTempfile()
public void setTempfile(File tempfile)
tempfile - The tempfile to set.public void setOutputDir(String od)
outputDir - The outputDir to set.
public void deleteDoc(MemeDocument wbh,
int parseInt)
wbh - parseInt -
public void createPage(String nm,
int position)
nm - position - public int getNumPages()
public com.extentech.ExtenDOC.PageHandle[] getPages()
getPages in class com.extentech.ExtenDOC.DocHandle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||