public abstract class CLBrowserBase extends java.lang.Object implements CLBrowser
CLBrowser, CLBrowserImpl, CLGuiomBrowser, CLEnterpriseBrowser, CLEJBBrowser, CLWSBrowserImplCLBrowser.AuthStateCONFIG_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 and Description |
|---|
CLBrowserBase() |
| Modifier and Type | Method and Description |
|---|---|
CLBrowser.AuthState |
authenticate(java.lang.String user,
java.lang.String pass) |
boolean |
changePassword(java.lang.String user,
java.lang.String pass,
java.lang.String newpass)
Used to reset own's password
Updates the internal tables and the database credentials
For system account, updates the encrypted password.
|
abstract long |
create(Instance i) |
DescriptionVO |
createDescriptionVO(java.lang.String lang,
long descId,
java.lang.String domain,
java.lang.String name,
java.lang.String description,
java.lang.String shortDescription,
java.lang.String comments) |
DescriptionVO |
createDescriptionVO(java.lang.String domain,
java.lang.String name) |
DescriptionVO |
createDescriptionVO(java.lang.String domain,
java.lang.String name,
java.lang.String description) |
DescriptionVO |
createDescriptionVO(java.lang.String domain,
java.lang.String name,
java.lang.String description,
java.lang.String shortDescription,
java.lang.String comments) |
abstract boolean |
doRefresh() |
boolean |
doRefresh(java.lang.Boolean b) |
java.lang.String |
echo(java.lang.String challenge) |
DataInstanceSet |
executeQuery(SelectQuery q,
java.lang.Boolean formattedValues) |
abstract DataInstanceSet |
executeQuery(java.lang.String classname,
SelectQuery q)
"@deprecated
|
void |
flushPrivileges() |
abstract AppVO |
getApp() |
abstract AppVO |
getApp(java.lang.String lang) |
AppVO |
getAppOld() |
java.lang.String |
getAuthType() |
ClassVO |
getClass(long classid) |
ClassVO |
getClass(java.lang.String classname) |
InstanceSet |
getConfigItems(java.lang.String configSet,
java.lang.String configItem) |
java.lang.String |
getConfigItemValue(java.lang.String configSet,
java.lang.String configItem) |
java.lang.String |
getConfigItemValue(java.lang.String configSet,
java.lang.String configItem,
java.lang.String defaultValue) |
java.lang.String |
getCountry() |
java.lang.String |
getDatabaseName() |
java.lang.String |
getDbType() |
java.lang.String[] |
getDBTypes() |
RoleVO |
getDefaultRole() |
InstanceSet |
getDescriptionBlock(java.lang.Long descId) |
InstanceSet |
getDescriptionBlock(java.lang.Long descId,
java.lang.String lang) |
DescriptionVO |
getDescriptionVO(java.lang.Long descId) |
DescriptionVO |
getDescriptionVOFromDB(java.lang.Long id,
java.lang.String lang) |
javax.swing.Icon |
getIcon(java.lang.String classname) |
Instance |
getInstance(Instance i) |
Instance |
getInstance(long classid,
long oid) |
Instance |
getInstance(long classid,
java.lang.String filter,
java.lang.String value) |
Instance |
getInstance(java.lang.String classname,
long oid) |
Instance |
getInstance(java.lang.String classname,
java.lang.String filter,
java.lang.String value)
Returns the record set from classname table/view where filter=value.
|
java.lang.Long |
getInstanceCount(java.lang.String classname,
java.lang.String filter,
int operator,
java.lang.String value) |
InstanceSet |
getInstances(java.lang.String string) |
InstanceSet |
getInstanceSet(long classid,
java.lang.String filter,
java.lang.String value) |
InstanceSet |
getInstanceSet(java.lang.String classname,
java.lang.String[] target,
java.lang.String filterProperty,
java.lang.String filterValue) |
InstanceSet |
getInstanceSet(java.lang.String classname,
java.lang.String filter,
int operator,
java.lang.Object value)
Selects instances by filter and with valid status (positive, not null)
|
InstanceSet |
getInstanceSet(java.lang.String classname,
java.lang.String filter,
java.lang.String value) |
InstanceSet |
getInstanceSetValidStatus(java.lang.String classname,
java.lang.String[] target,
java.lang.String filter,
int operator,
java.lang.Object value,
boolean bValidStatus)
Selects instances by filter and with valid status (positive, not null)
|
InstanceSet |
getInstanceSetValidStatus(java.lang.String classname,
java.lang.String filter,
int operator,
java.lang.Object value,
boolean bValidStatus) |
InstanceSet |
getInstanceSetValidStatus(java.lang.String classname,
java.lang.String filter,
java.lang.String value,
boolean bValidStatus) |
java.lang.String |
getLang() |
ListVO |
getListById(long listId) |
ListVO |
getListByName(java.lang.String listName) |
ListVO |
getListByParent(ListElmVO listElmVO) |
ListVO[] |
getLists() |
java.lang.String |
getMode() |
java.lang.String |
getPass() |
com.irisel.oms.olapi.CLBrowserBase.PerfStats |
getPerfStats() |
java.lang.String |
getPort() |
abstract long |
getPrimaryKeys(java.lang.String type,
java.lang.String classname,
java.lang.Integer num) |
PropertyVO |
getProperty(java.lang.String classname,
java.lang.String propertyname) |
RelationVO |
getRelation(ClassVO clsvo,
PropertyVO propvo) |
RelationVO |
getRelation(java.lang.String relname) |
byte[] |
getResourceBytes(java.lang.String uri) |
ListVO |
getSelectedListVO(Instance inst,
int col)
Returns the ListVO matching a property field of an instance record.
|
java.lang.String |
getServer() |
java.lang.String |
getUser() |
java.lang.String |
getUserRecord() |
void |
grantExecOnFunction(java.lang.String function,
java.lang.String user) |
abstract void |
impersonate(java.lang.String user,
java.lang.String pass) |
void |
initApp()
Initializes model.
|
boolean |
isEnableFilterInactiveStates() |
void |
logPerformance(java.lang.String operation,
long duration) |
Instance |
newInstance(java.lang.String classname) |
boolean |
resetUserPassword(java.lang.String adminuser,
java.lang.String adminpass,
java.lang.String user,
java.lang.String newpass)
Used to reset own's password
Updates the internal tables and the database credentials
For system account, updates the encrypted password.
|
void |
saveAppVO() |
abstract void |
saveAppVO(AppVO newAppVO) |
boolean |
saveList(ListVO listvo) |
void |
setAutomaticFields(Instance instance) |
void |
setConfigItemValue(java.lang.String config_set,
java.lang.String config_item,
java.lang.Object value) |
void |
setCountry(java.lang.String country) |
void |
setDatabaseName(java.lang.String dbname) |
void |
setDbType(java.lang.String dbType) |
void |
setDescription(ClassVO c,
DescriptionVO v) |
void |
setDescription(PropertyVO p,
DescriptionVO v) |
void |
setDescription(RelationVO relvo,
DescriptionVO descvo,
boolean direct) |
void |
setEnableFilterInactiveStates(boolean enableFilterInactiveStates) |
void |
setLang(java.lang.String lang) |
void |
setMode(java.lang.String mode) |
void |
setPass(java.lang.String pass) |
void |
setPort(java.lang.String port) |
void |
setSchema(java.lang.String schema) |
void |
setServer(java.lang.String server) |
void |
setUser(java.lang.String user) |
java.lang.String |
toString() |
boolean |
unlockAccount(java.lang.String adminuser,
java.lang.String adminpass,
java.lang.String user) |
abstract int |
update(Instance i) |
DescriptionVO |
updateDescriptionVO(DescriptionVO descvo,
java.lang.String domain,
java.lang.String name,
java.lang.String description,
java.lang.String shortDescription,
java.lang.String comments) |
int |
updateModelVersion() |
ValidationVO |
validate(Instance instance) |
int |
verifyMandatory(Instance inst)
Deprecated.
use validate() instead
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateDescriptionId, delete, doRefresh, executeQuery, executeText, executeTextNoReturn, findClass, getBytecode, getDescriptionBlock, getDescriptionBlock, getDescriptionVO, getDescriptionVO, getDescriptionVOFromDB, getDescriptionVOFromDB, getSchema, getSerial, getVersion, saveFilepublic com.irisel.oms.olapi.CLBrowserBase.PerfStats getPerfStats()
getPerfStats in interface CLBrowserpublic java.lang.String echo(java.lang.String challenge)
public void logPerformance(java.lang.String operation,
long duration)
public CLBrowser.AuthState authenticate(java.lang.String user, java.lang.String pass) throws AuthenticationException, java.sql.SQLException, java.rmi.RemoteException
authenticate in interface CLBrowserAuthenticationExceptionjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic boolean changePassword(java.lang.String user,
java.lang.String pass,
java.lang.String newpass)
throws AuthenticationException,
java.sql.SQLException,
java.rmi.RemoteException
changePassword in interface CLBrowserAuthenticationExceptionjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic boolean resetUserPassword(java.lang.String adminuser,
java.lang.String adminpass,
java.lang.String user,
java.lang.String newpass)
throws AuthenticationException,
java.sql.SQLException,
java.rmi.RemoteException
resetUserPassword in interface CLBrowserAuthenticationExceptionjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic boolean unlockAccount(java.lang.String adminuser,
java.lang.String adminpass,
java.lang.String user)
throws java.rmi.RemoteException,
java.sql.SQLException,
AuthenticationException
unlockAccount in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionAuthenticationExceptionpublic void grantExecOnFunction(java.lang.String function,
java.lang.String user)
public void flushPrivileges()
public abstract long create(Instance i) throws java.sql.SQLException, java.rmi.RemoteException, DataException
create in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionDataExceptionpublic ValidationVO validate(Instance instance)
public DescriptionVO updateDescriptionVO(DescriptionVO descvo, java.lang.String domain, java.lang.String name, java.lang.String description, java.lang.String shortDescription, java.lang.String comments) throws java.rmi.RemoteException
updateDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO createDescriptionVO(java.lang.String domain, java.lang.String name) throws java.rmi.RemoteException
createDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO createDescriptionVO(java.lang.String domain, java.lang.String name, java.lang.String description) throws java.rmi.RemoteException
createDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO createDescriptionVO(java.lang.String domain, java.lang.String name, java.lang.String description, java.lang.String shortDescription, java.lang.String comments) throws java.rmi.RemoteException
createDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO createDescriptionVO(java.lang.String 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
createDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic void setDescription(ClassVO c, DescriptionVO v) throws java.rmi.RemoteException, java.sql.SQLException, DataException
setDescription in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataExceptionpublic void setDescription(RelationVO relvo, DescriptionVO descvo, boolean direct) throws java.rmi.RemoteException, java.sql.SQLException, DataException
setDescription in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataExceptionpublic void setDescription(PropertyVO p, DescriptionVO v) throws java.rmi.RemoteException, java.sql.SQLException, DataException
setDescription in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataExceptionpublic abstract boolean doRefresh()
throws java.sql.SQLException,
java.rmi.RemoteException,
QueryTreeException,
ConnectionException,
DataModelException
doRefresh in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionQueryTreeExceptionConnectionExceptionDataModelExceptionpublic boolean doRefresh(java.lang.Boolean b)
throws java.sql.SQLException,
java.rmi.RemoteException,
QueryTreeException,
ConnectionException,
DataModelException
doRefresh in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionQueryTreeExceptionConnectionExceptionDataModelExceptionpublic abstract DataInstanceSet executeQuery(java.lang.String classname, SelectQuery q) throws java.sql.SQLException, java.rmi.RemoteException
CLBrowserexecuteQuery in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic DataInstanceSet executeQuery(SelectQuery q, java.lang.Boolean formattedValues) throws java.sql.SQLException, java.rmi.RemoteException
executeQuery in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic abstract AppVO getApp(java.lang.String lang)
public AppVO getAppOld() throws ConnectionException, DataModelException
public java.lang.String getAuthType()
throws java.rmi.RemoteException,
java.sql.SQLException,
QueryTreeException
getAuthType in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionQueryTreeExceptionpublic ClassVO getClass(java.lang.String classname)
public InstanceSet getConfigItems(java.lang.String configSet, java.lang.String configItem) throws java.rmi.RemoteException, java.sql.SQLException, QueryTreeException
getConfigItems in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionQueryTreeExceptionpublic java.lang.String getConfigItemValue(java.lang.String configSet,
java.lang.String configItem)
throws java.rmi.RemoteException,
java.sql.SQLException,
QueryTreeException
getConfigItemValue in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionQueryTreeExceptionpublic java.lang.String getConfigItemValue(java.lang.String configSet,
java.lang.String configItem,
java.lang.String defaultValue)
throws java.rmi.RemoteException,
java.sql.SQLException,
QueryTreeException
getConfigItemValue in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionQueryTreeExceptionpublic void setConfigItemValue(java.lang.String config_set,
java.lang.String config_item,
java.lang.Object value)
public java.lang.String getDatabaseName()
getDatabaseName in interface CLBrowserpublic java.lang.String[] getDBTypes()
throws ConfigException
getDBTypes in interface CLBrowserConfigExceptionpublic RoleVO getDefaultRole()
getDefaultRole in interface CLBrowserpublic javax.swing.Icon getIcon(java.lang.String classname)
public Instance getInstance(long classid, java.lang.String filter, java.lang.String value) throws java.sql.SQLException, java.rmi.RemoteException
getInstance in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic Instance getInstance(java.lang.String classname, java.lang.String filter, java.lang.String value) throws java.sql.SQLException, java.rmi.RemoteException
getInstance in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstanceSetValidStatus(java.lang.String classname, java.lang.String[] target, java.lang.String filter, int operator, java.lang.Object value, boolean bValidStatus) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSetValidStatus in interface CLBrowserclassname - filter - operator - value - bValidStatus - - Filter negative and null status, if truejava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstanceSetValidStatus(java.lang.String classname, java.lang.String filter, int operator, java.lang.Object value, boolean bValidStatus) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSetValidStatus in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstanceSet(java.lang.String classname, java.lang.String filter, int operator, java.lang.Object value) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSet in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstanceSet(long classid, java.lang.String filter, java.lang.String value) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSet in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstanceSet(java.lang.String classname, java.lang.String[] target, java.lang.String filterProperty, java.lang.String filterValue) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSet in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstanceSet(java.lang.String classname, java.lang.String filter, java.lang.String value) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSet in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstanceSetValidStatus(java.lang.String classname, java.lang.String filter, java.lang.String value, boolean bValidStatus) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSetValidStatus in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getInstances(java.lang.String string) throws java.rmi.RemoteException, java.sql.SQLException
getInstances in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic Instance getInstance(Instance i) throws java.rmi.RemoteException, java.sql.SQLException
getInstance in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic Instance getInstance(long classid, long oid) throws java.rmi.RemoteException, java.sql.SQLException
getInstance in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic Instance getInstance(java.lang.String classname, long oid) throws java.rmi.RemoteException, java.sql.SQLException
getInstance in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic java.lang.Long getInstanceCount(java.lang.String classname,
java.lang.String filter,
int operator,
java.lang.String value)
throws java.rmi.RemoteException,
java.sql.SQLException
getInstanceCount in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic ListVO getListById(long listId) throws ListNotFoundException
getListById in interface CLBrowserListNotFoundExceptionpublic ListVO getListByName(java.lang.String listName) throws ListNotFoundException
getListByName in interface CLBrowserListNotFoundExceptionpublic ListVO getListByParent(ListElmVO listElmVO)
getListByParent in interface CLBrowserpublic java.lang.String getPass()
public abstract long getPrimaryKeys(java.lang.String type,
java.lang.String classname,
java.lang.Integer num)
throws java.sql.SQLException,
java.rmi.RemoteException
getPrimaryKeys in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic PropertyVO getProperty(java.lang.String classname, java.lang.String propertyname)
getProperty in interface CLBrowserpublic RelationVO getRelation(java.lang.String relname)
getRelation in interface CLBrowserpublic RelationVO getRelation(ClassVO clsvo, PropertyVO propvo)
getRelation in interface CLBrowserpublic java.lang.String getUser()
public java.lang.String getUserRecord()
public abstract void impersonate(java.lang.String user,
java.lang.String pass)
throws AuthenticationException,
java.rmi.RemoteException,
QueryTreeException,
DataModelException,
ConnectionException,
java.sql.SQLException
impersonate in interface CLBrowserAuthenticationExceptionjava.rmi.RemoteExceptionQueryTreeExceptionDataModelExceptionConnectionExceptionjava.sql.SQLExceptionpublic void initApp()
throws java.rmi.RemoteException,
QueryTreeException,
ConnectionException,
DataModelException
java.rmi.RemoteExceptionQueryTreeExceptionConnectionExceptionDataModelExceptionpublic void saveAppVO()
throws SchemaUpdateException,
DataModelException,
java.rmi.RemoteException
saveAppVO in interface CLBrowserSchemaUpdateExceptionDataModelExceptionjava.rmi.RemoteExceptionpublic abstract void saveAppVO(AppVO newAppVO) throws DataModelException, java.rmi.RemoteException, SchemaUpdateException
saveAppVO in interface CLBrowserDataModelExceptionjava.rmi.RemoteExceptionSchemaUpdateExceptionpublic boolean saveList(ListVO listvo) throws java.rmi.RemoteException, java.sql.SQLException, DataException, QuerySaveException
saveList in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionDataExceptionQuerySaveExceptionpublic void setDatabaseName(java.lang.String dbname)
setDatabaseName in interface CLBrowserpublic void setSchema(java.lang.String schema)
public void setMode(java.lang.String mode)
public void setPass(java.lang.String pass)
public void setServer(java.lang.String server)
public void setUser(java.lang.String user)
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract int update(Instance i) throws java.sql.SQLException, java.rmi.RemoteException, DataException
update in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionDataExceptionpublic int updateModelVersion()
throws java.sql.SQLException,
QueryTreeException,
QuerySaveException,
java.rmi.RemoteException,
DataModelException,
ConnectionException
updateModelVersion in interface CLBrowserjava.sql.SQLExceptionQueryTreeExceptionQuerySaveExceptionjava.rmi.RemoteExceptionDataModelExceptionConnectionException@Deprecated public int verifyMandatory(Instance inst) throws DataModelException
verifyMandatory in interface CLBrowserDataModelExceptionpublic Instance newInstance(java.lang.String classname)
newInstance in interface CLBrowserpublic ListVO getSelectedListVO(Instance inst, int col) throws ListNotFoundException
getSelectedListVO in interface CLBrowserinst - is a data instance (record from db)col - is the column number (starting from 0)ListNotFoundExceptionpublic byte[] getResourceBytes(java.lang.String uri)
getResourceBytes in interface CLBrowserpublic DescriptionVO getDescriptionVO(java.lang.Long descId) throws java.rmi.RemoteException
getDescriptionVO in interface CLBrowserjava.rmi.RemoteExceptionpublic DescriptionVO getDescriptionVOFromDB(java.lang.Long id, java.lang.String lang) throws java.sql.SQLException, java.rmi.RemoteException
getDescriptionVOFromDB in interface CLBrowserjava.sql.SQLExceptionjava.rmi.RemoteExceptionpublic InstanceSet getDescriptionBlock(java.lang.Long descId, java.lang.String lang) throws java.rmi.RemoteException, java.sql.SQLException
getDescriptionBlock in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic InstanceSet getDescriptionBlock(java.lang.Long descId) throws java.rmi.RemoteException, java.sql.SQLException
getDescriptionBlock in interface CLBrowserjava.rmi.RemoteExceptionjava.sql.SQLExceptionpublic void setAutomaticFields(Instance instance)
setAutomaticFields in interface CLBrowserpublic boolean isEnableFilterInactiveStates()
isEnableFilterInactiveStates in interface CLBrowserpublic void setEnableFilterInactiveStates(boolean enableFilterInactiveStates)
setEnableFilterInactiveStates in interface CLBrowserpublic void setDbType(java.lang.String dbType)
public void setCountry(java.lang.String country)
setCountry in interface CLBrowserpublic java.lang.String getCountry()
getCountry in interface CLBrowser