Home | Oracle ECM Home Page  | Oracle ECM Documentation  | Oracle ECM Downloads  | Oracle ECM Forums  | Yahoo Intradoc Users Group Feed your aggregator (RSS 2.0)  
  Oracle Fusion ECM Blog. Are you "kuh n-tent" with your "kon-tent"?
 
 
# Monday, August 11, 2008

Perhaps the context is Site Studio. Perhaps the context is a JSP (Java Server Page) checked into Content Server. Regardless, you will eventually begin to wonder "What is this ServerBean thing?" and "What can I do with it?" I often get asked about the existence of documentation on ServerBean, and it has recently been pointed out to me that this is covered in Bex Huff's book The Definitive Guide to Stellent Content Server Development (which is pretty darn good, so get it if you don't have it).

That said, there is some information I can present here about the ServerBean class starting with the signatures of the public methods. I've sprinkled sparse notes among the methods that may or may not be of use. The simplest description of ServerBean is a shortcut class for performing actions like manipulating the local data, executing services, reading enviornment variables and executing IdocScript.

class ServerBean
{
    // Constructor
    // NOTE: A single, no argument constructor is supplied and you must use the init method to initialize
    ServerBean()

    // After the constructor you must initialize with this method
    void init(ServletRequest servletrequest)

    // Remaining Methods ///////////////////////////////////////////////////////////////////////
    void addOptionList(String s, Vector v)
    void addResultSet(String s, ServerResultSet serverresultset)

    // Remaining methods in alphabetical order
    String evalIdcScp(String s) throws ContentServerException

    // If the flag is true it means you have already wrapped the String in <$$> offsets
    String evalIdcScp(String s, boolean flag)throws ContentServerException
    String evalResInc(String s) throws ContentServerException

    // This is the long hand version of evalIdcScp, just use evalIdcScp to save some processing
    String evaluateIdocScript(String s)throws ContentServerException
    String evaluateResourceInclude(String s) throws ContentServerException
    void executeService()throws ContentServerException
    Object getCachedObject(String s)
    ServerResultSet getCurrentActiveResultSet()
    Properties getEnvironment()
    String getEnvironmentValue(String s)
    String getLocal(String s)
    Properties getLocalData()
    Vector getOptionList(String s)
    Enumeration getOptionLists()
    ServerResultSet getResultSet(String s)
    Enumeration getResultSetList()
    void parseExecuteService(String s) throws ContentServerException
    void parseExecuteService(String s, char c, char c1)throws ContentServerException
    void putLocal(String s, String s1)
    void removeLocal(String s)
    ServerResultSet removeResultSet(String s)
    void setCachedObject(String s, Object obj)
    void setEnvironment(Properties p)
    void setEnvironmentValue(String s, String s1)
    void setLocalData(Properties p)
}
Monday, August 11, 2008 9:49:04 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle WCM  | 
Comments are closed.
Copyright © 2008 Jason Stortz. All rights reserved.