public abstract class CLBrowserBase extends java.lang.Object implements CLBrowser
CLBrowser, CLBrowserImpl, CLGuiomBrowser, CLEnterpriseBrowser, CLEJBBrowser, CLWSBrowserImpl
CLBrowser.AuthState
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 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, wait
createDescriptionId, delete, doRefresh, executeQuery, executeText, executeTextNoReturn, findClass, getBytecode, getDescriptionBlock, getDescriptionBlock, getDescriptionVO, getDescriptionVO, getDescriptionVOFromDB, getDescriptionVOFromDB, getSchema, getSerial, getVersion, saveFile
public com.irisel.oms.olapi.CLBrowserBase.PerfStats getPerfStats()
getPerfStats
in interface CLBrowser
public 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 CLBrowser
AuthenticationException
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
AuthenticationException
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
AuthenticationException
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
java.rmi.RemoteException
java.sql.SQLException
AuthenticationException
public 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 CLBrowser
java.sql.SQLException
java.rmi.RemoteException
DataException
public 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 CLBrowser
java.rmi.RemoteException
public DescriptionVO createDescriptionVO(java.lang.String domain, java.lang.String name) throws java.rmi.RemoteException
createDescriptionVO
in interface CLBrowser
java.rmi.RemoteException
public DescriptionVO createDescriptionVO(java.lang.String domain, java.lang.String name, java.lang.String description) throws java.rmi.RemoteException
createDescriptionVO
in interface CLBrowser
java.rmi.RemoteException
public 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 CLBrowser
java.rmi.RemoteException
public 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 CLBrowser
java.rmi.RemoteException
public void setDescription(ClassVO c, DescriptionVO v) throws java.rmi.RemoteException, java.sql.SQLException, DataException
setDescription
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
DataException
public void setDescription(RelationVO relvo, DescriptionVO descvo, boolean direct) throws java.rmi.RemoteException, java.sql.SQLException, DataException
setDescription
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
DataException
public void setDescription(PropertyVO p, DescriptionVO v) throws java.rmi.RemoteException, java.sql.SQLException, DataException
setDescription
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
DataException
public abstract boolean doRefresh() throws java.sql.SQLException, java.rmi.RemoteException, QueryTreeException, ConnectionException, DataModelException
doRefresh
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
QueryTreeException
ConnectionException
DataModelException
public boolean doRefresh(java.lang.Boolean b) throws java.sql.SQLException, java.rmi.RemoteException, QueryTreeException, ConnectionException, DataModelException
doRefresh
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
QueryTreeException
ConnectionException
DataModelException
public abstract DataInstanceSet executeQuery(java.lang.String classname, SelectQuery q) throws java.sql.SQLException, java.rmi.RemoteException
CLBrowser
executeQuery
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public DataInstanceSet executeQuery(SelectQuery q, java.lang.Boolean formattedValues) throws java.sql.SQLException, java.rmi.RemoteException
executeQuery
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException
public 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 CLBrowser
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException
public java.lang.String getConfigItemValue(java.lang.String configSet, java.lang.String configItem) throws java.rmi.RemoteException, java.sql.SQLException, QueryTreeException
getConfigItemValue
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException
public 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 CLBrowser
java.rmi.RemoteException
java.sql.SQLException
QueryTreeException
public void setConfigItemValue(java.lang.String config_set, java.lang.String config_item, java.lang.Object value)
public java.lang.String getDatabaseName()
getDatabaseName
in interface CLBrowser
public java.lang.String[] getDBTypes() throws ConfigException
getDBTypes
in interface CLBrowser
ConfigException
public RoleVO getDefaultRole()
getDefaultRole
in interface CLBrowser
public 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 CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public Instance getInstance(java.lang.String classname, java.lang.String filter, java.lang.String value) throws java.sql.SQLException, java.rmi.RemoteException
getInstance
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
classname
- filter
- operator
- value
- bValidStatus
- - Filter negative and null status, if truejava.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public InstanceSet getInstanceSet(long classid, java.lang.String filter, java.lang.String value) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSet
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public InstanceSet getInstanceSet(java.lang.String classname, java.lang.String filter, java.lang.String value) throws java.sql.SQLException, java.rmi.RemoteException
getInstanceSet
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public 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 CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public InstanceSet getInstances(java.lang.String string) throws java.rmi.RemoteException, java.sql.SQLException
getInstances
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
public Instance getInstance(Instance i) throws java.rmi.RemoteException, java.sql.SQLException
getInstance
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
public Instance getInstance(long classid, long oid) throws java.rmi.RemoteException, java.sql.SQLException
getInstance
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
public Instance getInstance(java.lang.String classname, long oid) throws java.rmi.RemoteException, java.sql.SQLException
getInstance
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
public 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 CLBrowser
java.rmi.RemoteException
java.sql.SQLException
public ListVO getListById(long listId) throws ListNotFoundException
getListById
in interface CLBrowser
ListNotFoundException
public ListVO getListByName(java.lang.String listName) throws ListNotFoundException
getListByName
in interface CLBrowser
ListNotFoundException
public ListVO getListByParent(ListElmVO listElmVO)
getListByParent
in interface CLBrowser
public 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 CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public PropertyVO getProperty(java.lang.String classname, java.lang.String propertyname)
getProperty
in interface CLBrowser
public RelationVO getRelation(java.lang.String relname)
getRelation
in interface CLBrowser
public RelationVO getRelation(ClassVO clsvo, PropertyVO propvo)
getRelation
in interface CLBrowser
public 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 CLBrowser
AuthenticationException
java.rmi.RemoteException
QueryTreeException
DataModelException
ConnectionException
java.sql.SQLException
public void initApp() throws java.rmi.RemoteException, QueryTreeException, ConnectionException, DataModelException
java.rmi.RemoteException
QueryTreeException
ConnectionException
DataModelException
public void saveAppVO() throws SchemaUpdateException, DataModelException, java.rmi.RemoteException
saveAppVO
in interface CLBrowser
SchemaUpdateException
DataModelException
java.rmi.RemoteException
public abstract void saveAppVO(AppVO newAppVO) throws DataModelException, java.rmi.RemoteException, SchemaUpdateException
saveAppVO
in interface CLBrowser
DataModelException
java.rmi.RemoteException
SchemaUpdateException
public boolean saveList(ListVO listvo) throws java.rmi.RemoteException, java.sql.SQLException, DataException, QuerySaveException
saveList
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
DataException
QuerySaveException
public void setDatabaseName(java.lang.String dbname)
setDatabaseName
in interface CLBrowser
public 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.Object
public abstract int update(Instance i) throws java.sql.SQLException, java.rmi.RemoteException, DataException
update
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
DataException
public int updateModelVersion() throws java.sql.SQLException, QueryTreeException, QuerySaveException, java.rmi.RemoteException, DataModelException, ConnectionException
updateModelVersion
in interface CLBrowser
java.sql.SQLException
QueryTreeException
QuerySaveException
java.rmi.RemoteException
DataModelException
ConnectionException
@Deprecated public int verifyMandatory(Instance inst) throws DataModelException
verifyMandatory
in interface CLBrowser
DataModelException
public Instance newInstance(java.lang.String classname)
newInstance
in interface CLBrowser
public ListVO getSelectedListVO(Instance inst, int col) throws ListNotFoundException
getSelectedListVO
in interface CLBrowser
inst
- is a data instance (record from db)col
- is the column number (starting from 0)ListNotFoundException
public byte[] getResourceBytes(java.lang.String uri)
getResourceBytes
in interface CLBrowser
public DescriptionVO getDescriptionVO(java.lang.Long descId) throws java.rmi.RemoteException
getDescriptionVO
in interface CLBrowser
java.rmi.RemoteException
public DescriptionVO getDescriptionVOFromDB(java.lang.Long id, java.lang.String lang) throws java.sql.SQLException, java.rmi.RemoteException
getDescriptionVOFromDB
in interface CLBrowser
java.sql.SQLException
java.rmi.RemoteException
public InstanceSet getDescriptionBlock(java.lang.Long descId, java.lang.String lang) throws java.rmi.RemoteException, java.sql.SQLException
getDescriptionBlock
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
public InstanceSet getDescriptionBlock(java.lang.Long descId) throws java.rmi.RemoteException, java.sql.SQLException
getDescriptionBlock
in interface CLBrowser
java.rmi.RemoteException
java.sql.SQLException
public void setAutomaticFields(Instance instance)
setAutomaticFields
in interface CLBrowser
public boolean isEnableFilterInactiveStates()
isEnableFilterInactiveStates
in interface CLBrowser
public void setEnableFilterInactiveStates(boolean enableFilterInactiveStates)
setEnableFilterInactiveStates
in interface CLBrowser
public void setDbType(java.lang.String dbType)
public void setCountry(java.lang.String country)
setCountry
in interface CLBrowser
public java.lang.String getCountry()
getCountry
in interface CLBrowser