Style Intelligence v12.0

inetsoft.uql.service
Class RemoteDataSourceRegistry

java.lang.Object
  extended by inetsoft.uql.service.DataSourceRegistry
      extended by inetsoft.uql.service.RemoteDataSourceRegistry

public class RemoteDataSourceRegistry
extends DataSourceRegistry

Data source registry stores information about all data sources. The data comes from remote server.


Field Summary
 
Fields inherited from class inetsoft.uql.service.DataSourceRegistry
changeListener, DATASOURCE, DATASOURCEFOLDER, ts
 
Constructor Summary
protected RemoteDataSourceRegistry()
          Constructor.
 
Method Summary
 boolean checkPermission(String resource, char access)
           
protected  void heartbeat()
          Do a heartbeat to synchronize data.
protected  void init(boolean event)
          Initialize data sources.
 void refresh(boolean event)
          Refresh data source registry.
 void removeDataSource(String dxname)
          Remove a data source from the repository.
 void removeDomain(String datasource)
          Remove a domain object from the repository.
 void renameDatasource(String oname, String nname)
          Data source renamed, sync data model and domain.
 void renameDataSourceFolder(String oname, String nname)
          Data source folder renamed, sync its subfolders and sub datasources.
 void save()
          Save the registry information to the registry XML file.
 void setDataSource(XDataSource dx, String oname, Boolean actionRecord)
          Add or replace a data source in the repository.
 void setDomain(XDomain dx)
          Add a domain object to the repository.
protected  void teardown()
          Tear down data source registry.
 
Methods inherited from class inetsoft.uql.service.DataSourceRegistry
addModifiedListener, addRefreshedListener, clear, clearCache, containDatasource, containDataSourceFolder, containObject, fireEvent, fireModifiedEvent, getAttributes, getDataModel, getDataSource, getDataSourceFolder, getDataSourceFolderFullNames, getDataSourceFolderNames, getDataSourceFullNames, getDataSourceNames, getDomain, getExtendedLogicalModelNames, getExtendedPartitionNames, getKey, getObject, getRegistry, getSubDataSourceNames, getSubfolderNames, isLoaded, lastModified, load, load, parseDataSourceFolder, parseDomain, parseXDataSource, parseXDataSource2, refresh, removeAllDataSources, removeDataModel, removeDataSourceFolder, removeModifiedListener, removeObjects, removeRefreshedListener, save, save, setDataModel, setDataSource, setDataSourceFolder, setObject, updateDataSource, updateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteDataSourceRegistry

protected RemoteDataSourceRegistry()
                            throws Exception
Constructor.

Throws:
Exception
Method Detail

init

protected void init(boolean event)
Initialize data sources.

Overrides:
init in class DataSourceRegistry
Parameters:
event - true if should fire event when resource changes.

refresh

public void refresh(boolean event)
Refresh data source registry.

Overrides:
refresh in class DataSourceRegistry
Parameters:
event - true if should fire event when resource changes.

teardown

protected void teardown()
Tear down data source registry.

Overrides:
teardown in class DataSourceRegistry

heartbeat

protected void heartbeat()
Do a heartbeat to synchronize data.

Overrides:
heartbeat in class DataSourceRegistry

save

public void save()
Save the registry information to the registry XML file.

Overrides:
save in class DataSourceRegistry

checkPermission

public boolean checkPermission(String resource,
                               char access)
Overrides:
checkPermission in class DataSourceRegistry

removeDomain

public void removeDomain(String datasource)
Remove a domain object from the repository.

Overrides:
removeDomain in class DataSourceRegistry
Parameters:
datasource - the specified data source name.

setDomain

public void setDomain(XDomain dx)
Add a domain object to the repository.

Overrides:
setDomain in class DataSourceRegistry
Parameters:
dx - the specified domain object to add.

removeDataSource

public void removeDataSource(String dxname)
Remove a data source from the repository.

Overrides:
removeDataSource in class DataSourceRegistry
Parameters:
dxname - the specified data source name.

setDataSource

public void setDataSource(XDataSource dx,
                          String oname,
                          Boolean actionRecord)
Add or replace a data source in the repository.

Overrides:
setDataSource in class DataSourceRegistry
Parameters:
dx - the specified data source.
oname - only used in RempteDataSourceRegistry.
actionRecord - only used in RemoteDataSourceRegistry.

renameDatasource

public void renameDatasource(String oname,
                             String nname)
Data source renamed, sync data model and domain.

Overrides:
renameDatasource in class DataSourceRegistry

renameDataSourceFolder

public void renameDataSourceFolder(String oname,
                                   String nname)
Data source folder renamed, sync its subfolders and sub datasources.

Overrides:
renameDataSourceFolder in class DataSourceRegistry

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.