com.irisel.oms.olapi
Class CLEnterpriseBrowser

java.lang.Object
  extended by com.irisel.oms.olapi.CLBrowserBase
      extended by com.irisel.oms.olapi.CLEnterpriseBrowser
All Implemented Interfaces:
CLBrowser
Direct Known Subclasses:
CLEJBBrowser, CLJaxWSBrowserImpl, CLRPCWSBrowserImpl

public abstract class CLEnterpriseBrowser
extends CLBrowserBase
implements CLBrowser


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.irisel.oms.olapi.CLBrowser
CLBrowser.AuthState
 
Field Summary
 
Fields inherited from interface com.irisel.oms.olapi.CLBrowser
CONFIG_FILE, KEY_APP_PASS, KEY_APP_USER, KEY_DB_DATABASE, KEY_DB_PASS, KEY_DB_PORT, KEY_DB_SCHEMA, KEY_DB_SERV, KEY_DB_TYPE, KEY_DB_USER, KEY_OL_SCH_FILE
 
Constructor Summary
CLEnterpriseBrowser()
           
CLEnterpriseBrowser(Credentials creds)
           
 
Method Summary
 long create(Instance i)
           
 java.lang.Long createDescriptionId()
           
 int delete(Instance i)
           
 boolean doRefresh()
           
 boolean doRefresh(boolean fullRefresh)
           
 DataInstanceSet executeQuery(SelectQuery q, boolean formattedValues)
           
 DataInstanceSet executeQuery(java.lang.String classname, SelectQuery q)
          "@deprecated
 InstanceSet executeText(java.lang.String sqltext)
          Executes any SQL command, use when data results are expected.
 void executeTextNoReturn(java.lang.String text)
          Executes any SQL command, use when no results are expected.
 void exit()
           
 java.lang.Class findClass(java.lang.String classname)
          Returns the class from the classloader If class not found, download from server and update classloader.
 AppVO getApp()
           
 java.lang.String getBytecode(java.lang.String classname)
           
 ClassVO getClass(java.lang.String classname)
           
 DescriptionVO getDescriptionVO(long descId)
           
 DescriptionVO getDescriptionVO(java.lang.String domain, java.lang.String name)
           
 DescriptionVO getDescriptionVOFromDB(long descId, java.lang.String lang)
           
 DescriptionVO getDescriptionVOFromDB(java.lang.String domain, java.lang.String name, java.lang.String lang)
           
 long getPrimaryKeys(java.lang.String type, java.lang.String classname, java.lang.Integer num)
           
 PropertyVO getProperty(java.lang.String classname, java.lang.String propertyname)
           
 java.lang.String getSchema()
           
 java.lang.String getSerial()
           
 long getVersion()
           
 void impersonate(java.lang.String user, java.lang.String pass)
           
 void saveAppVO(AppVO newAppVO)
           
 DescriptionVO saveDescriptionVO(DescriptionVO descvo, java.lang.Long descId, java.lang.String domain, java.lang.String name, java.lang.String description, java.lang.String shortDescription, java.lang.String comments)
          Sends the DescriptionVO to the server, which updates its AppVO accordingly and returns the DescriptionVO so that 'this' browser can also refresh the DescVO[] This method must be implemented differently in 2-tier / 3-tier so it is declared abstract This method is used by createDescriptionVO, which updates the local model (AppVO)
 DescriptionVO saveDescriptionVO(DescriptionVO descvo, java.lang.String lang, java.lang.Long descId, java.lang.String domain, java.lang.String name, java.lang.String description, java.lang.String shortDescription, java.lang.String comments)
           
 int saveFile(java.lang.String filename, java.lang.String scontent, ClassVO classvo, Instance instance)
           
 java.lang.String toString()
           
 int update(Instance i)
           
 
Methods inherited from class com.irisel.oms.olapi.CLBrowserBase
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, flushPrivileges, getAppOld, getAuthType, getClass, getConfigItems, getConfigItemValue, getConfigItemValue, getDatabaseName, getDbType, getDBTypes, getDefaultRole, getDescriptionVO, getDescriptionVOFromDB, getIcon, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceCount, getInstances, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSetValidStatus, getInstanceSetValidStatus, getListById, getListByName, getListByParent, getLists, getMode, getPass, getPerfStats, getPort, getRelation, getRelation, getResourceBytes, getSelectedListVO, getServer, getUser, getUserRecord, grantExecOnFunction, initApp, isEnableFilterInactiveStates, logPerformance, newInstance, resetUserPassword, saveAppVO, saveList, setAutomaticFields, setConfigItemValue, setDatabaseName, setDbType, setDescription, setDescription, setDescription, setEnableFilterInactiveStates, setMode, setPass, setPort, setSchema, setServer, setUser, unlockAccount, updateDescriptionVO, updateModelVersion, validate, verifyMandatory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.irisel.oms.olapi.CLBrowser
authenticate, changePassword, createDescriptionVO, createDescriptionVO, createDescriptionVO, createDescriptionVO, doRefresh, echo, executeQuery, getAuthType, getClass, getConfigItems, getConfigItemValue, getConfigItemValue, getDatabaseName, getDbType, getDBTypes, getDefaultRole, getDescriptionVO, getDescriptionVOFromDB, getIcon, getInstance, getInstance, getInstance, getInstance, getInstance, getInstanceCount, getInstances, getInstanceSet, getInstanceSet, getInstanceSet, getInstanceSetValidStatus, getInstanceSetValidStatus, getListById, getListByName, getListByParent, getLists, getMode, getPerfStats, getPort, getRelation, getRelation, getResourceBytes, getSelectedListVO, getServer, isEnableFilterInactiveStates, newInstance, resetUserPassword, saveAppVO, saveList, setAutomaticFields, setDatabaseName, setDbType, setDescription, setDescription, setDescription, setEnableFilterInactiveStates, setPort, setSchema, setServer, unlockAccount, updateDescriptionVO, updateModelVersion, validate, verifyMandatory
 

Constructor Detail

CLEnterpriseBrowser

public CLEnterpriseBrowser()
                    throws java.lang.Exception
Throws:
java.lang.Exception

CLEnterpriseBrowser

public CLEnterpriseBrowser(Credentials creds)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getVersion

public long getVersion()
                throws java.rmi.RemoteException,
                       java.sql.SQLException,
                       QueryTreeException
Specified by:
getVersion in interface CLBrowser
Throws:
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException

doRefresh

public boolean doRefresh()
                  throws java.rmi.RemoteException,
                         java.sql.SQLException,
                         QueryTreeException
Specified by:
doRefresh in interface CLBrowser
Specified by:
doRefresh in class CLBrowserBase
Throws:
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException

doRefresh

public boolean doRefresh(boolean fullRefresh)
                  throws java.rmi.RemoteException,
                         java.sql.SQLException,
                         QueryTreeException
Specified by:
doRefresh in interface CLBrowser
Throws:
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException

getClass

public ClassVO getClass(java.lang.String classname)
Specified by:
getClass in interface CLBrowser
Overrides:
getClass in class CLBrowserBase

getBytecode

public java.lang.String getBytecode(java.lang.String classname)
                             throws java.rmi.RemoteException
Specified by:
getBytecode in interface CLBrowser
Throws:
java.rmi.RemoteException

getProperty

public PropertyVO getProperty(java.lang.String classname,
                              java.lang.String propertyname)
Specified by:
getProperty in interface CLBrowser
Overrides:
getProperty in class CLBrowserBase

toString

public java.lang.String toString()
Overrides:
toString in class CLBrowserBase

create

public long create(Instance i)
            throws java.rmi.RemoteException
Specified by:
create in interface CLBrowser
Specified by:
create in class CLBrowserBase
Throws:
java.rmi.RemoteException

delete

public int delete(Instance i)
           throws java.rmi.RemoteException
Specified by:
delete in interface CLBrowser
Throws:
java.rmi.RemoteException

update

public int update(Instance i)
           throws java.rmi.RemoteException
Specified by:
update in interface CLBrowser
Specified by:
update in class CLBrowserBase
Throws:
java.rmi.RemoteException

executeQuery

public DataInstanceSet executeQuery(java.lang.String classname,
                                    SelectQuery q)
                             throws java.rmi.RemoteException
Description copied from interface: CLBrowser
"@deprecated

Specified by:
executeQuery in interface CLBrowser
Specified by:
executeQuery in class CLBrowserBase
Throws:
java.rmi.RemoteException

executeQuery

public DataInstanceSet executeQuery(SelectQuery q,
                                    boolean formattedValues)
                             throws java.sql.SQLException,
                                    java.rmi.RemoteException
Specified by:
executeQuery in interface CLBrowser
Throws:
java.sql.SQLException
java.rmi.RemoteException

executeText

public InstanceSet executeText(java.lang.String sqltext)
                        throws java.rmi.RemoteException
Description copied from interface: CLBrowser
Executes any SQL command, use when data results are expected.

Specified by:
executeText in interface CLBrowser
Parameters:
sqltext - is the sql command
Throws:
java.rmi.RemoteException

saveAppVO

public void saveAppVO(AppVO newAppVO)
               throws java.rmi.RemoteException
Specified by:
saveAppVO in interface CLBrowser
Specified by:
saveAppVO in class CLBrowserBase
Throws:
java.rmi.RemoteException

saveDescriptionVO

public DescriptionVO saveDescriptionVO(DescriptionVO descvo,
                                       java.lang.String lang,
                                       java.lang.Long descId,
                                       java.lang.String domain,
                                       java.lang.String name,
                                       java.lang.String description,
                                       java.lang.String shortDescription,
                                       java.lang.String comments)
                                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

saveDescriptionVO

public DescriptionVO saveDescriptionVO(DescriptionVO descvo,
                                       java.lang.Long descId,
                                       java.lang.String domain,
                                       java.lang.String name,
                                       java.lang.String description,
                                       java.lang.String shortDescription,
                                       java.lang.String comments)
                                throws java.rmi.RemoteException
Description copied from class: CLBrowserBase
Sends the DescriptionVO to the server, which updates its AppVO accordingly and returns the DescriptionVO so that 'this' browser can also refresh the DescVO[] This method must be implemented differently in 2-tier / 3-tier so it is declared abstract This method is used by createDescriptionVO, which updates the local model (AppVO)

Throws:
java.rmi.RemoteException

getPrimaryKeys

public long getPrimaryKeys(java.lang.String type,
                           java.lang.String classname,
                           java.lang.Integer num)
                    throws java.sql.SQLException,
                           java.rmi.RemoteException
Specified by:
getPrimaryKeys in interface CLBrowser
Specified by:
getPrimaryKeys in class CLBrowserBase
Throws:
java.sql.SQLException
java.rmi.RemoteException

impersonate

public void impersonate(java.lang.String user,
                        java.lang.String pass)
                 throws AuthenticationException,
                        java.rmi.RemoteException,
                        QueryTreeException,
                        java.sql.SQLException
Specified by:
impersonate in interface CLBrowser
Specified by:
impersonate in class CLBrowserBase
Throws:
AuthenticationException
java.rmi.RemoteException
QueryTreeException
java.sql.SQLException

exit

public void exit()

saveFile

public int saveFile(java.lang.String filename,
                    java.lang.String scontent,
                    ClassVO classvo,
                    Instance instance)
             throws QuerySaveException,
                    java.sql.SQLException,
                    java.rmi.RemoteException,
                    java.io.IOException
Specified by:
saveFile in interface CLBrowser
Throws:
QuerySaveException
java.sql.SQLException
java.rmi.RemoteException
java.io.IOException

findClass

public java.lang.Class findClass(java.lang.String classname)
Returns the class from the classloader If class not found, download from server and update classloader.

Specified by:
findClass in interface CLBrowser

getApp

public AppVO getApp()
Specified by:
getApp in interface CLBrowser
Specified by:
getApp in class CLBrowserBase

createDescriptionId

public java.lang.Long createDescriptionId()
                                   throws java.sql.SQLException,
                                          java.rmi.RemoteException
Specified by:
createDescriptionId in interface CLBrowser
Throws:
java.sql.SQLException
java.rmi.RemoteException

executeTextNoReturn

public void executeTextNoReturn(java.lang.String text)
                         throws java.sql.SQLException,
                                java.rmi.RemoteException
Description copied from interface: CLBrowser
Executes any SQL command, use when no results are expected.

Specified by:
executeTextNoReturn in interface CLBrowser
Parameters:
text - is the sql command
Throws:
java.sql.SQLException
java.rmi.RemoteException

getDescriptionVO

public DescriptionVO getDescriptionVO(long descId)
                               throws java.rmi.RemoteException
Specified by:
getDescriptionVO in interface CLBrowser
Throws:
java.rmi.RemoteException

getDescriptionVOFromDB

public DescriptionVO getDescriptionVOFromDB(long descId,
                                            java.lang.String lang)
                                     throws java.rmi.RemoteException
Specified by:
getDescriptionVOFromDB in interface CLBrowser
Throws:
java.rmi.RemoteException

getDescriptionVO

public DescriptionVO getDescriptionVO(java.lang.String domain,
                                      java.lang.String name)
                               throws java.rmi.RemoteException
Specified by:
getDescriptionVO in interface CLBrowser
Throws:
java.rmi.RemoteException

getDescriptionVOFromDB

public DescriptionVO getDescriptionVOFromDB(java.lang.String domain,
                                            java.lang.String name,
                                            java.lang.String lang)
                                     throws java.rmi.RemoteException
Specified by:
getDescriptionVOFromDB in interface CLBrowser
Throws:
java.rmi.RemoteException

getSchema

public java.lang.String getSchema()
                           throws java.rmi.RemoteException
Specified by:
getSchema in interface CLBrowser
Throws:
java.rmi.RemoteException

getSerial

public java.lang.String getSerial()
Specified by:
getSerial in interface CLBrowser