Style Intelligence v12.0

inetsoft.uql.asset
Class AbstractAssetEngine

java.lang.Object
  extended by inetsoft.uql.asset.AbstractAssetEngine
All Implemented Interfaces:
AssetRepository
Direct Known Subclasses:
RepletEngine, inetsoft.report.internal.StyleCore

public abstract class AbstractAssetEngine
extends Object
implements AssetRepository

Abstract asset engine, implements most methods defined in AssetRepository.


Nested Class Summary
protected  class AbstractAssetEngine.ReportSheetDependencyFinder
          Report sheet dependency finder finds report dependencies.
static class AbstractAssetEngine.SheetTransformListener
          Sheet transformer listener.
protected  class AbstractAssetEngine.StorageChangeListener
           
 
Field Summary
protected  boolean admin
           
protected  inetsoft.util.Catalog catalog
           
static boolean editing
           
protected  inetsoft.util.IndexedStorage istore
           
static ThreadLocal LOCAL
           
protected  WeakReference parent
           
protected  int[] scopes
           
 
Fields inherited from interface inetsoft.uql.asset.AssetRepository
ASSET_ERRORS, COMPONENT_SCOPE, GLOBAL_SCOPE, IGNORE_PERM, LOCAL_QUERY, QUERY_SCOPE, REPORT_SCOPE, REPORT_WORKSHEET, REPOSITORY_SCOPE, TEMPORARY_SCOPE, USER_SCOPE
 
Constructor Summary
protected AbstractAssetEngine()
          Constructor.
  AbstractAssetEngine(int[] scopes, inetsoft.util.IndexedStorage istore)
          Constructor.
 
Method Summary
 void addAssetChangeListener(AssetChangeListener listener)
          Adds a listener that is notified when this repository is modified.
 void addFolder(AssetEntry entry, Principal user)
          Add one folder.
 int addr()
          Get original hash code.
 void allowsFolderScopeChange(AssetEntry entry, int nscope, Principal user)
          Check if to change a folder scope is allowed.
 void allowsSheetScopeChange(AssetEntry entry, int nscope, Principal user)
          Check if to change a sheet scope is allowed.
 void changeFolder(AssetEntry oentry, AssetEntry nentry, Principal user, boolean force)
          Change one folder.
protected  void changeFolder0(AssetEntry oentry, inetsoft.util.IndexedStorage ostorage, AssetEntry nentry, inetsoft.util.IndexedStorage nstorage, boolean root)
          Change one folder internally.
 void changeSheet(AssetEntry oentry, AssetEntry nentry, Principal user, boolean force)
          Change one sheet.
protected  void changeSheet0(AssetEntry oentry, inetsoft.util.IndexedStorage ostorage, AssetEntry nentry, inetsoft.util.IndexedStorage nstorage)
          Change one sheet internally.
 void checkAssetPermission(Principal principal, AssetEntry entry, String permission)
          Check asset permission.
protected abstract  boolean checkDataSourceFolderPermission(String folder, Principal user)
          Check the datasource folder permission.
protected abstract  boolean checkDataSourcePermission(String dname, Principal user)
          Check the datasource permission.
protected  void checkDependencyValidity(AssetEntry from, AssetEntry to)
          Check the validity of a dependency from one asset entry to another aset entry.
 void checkFolderRemoveable(AssetEntry entry, Principal user)
          Check if folder is removeable.
 boolean checkPermission(Principal principal, String prefix, String resource, String permission)
          Check permission.
protected abstract  boolean checkQueryFolderPermission(String folder, String source, Principal user)
          Check the query folder permission.
protected abstract  boolean checkQueryPermission(String query, Principal user)
          Check the query permission.
 void clearCache(AssetEntry entry)
          Clear the cache for the entry.
 void clearVSBookmark(AssetEntry entry)
          Clear all the viewsheet bookmarks.
protected  void closeStorages()
          Close all the storages.
 boolean containsEntry(AssetEntry entry)
          Check if contains the specified asset entry.
protected abstract  AbstractAssetEngine.ReportSheetDependencyFinder createFinder()
          Create finder.
protected  AssetEntry createPhysicalEntry(XNode node, Principal user, XDataSource xds)
          Create a physical asset entry according to an xnode as metadata.
 void dispose()
          Dispose the asset repository.
protected  void finalize()
          Finalize the object.
protected  void fireEvent(int entryType, int changeType, AssetEntry assetEntry, String oldName)
          Notify all registered listeners that an asset entry has been modified.
protected  String getAssetPrefix(AssetEntry entry)
          Get the asset permission prefix.
protected  File getDependencyFile()
          Get the dependency file stores dependencies from the report sheets to the worksheets.
protected  String getDependencyFileKey()
          Get the dependency file stores dependencies from the report sheets to the sheets.
protected abstract  String getDependencyFileName()
          Get the dependency file stores dependencies from the report sheets to the sheets.
protected  inetsoft.report.gui.reportsheet.DesignView getDesignView()
          Get runtime design view.
 AssetEntry[] getEntries(AssetEntry entry, Principal user, String permission)
          Get the sub entries of a folder.
 AssetEntry[] getEntries(AssetEntry entry, Principal user, String permission, int selector)
          Get the sub entries of a folder.
 String getEntryIdentifier(AssetEntry entry)
          tomzhang bug1318530017384 Create a new identifier for local worksheet to avoid allmap key conflict maybe override by subclass
protected abstract  XTypeNode getOutputType(String qname, XQueryRepository rep, boolean local, Principal user)
          Get query output type.
 AssetRepository getParent()
          Get the parent of the engine.
protected  inetsoft.uql.asset.internal.AssetFolder getParentFolder(AssetEntry entry, inetsoft.util.IndexedStorage storage)
          Get the parent folder content of an asset(sheet/folder).
protected  AssetEntry[] getQueryEntries(AssetEntry entry, int selector, Principal user)
          Get the sub query entries of a folder.
protected  inetsoft.uql.util.XQuotaManager getQuotaManager()
          Get the quota manager.
protected abstract  ReportManager getReportManager(String user)
          Get the report manager.
 ReportEntry[] getReportSheetDependencies(AssetEntry entry, Principal user)
          Get the report sheets depend on a sheet.
 inetsoft.util.IndexedStorage getReportStorage(AssetEntry entry)
          Get report storage.
 Object getSession()
          Get the session object.
 AbstractSheet getSheet(AssetEntry entry, Principal user, boolean permission, AssetContent ctype)
          Get one sheet.
 AssetEntry[] getSheetDependencies(AssetEntry entry, Principal user)
          Get the sheets depend on a sheet.
protected  inetsoft.util.IndexedStorage getStorage(AbstractAssetEngine engine)
          Get the indexed storage of an asset engine.
 inetsoft.util.IndexedStorage getStorage(AssetEntry entry)
          Get the indexed storage of an asset entry.
protected  inetsoft.util.IndexedStorage[] getStorages()
          Get all the indexed storages require close.
 inetsoft.uql.viewsheet.VSBookmark getVSBookmark(AssetEntry entry, Principal user)
          Get the viewsheet bookmark.
 AssetEntry[] getWorksheetEntries(AssetEntry entry, Principal user, String permission, int selector)
          Get the worksheet entries of a folder.
protected  void initFinder()
          Initialize finder.
protected  boolean isEntryAvailable(AssetEntry entry)
           
 void removeAssetChangeListener(AssetChangeListener listener)
          Removes an asset change listener from the notification list.
 void removeFolder(AssetEntry entry, Principal user, boolean force)
          Remove one folder.
protected  void removeFolder0(AssetEntry entry, inetsoft.util.IndexedStorage storage)
          Remove one folder internally.
 void removeSheet(AssetEntry entry, Principal user, boolean force)
          Remove one sheet.
protected  void removeSheet0(AssetEntry entry, inetsoft.util.IndexedStorage storage)
          Remove one sheet internally.
 void removeUser(String name)
          Remove a user.
 void renameUser(String oname, String nname)
          Rename a user.
 void setParent(AssetRepository engine)
          Set the parent of the engine.
 void setSheet(AssetEntry entry, AbstractSheet sheet, Principal user, boolean force)
          Set one sheet.
 void setSheet(AssetEntry entry, AbstractSheet sheet, Principal user, boolean force, boolean checkDependency)
          Set one sheet.
 void setVSBookmark(AssetEntry entry, inetsoft.uql.viewsheet.VSBookmark bookmark, Principal user)
          Set the viewsheet bookmark.
 boolean supportsScope(int scope)
          Check if supports one scope.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface inetsoft.uql.asset.AssetRepository
getLocalQueryRepository
 

Field Detail

editing

public static boolean editing

LOCAL

public static ThreadLocal LOCAL

scopes

protected int[] scopes

istore

protected inetsoft.util.IndexedStorage istore

parent

protected WeakReference parent

catalog

protected inetsoft.util.Catalog catalog

admin

protected boolean admin
Constructor Detail

AbstractAssetEngine

protected AbstractAssetEngine()
Constructor.


AbstractAssetEngine

public AbstractAssetEngine(int[] scopes,
                           inetsoft.util.IndexedStorage istore)
                    throws Exception
Constructor.

Throws:
Exception
Method Detail

initFinder

protected void initFinder()
Initialize finder.


setParent

public void setParent(AssetRepository engine)
Set the parent of the engine.

Specified by:
setParent in interface AssetRepository
Parameters:
engine - the specified parent.

getParent

public AssetRepository getParent()
Get the parent of the engine.

Specified by:
getParent in interface AssetRepository
Returns:
the parent of the engine.

supportsScope

public boolean supportsScope(int scope)
                      throws Exception
Check if supports one scope.

Specified by:
supportsScope in interface AssetRepository
Parameters:
scope - the specified scope.
Returns:
true if supports, false otherwise.
Throws:
Exception

getEntries

public AssetEntry[] getEntries(AssetEntry entry,
                               Principal user,
                               String permission)
                        throws Exception
Get the sub entries of a folder.

Specified by:
getEntries in interface AssetRepository
Parameters:
entry - the specified folder entry.
user - the specified user.
permission - the specified access way.
Returns:
the sub entries of the folder, null if exception occurs.
Throws:
Exception

getEntries

public AssetEntry[] getEntries(AssetEntry entry,
                               Principal user,
                               String permission,
                               int selector)
                        throws Exception
Get the sub entries of a folder.

Specified by:
getEntries in interface AssetRepository
Parameters:
entry - the specified folder entry.
user - the specified user.
permission - the specified access way.
selector - the specified selector.
Returns:
the sub entries of the folder, null if exception occurs.
Throws:
Exception

getWorksheetEntries

public AssetEntry[] getWorksheetEntries(AssetEntry entry,
                                        Principal user,
                                        String permission,
                                        int selector)
                                 throws Exception
Get the worksheet entries of a folder.

Parameters:
entry - the specified folder entry.
selector - the specified selector.
user - the specified user.
Returns:
the sub entries of a folder.
Throws:
Exception

getSession

public Object getSession()
                  throws Exception
Get the session object.

Specified by:
getSession in interface AssetRepository
Returns:
the session object.
Throws:
Exception

createPhysicalEntry

protected AssetEntry createPhysicalEntry(XNode node,
                                         Principal user,
                                         XDataSource xds)
Create a physical asset entry according to an xnode as metadata.

Parameters:
node - the specified xnode.
user - the specified user.
xds - the specified jdbc data source.
Returns:
the created xnode if any, null otherwise.

getQueryEntries

protected AssetEntry[] getQueryEntries(AssetEntry entry,
                                       int selector,
                                       Principal user)
                                throws Exception
Get the sub query entries of a folder.

Parameters:
entry - the specified folder entry.
selector - the specified selector.
user - the specified user.
Returns:
the sub entries of a folder.
Throws:
Exception

getOutputType

protected abstract XTypeNode getOutputType(String qname,
                                           XQueryRepository rep,
                                           boolean local,
                                           Principal user)
                                    throws Exception
Get query output type.

Parameters:
qname - the specified query name.
rep - the specified local query repository.
local - true if is a local query.
user - the specified principal.
Throws:
Exception

checkQueryFolderPermission

protected abstract boolean checkQueryFolderPermission(String folder,
                                                      String source,
                                                      Principal user)
Check the query folder permission.

Parameters:
folder - the specified folder.
source - the specified source.
user - the specified user.
Returns:
true if pass, false otherwise.

checkQueryPermission

protected abstract boolean checkQueryPermission(String query,
                                                Principal user)
Check the query permission.

Parameters:
query - the specified query.
user - the specified user.
Returns:
true if pass, false otherwise.

checkDataSourcePermission

protected abstract boolean checkDataSourcePermission(String dname,
                                                     Principal user)
Check the datasource permission.

Parameters:
dname - the specified datasource.
user - the specified user.
Returns:
true if pass, false otherwise.

checkDataSourceFolderPermission

protected abstract boolean checkDataSourceFolderPermission(String folder,
                                                           Principal user)
Check the datasource folder permission.

Parameters:
folder - the specified datasource folder.
user - the specified user.
Returns:
true if pass, false otherwise.

addFolder

public void addFolder(AssetEntry entry,
                      Principal user)
               throws Exception
Add one folder.

Specified by:
addFolder in interface AssetRepository
Parameters:
entry - the specified folder entry.
user - the specified user.
Throws:
Exception

isEntryAvailable

protected boolean isEntryAvailable(AssetEntry entry)

containsEntry

public boolean containsEntry(AssetEntry entry)
                      throws Exception
Check if contains the specified asset entry.

Specified by:
containsEntry in interface AssetRepository
Parameters:
entry - the specified asset entry.
Returns:
true if contains, false otherwise.
Throws:
Exception

changeFolder

public void changeFolder(AssetEntry oentry,
                         AssetEntry nentry,
                         Principal user,
                         boolean force)
                  throws Exception
Change one folder.

Specified by:
changeFolder in interface AssetRepository
Parameters:
oentry - the specified old folder entry.
nentry - the specified new folder entry.
user - the specified user.
force - true to change folder forcely without checking dependency.
Throws:
Exception

changeFolder0

protected void changeFolder0(AssetEntry oentry,
                             inetsoft.util.IndexedStorage ostorage,
                             AssetEntry nentry,
                             inetsoft.util.IndexedStorage nstorage,
                             boolean root)
                      throws Exception
Change one folder internally.

Parameters:
oentry - the specified old folder entry.
nentry - the specified new folder entry.
Throws:
Exception

removeFolder

public void removeFolder(AssetEntry entry,
                         Principal user,
                         boolean force)
                  throws Exception
Remove one folder.

Specified by:
removeFolder in interface AssetRepository
Parameters:
entry - the specified folder entry.
user - the specified user.
force - true to remove folder forcely without checking.
Throws:
Exception

removeFolder0

protected void removeFolder0(AssetEntry entry,
                             inetsoft.util.IndexedStorage storage)
                      throws Exception
Remove one folder internally.

Parameters:
entry - the specified folder entry.
storage - the specified indexed storage.
Throws:
Exception

checkFolderRemoveable

public void checkFolderRemoveable(AssetEntry entry,
                                  Principal user)
                           throws Exception
Check if folder is removeable.

Specified by:
checkFolderRemoveable in interface AssetRepository
Parameters:
entry - the specified folder entry.
user - the specified user.
Throws:
Exception

getEntryIdentifier

public String getEntryIdentifier(AssetEntry entry)
tomzhang bug1318530017384 Create a new identifier for local worksheet to avoid allmap key conflict maybe override by subclass

Specified by:
getEntryIdentifier in interface AssetRepository
Parameters:
entry - AssetEntry
Returns:
like 2^2^_NULL_^VAT

getSheet

public AbstractSheet getSheet(AssetEntry entry,
                              Principal user,
                              boolean permission,
                              AssetContent ctype)
                       throws Exception
Get one sheet.

Specified by:
getSheet in interface AssetRepository
Parameters:
entry - the specified sheet entry.
user - the specified user.
permission - true to check permission, false otherwise.
ctype - the asset content type.
Returns:
the associated sheet.
Throws:
Exception

getReportStorage

public inetsoft.util.IndexedStorage getReportStorage(AssetEntry entry)
                                              throws Exception
Get report storage.

Throws:
Exception

addr

public int addr()
Get original hash code.


setSheet

public void setSheet(AssetEntry entry,
                     AbstractSheet sheet,
                     Principal user,
                     boolean force)
              throws Exception
Description copied from interface: AssetRepository
Set one sheet.

Specified by:
setSheet in interface AssetRepository
Parameters:
entry - the specified sheet entry.
user - the specified user.
force - true to set sheet forcely without checking.
Throws:
Exception

setSheet

public void setSheet(AssetEntry entry,
                     AbstractSheet sheet,
                     Principal user,
                     boolean force,
                     boolean checkDependency)
              throws Exception
Set one sheet.

Parameters:
entry - the specified sheet entry.
sheet - the specified sheet.
user - the specified user.
force - true to set sheet forcely without checking.
Throws:
Exception

checkDependencyValidity

protected void checkDependencyValidity(AssetEntry from,
                                       AssetEntry to)
                                throws Exception
Check the validity of a dependency from one asset entry to another aset entry.

Parameters:
from - the specified dependecy asset entry.
to - the specified dependent asset entry.
Throws:
Exception

changeSheet

public void changeSheet(AssetEntry oentry,
                        AssetEntry nentry,
                        Principal user,
                        boolean force)
                 throws Exception
Change one sheet.

Specified by:
changeSheet in interface AssetRepository
Parameters:
oentry - the specified old sheet entry.
nentry - the specified new sheet entry.
user - the specified user.
force - true to change sheet forcely without checking dependency.
Throws:
Exception

changeSheet0

protected void changeSheet0(AssetEntry oentry,
                            inetsoft.util.IndexedStorage ostorage,
                            AssetEntry nentry,
                            inetsoft.util.IndexedStorage nstorage)
                     throws Exception
Change one sheet internally.

Parameters:
oentry - the specified old sheet entry.
nentry - the specified new sheet entry.
Throws:
Exception

removeSheet

public void removeSheet(AssetEntry entry,
                        Principal user,
                        boolean force)
                 throws Exception
Remove one sheet.

Specified by:
removeSheet in interface AssetRepository
Parameters:
entry - the specified sheet entry.
user - the specified user.
force - true to remove sheet forcely without checking.
Throws:
Exception

removeSheet0

protected void removeSheet0(AssetEntry entry,
                            inetsoft.util.IndexedStorage storage)
                     throws Exception
Remove one sheet internally.

Parameters:
entry - the specified sheet entry.
storage - the storage that contains the entry.
Throws:
Exception

getParentFolder

protected inetsoft.uql.asset.internal.AssetFolder getParentFolder(AssetEntry entry,
                                                                  inetsoft.util.IndexedStorage storage)
                                                           throws Exception
Get the parent folder content of an asset(sheet/folder).

Parameters:
entry - the specified asset entry.
storage - the specified indexed storage.
Returns:
the parent folder content of the asset.
Throws:
Exception

checkAssetPermission

public void checkAssetPermission(Principal principal,
                                 AssetEntry entry,
                                 String permission)
                          throws Exception
Check asset permission.

Specified by:
checkAssetPermission in interface AssetRepository
Parameters:
principal - the specified user.
entry - the specified asset entry.
permission - the specified permission.
Throws:
Exception

getAssetPrefix

protected final String getAssetPrefix(AssetEntry entry)
Get the asset permission prefix.

Parameters:
entry - the specified asset entry.
Returns:
the asset premission prefix of the asset entry.

checkPermission

public boolean checkPermission(Principal principal,
                               String prefix,
                               String resource,
                               String permission)
Check permission.

Specified by:
checkPermission in interface AssetRepository
Parameters:
principal - the specified user.
prefix - the specified prefix.
resource - the specified resource.
permission - the specified permission.
Returns:
true if passed, false otherwise.

closeStorages

protected void closeStorages()
Close all the storages.


getStorage

public inetsoft.util.IndexedStorage getStorage(AssetEntry entry)
                                        throws Exception
Get the indexed storage of an asset entry.

Specified by:
getStorage in interface AssetRepository
Parameters:
entry - the specified asset entry.
Returns:
the indexed storage of the asset entry.
Throws:
Exception

getStorages

protected inetsoft.util.IndexedStorage[] getStorages()
Get all the indexed storages require close.

Returns:
all the indexed storages.

getQuotaManager

protected inetsoft.uql.util.XQuotaManager getQuotaManager()
Get the quota manager.

Returns:
the quota manager if any, null otherwise.

getStorage

protected final inetsoft.util.IndexedStorage getStorage(AbstractAssetEngine engine)
Get the indexed storage of an asset engine.

Parameters:
engine - the specified asset engine.
Returns:
the indexed storage of the asset engine.

getReportManager

protected abstract ReportManager getReportManager(String user)
Get the report manager.

Returns:
the associated report manager.

getDependencyFileKey

protected String getDependencyFileKey()
Get the dependency file stores dependencies from the report sheets to the sheets.

Returns:
the dependency file path and name as key.

getDependencyFileName

protected abstract String getDependencyFileName()
Get the dependency file stores dependencies from the report sheets to the sheets.

Returns:
the dependency file name.

getDependencyFile

protected File getDependencyFile()
Get the dependency file stores dependencies from the report sheets to the worksheets.

Returns:
the dependency file, null not to support the feature.

getSheetDependencies

public AssetEntry[] getSheetDependencies(AssetEntry entry,
                                         Principal user)
                                  throws Exception
Get the sheets depend on a sheet.

Specified by:
getSheetDependencies in interface AssetRepository
Parameters:
entry - the specified sheet entry.
user - the specified user.
Returns:
the sheet entries depend on the sheet.
Throws:
Exception

getReportSheetDependencies

public ReportEntry[] getReportSheetDependencies(AssetEntry entry,
                                                Principal user)
                                         throws Exception
Get the report sheets depend on a sheet.

Specified by:
getReportSheetDependencies in interface AssetRepository
Parameters:
entry - the specified sheet entry.
user - the specified user.
Returns:
the report sheet entries depend on the sheet.
Throws:
Exception

allowsFolderScopeChange

public void allowsFolderScopeChange(AssetEntry entry,
                                    int nscope,
                                    Principal user)
                             throws Exception
Check if to change a folder scope is allowed.

Specified by:
allowsFolderScopeChange in interface AssetRepository
Parameters:
entry - the specified folder entry.
nscope - the specified new scope to change to.
user - the specified user.
Throws:
Exception

allowsSheetScopeChange

public void allowsSheetScopeChange(AssetEntry entry,
                                   int nscope,
                                   Principal user)
                            throws Exception
Check if to change a sheet scope is allowed.

Specified by:
allowsSheetScopeChange in interface AssetRepository
Parameters:
entry - the specified sheet entry.
nscope - the specified new scope to change to.
user - the specified user.
Throws:
Exception

dispose

public void dispose()
Dispose the asset repository.

Specified by:
dispose in interface AssetRepository

addAssetChangeListener

public void addAssetChangeListener(AssetChangeListener listener)
Adds a listener that is notified when this repository is modified.

Specified by:
addAssetChangeListener in interface AssetRepository
Parameters:
listener - the listener to remove.

removeAssetChangeListener

public void removeAssetChangeListener(AssetChangeListener listener)
Removes an asset change listener from the notification list.

Specified by:
removeAssetChangeListener in interface AssetRepository
Parameters:
listener - the listener to remove.

fireEvent

protected void fireEvent(int entryType,
                         int changeType,
                         AssetEntry assetEntry,
                         String oldName)
Notify all registered listeners that an asset entry has been modified.

Parameters:
entryType - the type of entry to which the change was made.
changeType - the type of change that was made to the entry.
assetEntry - the modified asset entry.
oldName - the old name of the entry, of null if the entry was not renamed.

finalize

protected void finalize()
                 throws Throwable
Finalize the object.

Overrides:
finalize in class Object
Throws:
Throwable

renameUser

public void renameUser(String oname,
                       String nname)
                throws Exception
Rename a user.

Specified by:
renameUser in interface AssetRepository
Parameters:
oname - the old name of the user.
nname - the new name of the user.
Throws:
Exception

removeUser

public void removeUser(String name)
                throws Exception
Remove a user.

Specified by:
removeUser in interface AssetRepository
Parameters:
name - the name of the user.
Throws:
Exception

getVSBookmark

public inetsoft.uql.viewsheet.VSBookmark getVSBookmark(AssetEntry entry,
                                                       Principal user)
                                                throws Exception
Get the viewsheet bookmark.

Specified by:
getVSBookmark in interface AssetRepository
Parameters:
entry - the entry of the specified viewsheet.
user - the specified user.
Returns:
the viewsheet bookmark if any, null not found.
Throws:
Exception

clearVSBookmark

public void clearVSBookmark(AssetEntry entry)
                     throws Exception
Clear all the viewsheet bookmarks.

Specified by:
clearVSBookmark in interface AssetRepository
Parameters:
entry - the entry of the specified viewsheet.
Throws:
Exception

setVSBookmark

public void setVSBookmark(AssetEntry entry,
                          inetsoft.uql.viewsheet.VSBookmark bookmark,
                          Principal user)
                   throws Exception
Set the viewsheet bookmark.

Specified by:
setVSBookmark in interface AssetRepository
Parameters:
entry - the entry of the specified viewsheet.
bookmark - the specified viewsheet bookmark.
user - the specified user.
Throws:
Exception

createFinder

protected abstract AbstractAssetEngine.ReportSheetDependencyFinder createFinder()
Create finder.

Returns:
the created reportsheet dependency finder.

clearCache

public void clearCache(AssetEntry entry)
Clear the cache for the entry.


getDesignView

protected inetsoft.report.gui.reportsheet.DesignView getDesignView()
Get runtime design view.


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