|
||||||||||
| 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
public abstract 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
|
static int |
FILE_TYPE_NATIVE
|
static int |
FILE_TYPE_XLS
|
static int |
FILE_TYPE_XLSX
|
static int |
FILE_TYPE_XMLSS
|
static int |
MEME_TYPE
|
static int |
STORAGE_LOCATION_DB
|
static int |
STORAGE_LOCATION_FILESYSTEM
|
static int |
STORAGE_LOCATION_S3
|
| Fields inherited from class com.extentech.ExtenXLS.DocumentHandle |
|---|
FORMAT_NATIVE |
| Fields inherited from interface com.extentech.ExtenXLS.Document |
|---|
DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM |
| Constructor Summary | |
|---|---|
MemeDocument()
constructor inits meme database connection |
|
MemeDocument(Connection dbc)
constructor inits meme database connection |
|
MemeDocument(Connection cx,
int memeid)
Deprecated. storeType and storeLocation are now in storage |
|
MemeDocument(InputStream urlx)
|
|
MemeDocument(int memeid)
retrieves XML bytes for database record ID and converts to XLS WorkBook |
|
| 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 |
deleteDocument(DocumentHandle doc,
int memeid)
Deletes the meme record |
int |
documentStorageLocation()
Where to store the document, maps to STORAGE_LOCATION ints |
ArrayList |
getAllDiffs(int memeid)
retrieves ordered list of all differences for this meme_id |
abstract String |
getAllStringsInDocument()
|
WorkBook |
getBook(int memeid)
Deprecated. |
Map |
getConcurrentUsers()
|
Connection |
getConnection()
|
String |
getCryptPass()
|
ExtenXLSReportFactory |
getDataFactory()
|
String |
getDatamapping()
|
String |
getDefaultFileString(int memeid)
Deprecated. use Storage |
File |
getFile()
------------------------------------------------------------ |
String |
getLatestDiff(int memeid)
retrieves most current String difference for database record ID |
int |
getMemeId()
|
int |
getMemeResolved()
------------------------------------------------------------ |
int |
getMemeType()
|
com.extentech.comm.MessageManager |
getMessageManager()
|
String |
getOutputDir()
retrieve the webdir for this WebWorkBook |
int |
getOwnerId()
|
List |
getRESTEmit()
|
List |
getRESTlog()
|
int |
getSaveAsFileType()
Deprecated. storetype and storelocation are now handled within storage |
String |
getScript()
|
String |
getServerURL()
|
javax.servlet.http.HttpSession |
getSession()
Get the session associated with this WWB |
int |
getSharingAccess()
|
int |
getStorageLocation()
------------------------------------------------------------ |
File |
getTempfile()
|
abstract String |
getXML()
|
InputStream |
getXMLStream(int memeid)
Deprecated. use storage instead |
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 |
load()
Deprecated. |
abstract void |
load(int memeid)
Deprecated. |
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)
|
void |
log(String msg,
Exception e)
|
void |
log(String msg,
Exception e,
boolean b)
|
abstract DocumentHandle |
revert()
retrieve the latest from the db and replaces current workbook |
void |
setConnection(Connection _connection)
|
void |
setCryptPass(String _cryptPass)
|
void |
setDataFactory(ExtenXLSReportFactory d)
|
void |
setDatamapping(String d)
|
void |
setFile(File f)
------------------------------------------------------------ |
void |
setMemeId(int _memeId)
|
void |
setMemeResolved(int memeResolved)
------------------------------------------------------------ |
void |
setMemeType(int _memeType)
|
void |
setMessageManager(com.extentech.comm.ChatMessageManager ms)
|
void |
setOutputDir(String od)
|
void |
setOwnerId(int _ownerId)
|
void |
setRESTlog(List r)
|
void |
setSaveAsFileType(int fileType)
Deprecated. storetype and storelocation are now handled within storage |
void |
setSaved(boolean s)
Set if the workbook has ever been saved, or if it should be deleted on session end |
void |
setScript(String _script)
|
void |
setServerURL(String serverURL)
|
void |
setSession(javax.servlet.http.HttpSession s)
Set the session associated with this WWB |
void |
setSharingAccess(int access)
|
void |
setStorageLocation(int storageLocation)
------------------------------------------------------------ |
void |
setTempfile(File tempfile)
|
void |
setVal(String field,
Object val)
sets the value of a doc attribute in the database |
int |
storeDiff(int meme_id,
StringBuffer diff)
Saves the difference (in string format) between two versions of a workbook |
| Methods inherited from class com.extentech.ExtenXLS.DocumentHandle |
|---|
addProperty, getFileExtension, getFileName, getFormat, getInstance, getName, getProperties, getProperty, getVersion, reset, setDebugLevel, setFileName, setName, setProperties, toString, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Field Detail |
|---|
public static final int ACCESS_STATUS_PRIVATE
public static final int ACCESS_STATUS_PUBLIC
public static final int ACCESS_STATUS_SHARED
public static final int FILE_TYPE_NATIVE
public static final int FILE_TYPE_XMLSS
public static final int FILE_TYPE_XLS
public static final int FILE_TYPE_XLSX
public static final int STORAGE_LOCATION_DB
public static final int STORAGE_LOCATION_FILESYSTEM
public static final int STORAGE_LOCATION_S3
public static int MEME_TYPE
| Constructor Detail |
|---|
public MemeDocument()
public MemeDocument(int memeid)
ID - int ID of database record
SQLExceptionpublic MemeDocument(Connection dbc)
public MemeDocument(Connection cx,
int memeid)
ID - int ID of database recordConnection - database connectionmemeid - meme idstoreType - maps to STORAGE static ints, force to a specific save as type. native (0) will save as existing format
SQLExceptionpublic MemeDocument(InputStream urlx)
| Method Detail |
|---|
public String getOutputDir()
public void appendOutputDir(String p)
p - public void addUser(com.extentech.security.User usr)
usr -
public abstract String getXML()
throws IOException
IOExceptionpublic abstract String getAllStringsInDocument()
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
SQLExceptionpublic void load()
memeid - public abstract void load(int memeid)
memeid -
public void setVal(String field,
Object val)
throws Exception
memeid - int ID of this meme database record
SQLException
Exception
public void deleteDocument(DocumentHandle doc,
int memeid)
throws SQLException
book - WorkBookHandlememeid - int ID of this meme database record
SQLException
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 getScript()
public void setScript(String _script)
script - The script to set.public Map getConcurrentUsers()
public void log(String msg,
Exception e)
log in interface com.extentech.toolkit.LogOutputterpublic void log(String msg)
log in interface com.extentech.toolkit.LogOutputter
public void log(String msg,
Exception e,
boolean b)
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 setSaveAsFileType(int fileType)
storeBookAsFile - whether to store the book as a filepublic int getSaveAsFileType()
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 abstract DocumentHandle revert()
public int documentStorageLocation()
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 int getStorageLocation()
public void setStorageLocation(int storageLocation)
storageLocation - The storageLocation to set.public File getFile()
getFile in class DocumentHandlepublic void setFile(File f)
setFile in class DocumentHandlefile - The file to set.public int getMemeResolved()
public void setMemeResolved(int memeResolved)
memeResolved - The memeResolved to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||