com.extentech.ExtenXLS.web
Class WebDoc

java.lang.Object
  extended by com.extentech.ExtenXLS.DocumentHandle
      extended by com.extentech.ExtenXLS.web.MemeDocument
          extended by com.extentech.ExtenXLS.web.MemeDoc
              extended by com.extentech.ExtenXLS.web.WebDoc
All Implemented Interfaces:
Document, Handle, com.extentech.toolkit.LogOutputter, java.io.Closeable

public class WebDoc
extends MemeDoc

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.

Author:
John McMahon -- Copyright ©2010 Extentech Inc.
See Also:
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, DEFAULT_MEME_TYPE, FILE_TYPE_NATIVE, FILE_TYPE_XLS, FILE_TYPE_XLSX, FILE_TYPE_XMLSS, STORAGE_LOCATION_BLOB, 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.Document
DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM
 
Constructor Summary
WebDoc()
          May 19, 2010
WebDoc(java.sql.Connection conn, java.io.File tempfile)
          May 19, 2010
WebDoc(java.sql.Connection connection, java.io.InputStream bis, com.extentech.security.User u, java.lang.String nm)
          Apr 5, 2011
WebDoc(java.sql.Connection cx, java.lang.Object memeid)
          Deprecated. storetype and storelocation are now handled within storage
WebDoc(java.io.InputStream input)
          May 19, 2010
WebDoc(java.lang.String tmpFilePath)
          Load from a temp file
WebDoc(com.extentech.security.User user)
          constructor for creating a new, empty doc with an owner
 
Method Summary
 ChartHandle getChart(java.lang.String chartname)
          May 16, 2010
 ChartHandle[] getCharts()
          May 16, 2010
 FormatHandle[] getFormats()
          May 16, 2010
 void setDupeStringMode(int mode)
          May 16, 2010
 void setProtected(boolean b)
          May 16, 2010
 void setStringEncodingMode(int mode)
          May 16, 2010
 
Methods inherited from class com.extentech.ExtenXLS.web.MemeDoc
close, getAllStringsInDocument, getAllText, getFileExtension, getFormat, getXML, load, reset, revert, write, write, write, write, writeBytes
 
Methods inherited from class com.extentech.ExtenXLS.web.MemeDocument
addUser, appendOutputDir, bindData, deleteDocument, documentStorageLocation, getAllDiffs, getBook, getConcurrentUsers, getConnection, getCryptPass, getDataFactory, getDatamapping, getDefaultFileString, getFile, getLatestDiff, getMemeId, getMemeResolved, getMemeType, getMessageManager, getOutputDir, getOwnerId, getRESTEmit, getRESTlog, getSaveAsFileType, getScript, getServerURL, getSession, getSharingAccess, getStorageLocation, getTempfile, getXMLStream, isPublic, isSaved, load, loadDataDefinition, loadDataDefinition, log, log, log, setConnection, setCryptPass, setDataFactory, setDatamapping, setFile, setMemeId, setMemeResolved, setMemeType, setMessageManager, setOutputDir, setOwnerId, setRESTlog, setSaveAsFileType, setSaved, setScript, setServerURL, setSession, setSharingAccess, setStorageLocation, setTempfile, setVal, storeDiff
 
Methods inherited from class com.extentech.ExtenXLS.DocumentHandle
addProperty, getFileName, getInstance, getName, getProperties, getProperty, getVersion, setDebugLevel, setFileName, setName, setProperties, setStreamingSheets, toString, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebDoc

public WebDoc(java.sql.Connection conn,
              java.io.File tempfile)
       throws java.io.IOException
May 19, 2010

Parameters:
conn -
tempfile -
Throws:
java.io.IOException

WebDoc

public WebDoc(java.io.InputStream input)
May 19, 2010

Parameters:
conn -
tempfile -

WebDoc

public WebDoc()
May 19, 2010


WebDoc

public WebDoc(java.sql.Connection cx,
              java.lang.Object memeid)
Deprecated. storetype and storelocation are now handled within storage

May 20, 2010

Parameters:
conn -
intValue -
storeBookAsFile -
storeAsXML -

WebDoc

public WebDoc(java.lang.String tmpFilePath)
Load from a temp file

Parameters:
tmpFilePath -

WebDoc

public WebDoc(com.extentech.security.User user)
constructor for creating a new, empty doc with an owner

Parameters:
user -

WebDoc

public WebDoc(java.sql.Connection connection,
              java.io.InputStream bis,
              com.extentech.security.User u,
              java.lang.String nm)
Apr 5, 2011

Parameters:
connection - to database
is - inputstream containing doc bytes
u - user of owner
nm - name of doc
Method Detail

getChart

public ChartHandle getChart(java.lang.String chartname)
                     throws com.extentech.formats.XLS.ChartNotFoundException
May 16, 2010

Parameters:
chartname -
Returns:
Throws:
com.extentech.formats.XLS.ChartNotFoundException

getCharts

public ChartHandle[] getCharts()
May 16, 2010

Returns:

getFormats

public FormatHandle[] getFormats()
May 16, 2010

Returns:

setDupeStringMode

public void setDupeStringMode(int mode)
May 16, 2010

Parameters:
mode -

setProtected

public void setProtected(boolean b)
May 16, 2010

Parameters:
b -

setStringEncodingMode

public void setStringEncodingMode(int mode)
May 16, 2010

Parameters:
mode -


Copyright © 2011 Extentech Inc. All Rights Reserved.