public interface ICS
Modifier and Type | Field and Description |
---|---|
static String |
blobSrvGuid_id
GUID string for the BlobServer
|
static String |
cacheSrvGuid_id
GUID string for the CacheServer
|
static String |
catManGuid_id
GUID string for the CatalogManager
|
static String |
conSrvGuid_id
GUID string for the ContentServer
|
static int |
ContentCatalog
Catalog type for use with GetCatalogType
|
static String |
evalSrvGuid_id
GUID string for the EvalServer
|
static int |
ForeignCatalog
Catalog type for use with GetCatalogType
|
static int |
HTTPVERSION10 |
static int |
HTTPVERSION11 |
static int |
NoSuchCatalog
Catalog type for use with GetCatalogType
|
static int |
ObjectCatalog
Catalog type for use with GetCatalogType
|
static String |
SQLExpAND
AND type string for use with SQLExp
|
static String |
SQLExpIN
IN type string for use with SQLExp
|
static String |
SQLExpOR
OR type string for use with SQLExp
|
static int |
SystemCatalog
Catalog type for use with GetCatalogType
|
static int |
TempCatalog
Catalog type for use with GetCatalogType
|
static int |
TempTreeCatalog
Catalog type for use with GetCatalogType
|
static int |
TRACKING_LOCKEDBYOTHER
Tracking status code for getTrackingStatus()
|
static int |
TRACKING_LOCKEDBYUSER
Tracking status code for getTrackingStatus()
|
static int |
TRACKING_NOACCESS
Tracking status code for getTrackingStatus()
|
static int |
TRACKING_NOTLOCKED
Tracking status code for getTrackingStatus()
|
static int |
TRACKING_NOTTRACKED
Tracking status code for getTrackingStatus()
|
static int |
TRACKING_UNKNOWN
Tracking status code for getTrackingStatus()
|
static int |
TreeCatalog
Catalog type for use with GetCatalogType
|
static String |
treeManGuid_id
GUID string for the TreeManager
|
Modifier and Type | Method and Description |
---|---|
boolean |
AppEvent(String name, String guid, String times, FTValList params)
Create an event which triggers a registered function (via GUID or class)
|
boolean |
BlobServer(FTValList args, COM.FutureTense.Interfaces.IMIMENotifier im, OutputStream os)
Invoke the BlobServer to retrieve a blob into an output stream internal
|
boolean |
BlobServer(FTValList args, OutputStream os)
Invoke the BlobServer to retrieve a blob into an output stream
|
boolean |
CallElement(String elementname, FTValList lin)
Executes a registered element.
|
IList |
CallSQL(String qryname, String listname, int limit, boolean bCache, boolean bLoad, StringBuffer errstr)
Executes a stored SQL statement.
|
IList |
CallSQL(String qryname, String listname, int limit, boolean bLoadCache, StringBuffer errstr)
Executes a stored SQL statement.
|
IList |
CatalogDef(String from, String listname, StringBuffer errstr)
Queries a catalog for its column definition and stores the results in a list.
|
IList |
CatalogIndexDef(String from, String listname, StringBuffer errstr)
Queries a catalog for its index definition and stores the results in a list.
|
boolean |
CatalogManager(FTValList lin)
Executes the Catalog Manager logic class This method is analogous to the XML <CATALOGMANAGER> command.
|
boolean |
CatalogManager(FTValList lin, Object oBatchContext)
Executes the Catalog Manager logic class This method is analogous to the XML <CATALOGMANAGER> command.
|
void |
ClearErrno()
Clears the current error code, setting it to 0.
|
void |
close()
Method to close and release any resources associated with this object
|
boolean |
CommitBatchedCommands(Object oBatchContext)
Commit CatalogManager and TreeManager commands queued to the batch context
|
boolean |
CopyList(String list, String newname)
Copies a list object.
|
boolean |
dbDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.DB_DEBUG |
void |
decode(String sAttributes, Map map)
Method to split the attribute portion of a URL string into a set of attributes.
|
boolean |
DeleteSynchronizedHash(String name)
Destroy a synchronized hash
|
COM.FutureTense.Interfaces.IJSPObject |
deployJSPData(String sData, String sZone, StringBuffer sbError)
Deploy JSP data contained in a buffer.
|
COM.FutureTense.Interfaces.IJSPObject |
deployJSPFile(String sPath, String sZone, StringBuffer sbError)
Deploy a JSP file.
|
boolean |
DestroyEvent(String name)
Destroy a registered event by name
|
void |
DisableCache()
Disables any caching of the current execution thread.
|
boolean |
DisableEvent(String name)
Disabled a registered event by name
|
void |
DisableFragmentCache()
Disable caching on this fragment and all of its parents, but not any of its children.
|
String |
diskFileName()
Deprecated.
Method is disabled since cached pages are stored in the database now.
|
String |
diskFileName(String pname, FTValList arguments)
Deprecated.
Method is disabled since cached pages are stored in the database now.
|
String |
diskFileName(String pname, String arguments)
Deprecated.
Method is disabled since cached pages are stored in the database now.
|
boolean |
EmailEvent(String name, String tolist, String times, String filespec)
Create an event which triggers an email
|
boolean |
EmailEvent(String name, String tolist, String times, String filespec, String contenttype, String charset, FTValList attachments)
Create an event which triggers an email
|
boolean |
EnableEvent(String name)
Enabled a registered event by name
|
String |
encode(String base, Map map, boolean bSession)
Method to build an encoded URL string from a set of attributes
|
boolean |
eventDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.EVENT_DEBUG |
boolean |
FlushCatalog(String catname)
Flushes any cached information on a named catalog.
|
void |
FlushStream()
Flush the output stream of pending data (not stuff in cache for page)
|
String |
genID(boolean bClusterSafe)
Generate a unique number.
|
Object |
getAttribute(String sName)
Method to get an attribute value from the request
|
Enumeration |
getAttributeNames()
Method to get an enumeration of all the request attribute names
|
byte[] |
GetBin(String name)
Returns the value of a binary variable, such as a posted value.
|
int |
GetCatalogType(String catalog)
Gets the type of a catalog.
|
FTVAL |
GetCgi(String name)
Gets variable value even if the value is binary.
|
ftErrors |
getComplexError()
Get error details in the form of COM.FutureTense.Util.ftErrors.
|
String |
getCookie(String sName)
Get the value of a cookie from the header
|
int |
GetCounter(String counter)
Returns the value of a counter.
|
String |
getElementArgumentValue(String element, String argument)
Retrieves the argument value of an element.
|
int |
GetErrno()
Returns the current error code.
|
COM.FutureTense.Interfaces.IProperties |
getIProperties()
Return an IProperties object that provides access to the properties that are currently loaded into the CS context.
|
IServlet |
getIServlet()
Deprecated.
The IServlet interface is not portable across various containers, and as such its use should be limited.
|
IList |
GetList(String listname)
The GetList method retrieves the IList object for the given list name.
|
IList |
GetList(String listname, boolean reset)
The GetList method retrieves the IList object for the given list name.
|
String |
getLocaleString(String sName, String sLocale)
Method to get a locale specific string
|
String |
getNamespace()
The value returned by this method should be prefixed or appended to elements, such as JavaScript variables or function names, to ensure they are unique in the context of the generated page.
|
Object |
GetObj(String name)
Retrieve the last object saved earlier in this same thread using #SetObj(String, Object) or #PushObj(String, Object).
|
COM.FutureTense.ContentServer.PageData |
getPageData(String pagename)
Get the PageData object for the specified pagename
|
COM.FutureTense.Interfaces.PastramiEngine |
getPastramiEngine()
Method to return a PastramiEngine object based on the value of the propety cs.PastramiEngine or the override class name passed in
|
String |
GetProperty(String name)
Gets a property from the ContentServer property file.
|
String |
GetProperty(String name, String files, boolean append)
Gets a property from the a property file set.
|
COM.FutureTense.Cache.Satellite |
getSatellite(String id)
Method to get read-only information about a Satellite server.
|
COM.FutureTense.Interfaces.ISearchEngine |
GetSearchEngine(String sEngine, String sCharset, StringBuffer errstr)
Get an instance of the specified search engine.
|
String |
GetSearchEngineList()
Get a string list of the available search engines.
|
String |
getSQL(String qryname)
Method to get the SQL String given the query name
|
String |
GetSSVar(String name)
Returns the value of a session variable.
|
Enumeration |
GetSSVars()
Returns an enumeration of all session variables.
|
ISyncHash |
GetSynchronizedHash(String name, boolean bCreate, int timeout, int size, boolean bAbsolute, boolean bClusterSync)
Locate/create a named synchronized hash
|
ISyncHash |
GetSynchronizedHash(String name, boolean bCreate, int timeout, int size, boolean bAbsolute, boolean bClusterSync, Collection linked)
Locate/create a named synchronized hash
|
int |
getTrackingStatus(String sTable, String sId)
Method to get the tracking status for a row in a table
|
String |
getURL(Definition definition, String assembler)
Method to generate a URI appropriate for the request
|
String |
getURL(COM.FutureTense.Interfaces.IURLDefinition oIURLDefinition)
Deprecated.
Use
ICS.getURL(Definition,String) instead. This method will be removed after Content Server 6.1 |
Principal |
getUserPrincipal()
Returns a java.security.Principal object containing the name of the current authenticated user.
|
String |
GetVar(String name)
Returns the value of a variable.
|
Enumeration |
GetVars()
Returns an enumeration of all variables.
|
byte[] |
grabCacheStatus()
get the cache status
|
FTValList |
grabHeaders()
Get headers set since last call
|
boolean |
IndexAdd(String sIndex, String sEntryName, String sEntryDetail, String sWordList, String sWordListDelimiters, String sFileList, String sDate, FTValList vlTextArguments, FTValList vlFileArguments, FTValList vlDateArguments, String sEngine, String sCharset, StringBuffer sbError)
Adds an item to the search index.
|
boolean |
IndexCreate(String sIndex, FTValList vlFieldArguments, String sEngine, String sCharset, StringBuffer errstr)
Creates a search index.
|
boolean |
IndexDestroy(String sIndex, String sEngine, String sCharset, StringBuffer sbError)
Deletes a search index.
|
boolean |
IndexExists(String sIndex, String sEngine, String sCharset, StringBuffer sbError)
Checks for the existence a search index.
|
boolean |
IndexRemove(String sIndex, String sEntryName, String sEngine, String sCharset, StringBuffer sbError)
Removes a search index entry.
|
boolean |
IndexReplace(String sIndex, String sEntryName, String sEntryDetail, String sWordList, String sWordListDelimiters, String sFileList, String sDate, FTValList vlTextArguments, FTValList vlFileArguments, FTValList vlDateArguments, String sEngine, String sCharset, StringBuffer sbError)
Replaces an item in the search index.
|
boolean |
InsertPage(String pagename, FTValList lin)
Invokes a pagelet inline with the current evaluation.
|
boolean |
ioErrorThrown()
Check to see if the http request has registered an io error ie broken pipe
|
boolean |
isCacheable(String pagename)
Determine if a page is set to cache at this time.
|
boolean |
IsElement(String element)
Checks for the existance of an element.
|
boolean |
IsSystemSecure()
Return if the current thread is running with CS security on or off - depends on property file setting and if off, no access restrictions will be in place at the core catalog level
|
boolean |
IsTracked(String catalog)
Checks if a catalog is revision tracked.
|
boolean |
IsTrackedNewFormat(String catalog)
Checks if a catalog is revision tracked with the new 8.0 format.
|
String |
literal(String sTable, String sColumn, String sValue)
Generates a literal value specific to a column in a table.
|
boolean |
LoadProperty(String name)
Loads a new property set into the system.
|
void |
LogMsg(String msg)
Deprecated.
Use Apache's commons-logging module instead. Out of the box Logger names are identified in
ftMessage . |
int |
Mirror(IList list, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, String proxyserver, String proxyport, String proxyuser, String proxypassword, boolean bUseHTTPS, int nHTTPVersion, String tableToMirror, StringBuffer sbOutput)
Mirrors a result set.
|
int |
Mirror(Vector vILists, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
Mirrors a result set.
|
int |
Mirror(Vector vILists, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, String proxyserver, String proxyport, String proxyuser, String proxypassword, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
Mirrors a result set.
|
int |
Mirror(Vector vILists, Vector vTreeList, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
Mirrors a result set.
|
int |
Mirror(Vector vILists, Vector vTreeList, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, String proxyserver, String proxyport, String proxyuser, String proxypassword, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
Mirrors a result set.
|
Seed |
NewSeedFromTagname(String tagname)
Deprecated.
use ICS.runTag(String, FTValList) instead
|
String[] |
pageCriteriaKeys(String pagename)
Get a String array of page criteria allowable keynames
|
String |
pageURL()
Return the cache key in 'url' form of the current execution instance (page/pagelet).
|
String |
pageURL(String pname, FTValList arguments)
Return the cache key in 'url' form of the execution instance (page/pagelet) defined by the input parameters.
|
boolean |
pastramiDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.GENERIC_DEBUG |
boolean |
pgCacheDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.PAGE_CACHE_DEBUG |
Object |
PopObj(String name)
Pop the last object saved earlier in this same thread by a given name.
|
void |
PopVars()
Pops the variable stack, returning the variables to their previously stacked state.
|
boolean |
PushObj(String name, Object value)
Save an object by name, and retain any object previously saved by that same name.
|
void |
PushVars()
Saves a copy of all the current variables to a stack.
|
IList |
QueryEvents(String sNamePattern, String sType, Boolean bEnabled, String sList)
Attempt to query for a list of matching events
|
IList |
ReadEvent(String sEvent, String sList)
Attempt to read an event record
|
String |
ReadPage(String pagename, FTValList lin)
Invokes a pagelet through Content Server.
|
boolean |
RegisterList(String listname, IList ilist)
Register an IList object with CS for use in XML tagging; this assumes that the IList was created in a manner that did not implicitly register the name, as would be the case with the listname parameter to SQL(), SelectTo(), etc.
|
void |
removeAttribute(String sName)
Method to remove an attribute from the request
|
void |
RemoveCounter(String name)
Remove counter
|
void |
RemoveSSVar(String name)
Removes a session variable.
|
void |
RemoveVar(String name)
Removes a variable.
|
boolean |
RenameList(String list, String newname)
Renames a list object.
|
String |
ResolveVariables(String st)
Resolves any variable, query column value, counter or property in this string.
|
String |
ResolveVariables(String st, boolean bNew)
Resolves any variable, query column value, counter or property in this string.
|
boolean |
RestoreProperty(boolean bClose)
Restores the previous property set into the system.
|
boolean |
RollbackBatchedCommands(Object oBatchContext)
Abort CatalogManager and TreeManager commands queued to the batch context
|
boolean |
rsCacheDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.RESULT_SET_CACHE_DEBUG |
int |
RTCommit(String sTable, String sAsset, String sAnnotation, boolean bKeepLocked)
Creates a new revision of a record from a tracked table.
|
int |
RTDeleteRevision(String sTable, String sAsset, int nVersion)
Deletes a revision of a row from a tracked table.
|
IList |
RTHistory(String sTable, String sAsset, String sVersion, String sLocker, String sCreator, String sAnnotation, String sListName)
Returns revision history for rows in a revision tracked table.
|
IList |
RTInfo(String sTable, String sListName)
Returns information on tracked tables from the RTInfo table
|
int |
RTLock(String sTable, String sAsset)
Locks a record by the current user in a tracked table.
|
int |
RTRelease(String sTable, String sAsset)
Release a lock on a row from a tracked table.
|
IList |
RTRetrieveRevision(String strTableName, String strAsset, int nVersion, String listName)
This method returns a specific version for a tracked table.
|
IList |
RTRetrieveRevision(String strTableName, String strAsset, String strVersion, String listName)
This method returns a specific version for a tracked table.
|
int |
RTRollback(String sTable, String sAsset, int nVersion)
Reverts a row in a tracked table to a previous revision.
|
int |
RTRollback(String sTable, String sAsset, String strVersion)
Reverts a row in a tracked table to a previous revision.
|
int |
RTSetVersions(String sTable, int nVersions)
Sets the number of revisions stored for each row in a tracked table.
|
int |
RTTrackTable(String sTable, String sStorage, int nVersions)
Enables revision tracking operations on a table.
|
int |
RTUnlockRecord(String sTable, String sAsset)
Unlocks a locked row.
|
int |
RTUntrackTable(String sTable)
Stops tracking a table.
|
String |
runTag(String sTag, FTValList vIn)
Method to execute a simple XML tag by name.
|
IList |
Search(String sIndex, String sWhat, String sRelevence, String sQueryParser, int nMaxResults, FTValList vlAdditionalIndexes, String sList, String sEngine, String sCharset, StringBuffer sbError)
Searches an index.
|
boolean |
SearchDateToNative(String sDate, StringBuffer sbOut, String sEngine, String sCharset, StringBuffer sbError)
Converts a javaSQL date string to native search engine format.
|
IList |
SelectTo(String from, String what, String where, String orderby, int limit, String listname, boolean bCache, StringBuffer errstr)
Performs a simple query by specifing a list of column names to return, and a list of column names to use as filtering.
|
boolean |
SendMail(String to, String subject, String body)
Sends an email to the specified address.
|
boolean |
SendMail(String to, String subject, String body, String replyto, String contenttype)
Sends an email to the specified address.
|
boolean |
SendMail(String to, String subject, String body, String replyto, String contenttype, String charset, FTValList attachments)
Sends an email to the specified address.
|
boolean |
sessionDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.SESSION_DEBUG |
boolean |
SessionExists(String id)
Deprecated.
this always returns false
|
String |
SessionID()
Find out the session id being used by this user session.
|
void |
setAttribute(String sName, Object oValue)
Method to set an attribute for the request
|
void |
setComplexError(ftErrors error)
Set a complex error using COM.FutureTense.Util.ftErrors
|
boolean |
SetCookie(String name, String value, int timeout, String url, String domain, boolean bSecure)
Sets or removes a cookie.
|
void |
SetCounter(String counter, int value)
Set a counter
|
void |
SetErrno(int i)
Set the current error code as an integer.
|
boolean |
SetObj(String name, Object value)
Save an object by name.
|
void |
SetSSVar(String name, int value)
Sets a session variable to the specified value.
|
void |
SetSSVar(String name, String value)
Sets a session variable to the specified value.
|
void |
SetVar(String name, FTVAL value)
Sets a variable to the specified value.
|
void |
SetVar(String name, int value)
Sets a variable to the specified value.
|
void |
SetVar(String name, String value)
Sets a variable to the specified value.
|
IList |
SQL(PreparedStmt stmt, com.fatwire.cs.core.db.StatementParam data, boolean bCache)
Executes a given PreparedStmt with supplied data; returns data in the form of an IList.
|
IList |
SQL(String from, String sqlstmt, String listname, int limit, boolean bCache, boolean bLoad, StringBuffer errstr)
Executes an SQL statement.
|
IList |
SQL(String from, String sqlstmt, String listname, int limit, boolean bLoadCache, StringBuffer errstr)
Executes an SQL statement.
|
String |
SQLExp(String table, String type, String verb, String arg, String column)
Generates an expression for an SQL WHERE clause This method is analgous to the XML <SQLExp> command.
|
String |
SQLExp(String table, String type, String verb, String arg, String column, String expression)
Generates an expression for an SQL WHERE clause
|
Object |
StartBatchContext()
Fetch Batch context object to queue CatalogManager and TreeManager commands
|
void |
StreamBinary(byte[] b, int offset, int length)
Deprecated.
|
void |
StreamEvalBytes(String msg)
Writes a string to the current element evaluation stream; it will be appended to the current element output buffer.
|
void |
StreamHeader(String header, String text)
Immediately stream header data.
|
void |
StreamText(String text)
Immediately streams text out to the ICS context (RIGHT NOW).
|
boolean |
syncDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.SYNC_DEBUG |
boolean |
systemDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.GENERIC_DEBUG |
boolean |
systemSession()
Are sessions enabled for the current pagelet?
|
void |
ThrowException()
Interface to xml THROWEXCEPTION functionality - this effects the entire thread ie http request
|
boolean |
timeDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.TIME_DEBUG |
boolean |
TreeManager(FTValList lin)
Executes the Tree Manager logic class This method is analogous to the XML <TREEMANAGER> command.
|
boolean |
TreeManager(FTValList lin, Object oBatchContext)
Executes the Tree Manager logic class This method is analogous to the XML <TREEMANAGER> command.
|
boolean |
UserIsMember(String grouplist)
Determines if the currently logged in user is a member of a supplied group.
|
boolean |
xmlDebug()
Deprecated.
Use Apache's commons-logging module instead. The logger name that is used in place of this debug flag is identified by the string value of
ftMessage.XML_DEBUG |
static final int HTTPVERSION10
static final int HTTPVERSION11
static final String conSrvGuid_id
static final String catManGuid_id
static final String treeManGuid_id
static final String blobSrvGuid_id
static final String evalSrvGuid_id
static final String cacheSrvGuid_id
static final String SQLExpAND
static final String SQLExpOR
static final String SQLExpIN
static final int NoSuchCatalog
static final int SystemCatalog
static final int ContentCatalog
static final int ForeignCatalog
static final int TreeCatalog
static final int ObjectCatalog
static final int TempCatalog
static final int TempTreeCatalog
static final int TRACKING_UNKNOWN
static final int TRACKING_NOTTRACKED
static final int TRACKING_NOTLOCKED
static final int TRACKING_LOCKEDBYOTHER
static final int TRACKING_LOCKEDBYUSER
static final int TRACKING_NOACCESS
void PushVars()
ICS.PopVars()
void PopVars()
ICS.PushVars()
void SetVar(String name, String value)
name
- The name of the variable you wish to set.value
- The value to set the variable to.ICS.GetVar(String)
, ICS.RemoveVar(String)
boolean SetObj(String name, Object value)
name
- name of objectvalue
- object to save, setting to null removes objectICS.GetObj(String)
, ICS.PopObj(String)
, ICS.PushObj(String,Object)
Object GetObj(String name)
name
- name of objectICS.PopObj(String)
, ICS.PushObj(String,Object)
, ICS.SetObj(String,Object)
Object PopObj(String name)
name
- String name of the objectICS.GetObj(String)
, ICS.PushObj(String,Object)
, ICS.SetObj(String,Object)
boolean PushObj(String name, Object value)
name
- String name of the objectvalue
- Object to be pushedICS.GetObj(String)
, ICS.PopObj(String)
, ICS.SetObj(String,Object)
String GetVar(String name)
name
- The name of the variable.ICS.SetVar(String,String)
, ICS.SetVar(String,int)
, ICS.RemoveVar(String)
byte[] GetBin(String name)
name
- The name of the variable.FTValList.getValBLOB(java.lang.String)
, ICS.GetCgi(java.lang.String)
, ICS.GetVar(java.lang.String)
int GetCounter(String counter) throws Exception
counter
- nameException
- if failurevoid SetCounter(String counter, int value) throws Exception
counter
- namevalue
- integer valueException
- if failurevoid RemoveCounter(String name)
name
- of counterEnumeration GetVars()
ICS.SetVar(String,String)
, ICS.SetVar(String,int)
, ICS.GetVar(String)
, ICS.RemoveVar(String)
void SetVar(String name, int value)
name
- The name of the variable you wish to set.value
- The value to set the variable to.ICS.GetVar(String)
, ICS.RemoveVar(String)
void RemoveVar(String name)
name
- The name of the variable to delete.ICS.SetVar(String,String)
, ICS.SetVar(String,int)
, ICS.GetVar(String)
void SetSSVar(String name, String value)
name
- The name of the session variable you wish to set.value
- The value to set the session variable to.ICS.GetSSVar(String)
, ICS.RemoveSSVar(String)
String GetSSVar(String name)
name
- The name of the session variable.ICS.SetSSVar(String,String)
, ICS.SetSSVar(String,int)
, ICS.RemoveSSVar(String)
Enumeration GetSSVars()
ICS.SetSSVar(String,String)
, ICS.SetSSVar(String,int)
, ICS.GetSSVar(String)
, ICS.RemoveSSVar(String)
void SetSSVar(String name, int value)
name
- The name of the session variable you wish to set.value
- The value to set the session variable to.ICS.GetSSVar(String)
, ICS.RemoveSSVar(String)
void RemoveSSVar(String name)
name
- The name of the session variable to delete.ICS.SetSSVar(String,String)
, ICS.SetSSVar(String,int)
, ICS.GetSSVar(String)
String SessionID()
boolean IsSystemSecure()
void SetVar(String name, FTVAL value)
name
- The name of the variable you wish to set.value
- The value to set the variable to.ICS.GetCgi(String)
, ICS.RemoveVar(String)
FTVAL GetCgi(String name)
name
- The name of the variable you wish to get.ICS.GetVar(String)
, ICS.SetVar(String,FTVAL)
, ICS.GetBin(String)
String GetProperty(String name)
name
- The name of the property you wish to get.ICS.GetProperty(String,String,boolean)
, ICS.LoadProperty(String)
, ICS.RestoreProperty(boolean)
String GetProperty(String name, String files, boolean append)
name
- The name of the property you wish to get.files
- The semicolon separated list of property files.append
- Set to true to append to the current property files. If this value is set to false, all of the required properties for Content Server must be specified in the properties named in files
ICS.GetProperty(String)
, ICS.LoadProperty(String)
, ICS.RestoreProperty(boolean)
boolean IsElement(String element)
element
- The name of the element.String getElementArgumentValue(String element, String argument)
element
- The name of the element.argument
- The argument.int GetCatalogType(String catalog)
catalog
- The name of the catalog.boolean IsTracked(String catalog)
catalog
- The name of the catalog.boolean IsTrackedNewFormat(String catalog)
catalog
- The name of the catalog.int getTrackingStatus(String sTable, String sId)
sTable
- name of the tablesId
- row identifierboolean FlushCatalog(String catname)
catname
- The name of the catalog to flush.int GetErrno()
ICS.ClearErrno()
ftErrors getComplexError()
ftErrors.getError()
, ftErrors.detail(int)
(with ftErrors.details()
) and ftErrors.getReason()
.ftErrors.getError()
, ftErrors.getReason()
, ftErrors.details()
, ftErrors.detail(int)
void setComplexError(ftErrors error)
error
- ftErrors error objectvoid SetErrno(int i)
i
- the integer error code to setICS.ClearErrno()
, ICS.GetErrno()
void ClearErrno()
ICS.GetErrno()
String ResolveVariables(String st)
ResolveVariables(st, true)
.st
- The String to resolve variable references for.ICS.ResolveVariables(String,boolean)
String ResolveVariables(String st, boolean bNew)
st
- The String to resolve variables forbNew
- true to use the newer variable resolution syntax, false to use the older.IList SelectTo(String from, String what, String where, String orderby, int limit, String listname, boolean bCache, StringBuffer errstr)
from
- Tablename to select.what
- Column list, as in tblname,systable; is all columns.where
- Comma-separated list of catalog columns to select against. For each item in the WHERE string, the value of the corresponding variable is used to construct a SQL WHERE clause.orderby
- Column list defining the ordering of the results.limit
- Maximum number of results, -1 means no limit.listname
- List name to present to XML side for processing; if null is passed, a generic name will be assigned.bCache
- True to cache the results; false to avoid caching the result.errstr
- For return values; may contain error information.ICS.CallSQL(String,String,int,boolean,boolean,StringBuffer)
, ICS.SQL(String,String,String,int,boolean,boolean,StringBuffer)
IList CallSQL(String qryname, String listname, int limit, boolean bLoadCache, StringBuffer errstr)
qryname
- The name of the SQL element in the SystemSQL table.listname
- List name to present to XML side for processing; if null is passed, a generic name will be assigned.limit
- Maximum number of results, -1 means no limit.bLoadCache
- True to completely load and cache the result set; otherwise the database connection is left open.errstr
- For return values; may contain error information.ICS.SelectTo(String,String,String,String,int,String,boolean, StringBuffer)
, ICS.SQL(String,String,String,int,boolean,boolean,StringBuffer)
String getSQL(String qryname)
qryname
- The name of the queryIList CallSQL(String qryname, String listname, int limit, boolean bCache, boolean bLoad, StringBuffer errstr)
qryname
- The name of the SQL element in the SystemSQL table.listname
- List name to present to XML side for processing; if null is passed, a generic name will be assigned.limit
- Maximum number of results, -1 means no limit.bCache
- True to cache the result set; false otherwise.bLoad
- True to completely load the result set; otherwise the database connection is left open.errstr
- For return values; may contain error information.ICS.SelectTo(String,String,String,String,int,String,boolean, StringBuffer)
, ICS.SQL(String,String,String,int,boolean,boolean,StringBuffer)
IList SQL(String from, String sqlstmt, String listname, int limit, boolean bLoadCache, StringBuffer errstr)
from
- Comma separated list of table names this query will be cached againstsqlstmt
- The SQL statement to execute.listname
- List name to present to XML side for processing; if null is passed, a generic name will be assigned.limit
- Maximum number of results, -1 means no limit.bLoadCache
- True to completely load and cache the result set; otherwise the database connection is left open.errstr
- For return values; may contain error information.IList SQL(String from, String sqlstmt, String listname, int limit, boolean bCache, boolean bLoad, StringBuffer errstr)
from
- Comma separated list of table names this query will be cached againstsqlstmt
- The SQL statement to execute.listname
- List name to present to XML side for processing; if null is passed, a generic name will be assigned.limit
- Maximum number of results, -1 means no limit.bCache
- True to cache the result set; false otherwise.bLoad
- True to completely load the result set; otherwise the database connection is left open.errstr
- For return values; may contain error information.IList SQL(PreparedStmt stmt, com.fatwire.cs.core.db.StatementParam data, boolean bCache)
stmt
- Instance of PreparedStmt that will be executed (after resolving all SQL types for its placeholders)data
- Instance of StatementParam belonging to the PreparedStmt. null is acceptable when PreparedStmt instance contains no placeholders (no ? characters in its statement).bCache
- true to cache the result set; false otherwise (data will always be read from cache, when available, regardless of the value for bCache.)IllegalArgumentException
- - if PreparedStmt, StatementParam are null (when not allowed) or incomplete (isComplete() = false) or number of placeholders are not equal ( PreparedStmt.getPositionsCount != StatementParam.getPositionsCount)IllegalStateException
- - if the current user does not have permission (ACLs) to the tables used in the prepared statement or if table/column name specified could not be found. app.setError() is set for situations that results in any of these errors.RuntimeException
- if execution of statement fails. Exceptions simply communicate the failure to the caller.String literal(String sTable, String sColumn, String sValue)
sTable
- the table which contains the columnsColumn
- the name of the columnsValue
- the value to be converted to a literalICS.SQLExp(String,String,String,String,String)
, ICS.SQLExp(String,String,String,String,String,String)
String SQLExp(String table, String type, String verb, String arg, String column)
table
- The table for which the statement is being executed.type
- The expression type. Legal values are:
verb
- The verb for the where clause (e.g. "LIKE", "=", "!=", "IN", "NOT IN")arg
- Comma separated list of values for the expressioncolumn
- The column for which the expression is being generatedString SQLExp(String table, String type, String verb, String arg, String column, String expression)
table
- The table for which the statement is being executed.type
- The expression type. Legal values are:
verb
- The verb for the where clause (e.g. "LIKE", "=", "!=", "IN", "NOT IN")arg
- Comma separated list of values for the expressioncolumn
- The column for which the expression is being generatedexpression
- The optional column expression for which the expression is being generatedIList CatalogDef(String from, String listname, StringBuffer errstr)
from
- The name of the catalog.listname
- List name to present to XML side for processing; if null is passed, a generic name will be assigned.errstr
- For return values; may contain error information.IList CatalogIndexDef(String from, String listname, StringBuffer errstr)
from
- The name of the catalog.listname
- The list name for xml/jsp tags processing.errstr
- For return values; may contain error information.IList GetList(String listname)
listname
- The name of the list you wish to return.ICS.GetList(String,boolean)
, ICS.RegisterList(String,IList)
IList GetList(String listname, boolean reset)
listname
- The name of the list you wish to return.reset
- set to true to position at first row, otherwise the current list position will be maintained.ICS.GetList(String)
, ICS.RegisterList(String,IList)
boolean RenameList(String list, String newname)
Renaming to a list that already exists destroys the existing list. Cached resultsets corresponding to the list, however, are not destroyed, and are accesible to other threads. To delete cached resultsets, use FlushCatalog(String).
list
- The list to rename.newname
- The new name for the list.boolean CopyList(String list, String newname)
list
- The list to copy.newname
- The new name for the list.boolean CatalogManager(FTValList lin)
lin
- FTValList values to use for new engine, a null indicates to use CGI values of Content Serverboolean CatalogManager(FTValList lin, Object oBatchContext)
lin
- FTValList values to use for new engine, a null indicates to use CGI values of Content ServeroBatchContext
- Object handle to the batch context objectboolean TreeManager(FTValList lin)
lin
- FTValList values to use for new engine, a null indicates to use CGI values of Content Serverboolean TreeManager(FTValList lin, Object oBatchContext)
lin
- FTValList values to use for new engine, a null indicates to use CGI values of Content ServeroBatchContext
- Object handle to the batch context objectboolean CallElement(String elementname, FTValList lin)
elementname
- The name of the element to call.lin
- Name/value pairs to be passed to the element as arguments. If null, then only variables in the current variable scope will be passed. If values are specified, then they will be set into the current variable scope, overwriting any existing variables with the same names, and then the element will be called.void StreamEvalBytes(String msg)
msg
- String msgString ReadPage(String pagename, FTValList lin)
pagename
- pagename entry in the SiteCatalog.lin
- Name/Value pairs to be passed as input parameters to the page. If the pagelet is to be cached (according to the SiteCatalog) then all of the variables passed should be listed in the pagecriteria column. If null is passed, then the current variable scope is passed. It is strongly recommended that a non-null value be passed here to ensure explicit control over the cache key.ICS.GetErrno()
boolean InsertPage(String pagename, FTValList lin)
pagename
- pagename entry in the SiteCatalog.lin
- Name/Value pairs to be passed as input parameters to the page. If the pagelet is to be cached (according to the SiteCatalog) then all of the variables passed should be listed in the pagecriteria column. If null is passed, then the current variable scope is passed. It is strongly recommended that a non-null value be passed here to ensure explicit control over the cache key.ICS.GetErrno()
Seed NewSeedFromTagname(String tagname)
tagname
- (caseless)ICS.runTag(String,FTValList)
String runTag(String sTag, FTValList vIn)
sTag
- name of the tagvIn
- input key/value pairsvoid StreamText(String text)
text
- The text to stream.void FlushStream()
void StreamBinary(byte[] b, int offset, int length)
b
- byte array to streamoffset
- offset into byte arraylength
- number of bytes to streamvoid StreamHeader(String header, String text)
header
- String name of header (ie content-type)text
- String header data (ie image/gif)FTValList grabHeaders()
byte[] grabCacheStatus()
boolean LoadProperty(String name)
name
- The name of the property set to load (i.e. "futuretense.ini").boolean RestoreProperty(boolean bClose)
bClose
- Whether to close the connection to a database opened using the current properties. Possible values are "true" or "false". If bClose is set to "true" any open database connection specified by the current properties will be closed before restoring the defaults. This invalidates any active, uncached resultsets connected to that database. If access to those resultsets is required after restoreProperty(), bClose should be set to "false". This will keep the connection open and resultsets against the database will be available.String getCookie(String sName)
sName
- cookie nameboolean SetCookie(String name, String value, int timeout, String url, String domain, boolean bSecure)
name
- The name of the cookie to set.value
- The value to set the cookie to. Setting the value to null REMOVES the cookie.timeout
- The timeout period for the cookie on the client, in seconds.url
- Valid URL. This value restricts the sending of the cookie from the client to this URL only. Defaults to "/" if omitted.domain
- Valid domain name. This value restricts the sending of the cookie from the client to addresses in this domain only.bSecure
- Indicates whether security is set on this cookie.void DisableCache()
ICS.DisableFragmentCache()
to disable caching for the current pagelet and its parents, but to allow caching of child pagelets that have not yet been executed.ICS.DisableFragmentCache()
boolean SendMail(String to, String subject, String body, String replyto, String contenttype, String charset, FTValList attachments)
to
- A valid TO value, i.e. "joe@somecompany.com".subject
- The subject of the message. May be null if the body is not null.body
- The message body. May be null if the subject is not null.replyto
- The replyto address for the message. May be null to use the same address as from.contenttype
- The content-type for the message. May be null to default to text/plaincharset
- The charset for the message. May be null if body contains only US-ASCII characters or contenttype contains charset.attachments
- The attachments associated with this message. Attachmaent names are passed as keys and actual attachments are passed as values, each attachment is encapsulated in object FTVAL.boolean SendMail(String to, String subject, String body, String replyto, String contenttype)
to
- A valid TO value, i.e. "joe@somecompany.com".subject
- The subject of the message. May be null if the body is not null.body
- The message body. May be null if the subject is not null.replyto
- The replyto address for the message. May be null to use the same address as from.contenttype
- The content-type for the message. May be null to default to text/plainboolean SendMail(String to, String subject, String body)
to
- A valid TO value, i.e. "joe@somecompany.com".subject
- The subject of the message. May be null if the body is not null.body
- The message body. May be null if the subject is not null.boolean UserIsMember(String grouplist)
grouplist
- A comma seperated list of groups to check against.void LogMsg(String msg)
ftMessage
.msg
- The message to send to the Content Server log file.COM.FutureTense.Interfaces.ISearchEngine GetSearchEngine(String sEngine, String sCharset, StringBuffer errstr)
sEngine
- Search engine name. May be null.sCharset
- Search index charset. May be null.errstr
- For return values; may contain error information.String GetSearchEngineList()
boolean IndexCreate(String sIndex, FTValList vlFieldArguments, String sEngine, String sCharset, StringBuffer errstr)
sIndex
- Full path name to the index to create. May be null.vlFieldArguments
- Field argument names and values. May be null.sEngine
- Search engine name. May be null.sCharset
- Search index charset. May be null.errstr
- For return values; may contain error information.boolean IndexDestroy(String sIndex, String sEngine, String sCharset, StringBuffer sbError)
sIndex
- Search index to destroy. May be null.sEngine
- Search engine name. May be null.sCharset
- Search index charset. May be null.sbError
- For return values; may contain error information.boolean IndexExists(String sIndex, String sEngine, String sCharset, StringBuffer sbError)
sIndex
- Search index to destroy. May be null.sEngine
- Search engine name. May be null.sCharset
- Search index charset. May be null.sbError
- For return values; may contain error information.boolean IndexAdd(String sIndex, String sEntryName, String sEntryDetail, String sWordList, String sWordListDelimiters, String sFileList, String sDate, FTValList vlTextArguments, FTValList vlFileArguments, FTValList vlDateArguments, String sEngine, String sCharset, StringBuffer sbError)
sIndex
- The name of the search index. May be null.sEntryName
- The name of the index entry to add.sEntryDetail
- The detail string associated with entry. May be null.sWordList
- The word list to index. May be null.sWordListDelimiters
- The characters to use as word list delimiters. May be null.sFileList
- A list of files to add. May be null.sDate
- The date associated with this entry. May be null.vlTextArguments
- The text argument names and values. May be null.vlFileArguments
- The file argument names and values. May be null.vlDateArguments
- The date argument names and values. May be null.sEngine
- The search engine name. May be null.sCharset
- The search index charset. May be null.sbError
- For return values; may contain error information.boolean IndexReplace(String sIndex, String sEntryName, String sEntryDetail, String sWordList, String sWordListDelimiters, String sFileList, String sDate, FTValList vlTextArguments, FTValList vlFileArguments, FTValList vlDateArguments, String sEngine, String sCharset, StringBuffer sbError)
sIndex
- The name of the search index. May be null.sEntryName
- The name of the index entry to replace.sEntryDetail
- The detail string associated with entry. May be null.sWordList
- The word list to index. May be null.sWordListDelimiters
- The characters to use as word list delimiters. May be null.sFileList
- A list of files to add. May be null.sDate
- The date associated with this entry. May be null.vlTextArguments
- The text argument names and values. May be null.vlFileArguments
- The file argument names and values. May be null.vlDateArguments
- The date argument names and values. May be null.sEngine
- The search engine name. May be null.sCharset
- The search index charset. May be null.sbError
- For return values; may contain error information.boolean IndexRemove(String sIndex, String sEntryName, String sEngine, String sCharset, StringBuffer sbError)
sIndex
- The name of the index. May be null.sEntryName
- The name of the entry to delete.sEngine
- The search engine name. May be null.sCharset
- The search index charset. May be null.sbError
- For return values; may contain error information.boolean SearchDateToNative(String sDate, StringBuffer sbOut, String sEngine, String sCharset, StringBuffer sbError)
sDate
- The date to convert.sbOut
- Buffer to where the converted string will be returned.sEngine
- The search engine name. May be null.sCharset
- The search index charset. May be null.sbError
- For return values; may contain error information.IList Search(String sIndex, String sWhat, String sRelevence, String sQueryParser, int nMaxResults, FTValList vlAdditionalIndexes, String sList, String sEngine, String sCharset, StringBuffer sbError)
sIndex
- The index to search. May be null.sWhat
- The query string.sRelevence
- The Relevence string. May be null.sQueryParser
- The query parser name. May be null.nMaxResults
- The maximum number of results to return. Set this to 0 for unlimited results.vlAdditionalIndexes
- The name, value pairs of additional indexes to search. May be null.sList
- The name of the list. May be null.sEngine
- The search engine name. May be null.sCharset
- The search index charset. May be null.sbError
- For return values; may contain error information.IList RTHistory(String sTable, String sAsset, String sVersion, String sLocker, String sCreator, String sAnnotation, String sListName)
sTable
- Name of the tracked table.sAsset
- Value of the primary key for the row whose history to retrieve.sVersion
- requesed versionsLocker
- Filter rows returned based on a user who has rows locked. If the current user does not have rtaudit privileges, you must specify a value for LOCKER, CREATOR, or both. If you specify only LOCKER, the value must be the current users name; otherwise, no data will be returned.sCreator
- Filter rows returned based on the user who created the row. If the current user does not have rtaudit privileges, you must specify a value for LOCKER, CREATOR, or both. If you specify only CREATOR, the value must be the current users name; otherwise, no data will be returned.sAnnotation
- Filter rows returned based on the annotation of a row.sListName
- Name of the list.IList RTInfo(String sTable, String sListName)
sTable
- Name of the tracked tablesListName
- Name of the IList to register.int RTLock(String sTable, String sAsset)
sTable
- Name of the tracked table.sAsset
- Value of the primary key of the row to lock.int RTCommit(String sTable, String sAsset, String sAnnotation, boolean bKeepLocked)
sTable
- Name of the tracked table.sAsset
- Value of the primary key for the record being commited.sAnnotation
- Comment describing the new revision.bKeepLocked
- Indicates lock status of record after commit. Set value to "true" to indicate the record will still be locked by user after the commit.int RTRelease(String sTable, String sAsset)
sTable
- Name of the tracked table.sAsset
- Value of the primary key of the row to release.IList RTRetrieveRevision(String strTableName, String strAsset, int nVersion, String listName)
strTableName
- The name of the tracked table.strAsset
- The asset to get the results for.nVersion
- The version number of the edits.listName
- The name of the list to store the results.IList RTRetrieveRevision(String strTableName, String strAsset, String strVersion, String listName)
strTableName
- The name of the tracked table.strAsset
- The asset to get the results for.strVersion
- The version number of the edits.listName
- The name of the list that stores the results.boolean RegisterList(String listname, IList ilist)
listname
- list name to present to XML side for processing;ilist
- list to register, setting to null unregisters an existing list.int RTRollback(String sTable, String sAsset, int nVersion)
sTable
- Name of the table containing row to revert to a previous version.sAsset
- Value of the primary key for the row to revert to a previous version.nVersion
- Version to make current.int RTRollback(String sTable, String sAsset, String strVersion)
sTable
- Name of the table containing row to revert to a previous version.sAsset
- Value of the primary key for the row to revert to a previous version.strVersion
- Version to make current.int RTTrackTable(String sTable, String sStorage, int nVersions)
sTable
- Name of the table to track.sStorage
- Location to store revisions associated with a row in the table. This is the root folder. A folder will be automatically created under the given root folder whose name is the same as the catalog being trackednVersions
- Maximum number of versions to store for each row. When the maximum is reached, the oldest version is removed.int RTUntrackTable(String sTable)
sTable
- Name of the table to stop tracking.int RTUnlockRecord(String sTable, String sAsset)
sTable
- Name of the tracked table.sAsset
- Value of the primary key of the row to unlock.int RTDeleteRevision(String sTable, String sAsset, int nVersion)
sTable
- Name of the table containing row whose revision is to be deleted.sAsset
- Value of the primary key for the row whose revision is to be deleted.nVersion
- Version of the row to delete.int RTSetVersions(String sTable, int nVersions)
sTable
- Table to modify maximum number of versions.nVersions
- Maximum number of versions to store for each row. When the maximum is reached, the oldest version is removed. A value of 0 (zero) indicates an unbounded number of versions will be stored. If the value is smaller than the current number of versions on the table, those versions will remain and can be removed manually.int Mirror(Vector vILists, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
vILists
- Vector of IList objects to mirrorsTarget
- Target server name.sUsername
- Username to use on the remote server. May be null.sPassword
- Password to use on remote server. May be null.sCGIPrefix
- CGI prefix string. May be null to indicate that the remote server is the same type as the source.sTargetIniFile
- String property file to push to target server. May be null if no property filenPort
- int port to use for communication. 0 interpreted the default HTTP port (80)bUseProxy
- TRUE to use proxy server for connection. FALSE otherwise.bUseHTTPS
- TRUE to use secure communcation. FALSE otherwise.nHTTPVersion
- Version of HTTP protocol to be used to connect to remote server. Valid values are HTTPVERSION10 and HTTPVERSION11.sbOutput
- Output for return values; may contain error info. May be null.int Mirror(Vector vILists, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, String proxyserver, String proxyport, String proxyuser, String proxypassword, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
vILists
- Vector of IList objects to mirrorsTarget
- Target server name.sUsername
- Username to use on the remote server. May be null.sPassword
- Password to use on remote server. May be null.sCGIPrefix
- CGI prefix string. May be null to indicate that the remote server is the same type as the source.sTargetIniFile
- String property file to push to target server. May be null if no property filenPort
- int port to use for communication. 0 interpreted the default HTTP port (80)bUseProxy
- TRUE to use proxy server for connection. FALSE otherwise.proxyserver
- Proxy server, if anyproxyuser
- Proxy user, if anyproxypassword
- Proxy password, if anyproxyport
- Proxy server port, if anybUseHTTPS
- TRUE to use secure communcation. FALSE otherwise.nHTTPVersion
- Version of HTTP protocol to be used to connect to remote server. Valid values are HTTPVERSION10 and HTTPVERSION11.sbOutput
- Output for return values; may contain error info. May be null.int Mirror(IList list, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, String proxyserver, String proxyport, String proxyuser, String proxypassword, boolean bUseHTTPS, int nHTTPVersion, String tableToMirror, StringBuffer sbOutput)
list
- IList object to mirrorsTarget
- Target server name.sUsername
- Username to use on the remote server. May be null.sPassword
- Password to use on remote server. May be null.sCGIPrefix
- CGI prefix string. May be null to indicate that the remote server is the same type as the source.sTargetIniFile
- String property file to push to target server. May be null if no property filenPort
- int port to use for communication. 0 interpreted the default HTTP port (80)bUseProxy
- TRUE to use proxy server for connection. FALSE otherwise.bUseHTTPS
- TRUE to use secure communcation. FALSE otherwise.nHTTPVersion
- Version of HTTP protocol to be used to connect to remote server.proxyserver
- Proxy server, if anyproxyuser
- Proxy user, if anyproxypassword
- Proxy password, if anyproxyport
- Proxy server port, if any Valid values are HTTPVERSION10 and HTTPVERSION11.tableToMirror
- Table name from which the FSet was retrieved as a resultset.sbOutput
- Output for return values; may contain error info. May be null.int Mirror(Vector vILists, Vector vTreeList, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
vILists
- Vector of IList objects to mirrorvTreeList
- Vector of FTTreeNode objects to mirrorsTarget
- Target server name.sUsername
- Username to use on the remote server. May be null.sPassword
- Password to use on remote server. May be null.sCGIPrefix
- CGI prefix string. May be null to indicate that the remote server is the same type as the source.sTargetIniFile
- String property file to push to target server. May be null if no property filenPort
- int port to use for communication. 0 interpreted the default HTTP port (80)bUseProxy
- TRUE to use proxy server for connection. FALSE otherwise.bUseHTTPS
- TRUE to use secure communcation. FALSE otherwise.nHTTPVersion
- Version of HTTP protocol to be used to connect to remote server. Valid values are HTTPVERSION10 and HTTPVERSION11.sbOutput
- Output for return values; may contain error info. May be null.int Mirror(Vector vILists, Vector vTreeList, String sTarget, String sUsername, String sPassword, String sCGIPrefix, String sTargetIniFile, int nPort, boolean bUseProxy, String proxyserver, String proxyport, String proxyuser, String proxypassword, boolean bUseHTTPS, int nHTTPVersion, StringBuffer sbOutput)
vILists
- Vector of IList objects to mirrorvTreeList
- Vector of FTTreeNode objects to mirrorsTarget
- Target server name.sUsername
- Username to use on the remote server. May be null.sPassword
- Password to use on remote server. May be null.sCGIPrefix
- CGI prefix string. May be null to indicate that the remote server is the same type as the source.sTargetIniFile
- String property file to push to target server. May be null if no property filenPort
- int port to use for communication. 0 interpreted the default HTTP port (80)bUseProxy
- TRUE to use proxy server for connection. FALSE otherwise.proxyserver
- Proxy server, if anyproxyport
- Proxy server portproxyuser
- Proxy user, if anyproxypassword
- Proxy password, if anybUseHTTPS
- TRUE to use secure communcation. FALSE otherwise.nHTTPVersion
- Version of HTTP protocol to be used to connect to remote server. Valid values are HTTPVERSION10 and HTTPVERSION11.sbOutput
- Output for return values; may contain error info. May be null.ISyncHash GetSynchronizedHash(String name, boolean bCreate, int timeout, int size, boolean bAbsolute, boolean bClusterSync)
name
- String hashnamebCreate
- boolean create - if true and hash not found it is created using following params. Existing hash always returned if found.timeout
- timeout in minutessize
- size of entriesbAbsolute
- absolute timeout vs idlebClusterSync
- synchronize over clusterISyncHash GetSynchronizedHash(String name, boolean bCreate, int timeout, int size, boolean bAbsolute, boolean bClusterSync, Collection linked)
name
- String hashnamebCreate
- boolean create - if true and hash not found it is created using following params. Existing hash always returned if found.timeout
- timeout in minutessize
- size of entriesbAbsolute
- absolute timeout vs idlebClusterSync
- synchronize over clusterlinked
- Collection of caches that this ISyncHash is "linked" to. when these linked caches are cleared, this ISyncHash will also get cleared.boolean DeleteSynchronizedHash(String name)
name
- String nameboolean AppEvent(String name, String guid, String times, FTValList params)
name
- name to register event under; be cautious with characters used in event name, { is a bad idea.guid
- to invoke on event firetimes
- coded time string for event firing (see XML doc for details)params
- vallist of argument names/values; may be nullboolean EmailEvent(String name, String tolist, String times, String filespec)
name
- name to register event under; be cautious with characters used in event name, { is a bad idea.tolist
- user list to receive emailtimes
- coded time string for event firing (see XML doc for details)filespec
- file to send on event triggerboolean EmailEvent(String name, String tolist, String times, String filespec, String contenttype, String charset, FTValList attachments)
name
- name to register event under; be cautious with characters used in event name, { is a bad idea.tolist
- user list to receive emailtimes
- coded time string for event firing (see XML doc for details)filespec
- file to send on event triggercontenttype
- The content-type for the message. May be null to default to text/plaincharset
- The charset for the message. May be null if body contains only US-ASCII characters or contenttype contains charset.attachments
- Attachments to send with emailboolean DestroyEvent(String name)
name
- event nameboolean EnableEvent(String name)
name
- event nameboolean DisableEvent(String name)
name
- event nameIList ReadEvent(String sEvent, String sList)
sEvent
- event namesList
- list nameIList QueryEvents(String sNamePattern, String sType, Boolean bEnabled, String sList)
sNamePattern
- event name pattern (can contain one % wildcard) or null for allsType
- event type (1 for servlet request or 2 for email) or null for bothbEnabled
- Boolean true for enabled events, false for disabled events, or null for bothsList
- list name or null for system generated nameboolean SessionExists(String id)
id
- session id stringCOM.FutureTense.Interfaces.IJSPObject deployJSPFile(String sPath, String sZone, StringBuffer sbError)
sPath
- Path of the JSP file to deploysZone
- Name of the JSP zone to store the data (defaults to /) - this is a relative path within server doc root.sbError
- For return values; may contain error information.COM.FutureTense.Interfaces.IJSPObject deployJSPData(String sData, String sZone, StringBuffer sbError)
sData
- The JSP datasZone
- Name of the JSP zone to store the data (defaults to /) - this is a relative path within server doc root.sbError
- For return values; may contain error information.IServlet getIServlet()
void ThrowException()
boolean ioErrorThrown()
String genID(boolean bClusterSafe)
bClusterSafe
- true if the number should be cluster safe.String getURL(COM.FutureTense.Interfaces.IURLDefinition oIURLDefinition)
ICS.getURL(Definition,String)
instead. This method will be removed after Content Server 6.1oIURLDefinition
- object which defines the URLString getURL(Definition definition, String assembler)
definition
- Definition for the URI to generateassembler
- name for the assembler to be used to generate the URI, or null to use the default assembler for this installation of Content Server. Most cases will use null for this argument.String encode(String base, Map map, boolean bSession)
base
- String base of the URLmap
- Map key and value pairs for attributesbSession
- true to include session idvoid decode(String sAttributes, Map map)
sAttributes
- String attribute string of form k1=v1 and k2=v2map
- Map set of key/value pairs from the stringString diskFileName()
String diskFileName(String pname, FTValList arguments)
pname
- pagename, not null else returns null and sets errno to ftErrors.badparamsarguments
- optional name/value pairs for resargs (ie PageCriteria)String diskFileName(String pname, String arguments)
pname
- pagename, not null else returns null and sets errno to ftErrors.badparamsarguments
- optional URL components ie p1=v1 and p2=v2COM.FutureTense.ContentServer.PageData getPageData(String pagename)
pagename
- pagename to retrieveIllegalArgumentException
- if pagename is null or does not correspond to a valid pagename.boolean isCacheable(String pagename)
pagename
- pagename or null to indicate current page.ICS.DisableCache()
String pageURL()
String[] pageCriteriaKeys(String pagename)
pagename
- name of the pageString pageURL(String pname, FTValList arguments)
pname
- the name of the page whose key will be calculatedarguments
- the parameters passed into the page, that when filtered by PageCriteria and augmented as required, will result in the cach key.void DisableFragmentCache()
ICS.DisableCache()
Object StartBatchContext()
boolean CommitBatchedCommands(Object oBatchContext)
oBatchContext
- Object batch context objectboolean RollbackBatchedCommands(Object oBatchContext)
oBatchContext
- Object batch context objectboolean rsCacheDebug()
ftMessage.RESULT_SET_CACHE_DEBUG
boolean pgCacheDebug()
ftMessage.PAGE_CACHE_DEBUG
boolean pastramiDebug()
ftMessage.GENERIC_DEBUG
boolean xmlDebug()
ftMessage.XML_DEBUG
boolean syncDebug()
ftMessage.SYNC_DEBUG
boolean eventDebug()
ftMessage.EVENT_DEBUG
boolean systemDebug()
ftMessage.GENERIC_DEBUG
boolean dbDebug()
ftMessage.DB_DEBUG
boolean sessionDebug()
ftMessage.SESSION_DEBUG
boolean timeDebug()
ftMessage.TIME_DEBUG
boolean systemSession()
boolean BlobServer(FTValList args, OutputStream os)
args
- Map of blobserver argumentsos
- OutputStream to capture bytesboolean BlobServer(FTValList args, COM.FutureTense.Interfaces.IMIMENotifier im, OutputStream os)
args
- Map of blobserver argumentsim
- IMIMENotifier call back to set header informationos
- OutputStream to capture bytesString getLocaleString(String sName, String sLocale)
sName
- name of the stringsLocale
- locale of the string (i.e., EN_US)COM.FutureTense.Interfaces.PastramiEngine getPastramiEngine()
COM.FutureTense.Cache.Satellite getSatellite(String id)
id
- String satellite engine id as defined in the SystemSatelites tableObject getAttribute(String sName)
sName
- name of the attributeEnumeration getAttributeNames()
void removeAttribute(String sName)
sName
- name of the attributevoid setAttribute(String sName, Object oValue)
sName
- name of the attributeoValue
- value to setvoid close()
String getNamespace()
Principal getUserPrincipal()
COM.FutureTense.Interfaces.IProperties getIProperties()