Style Intelligence v12.0

inetsoft.report
Class RemoteLibManager

java.lang.Object
  extended by inetsoft.report.LibManager
      extended by inetsoft.report.RemoteLibManager
All Implemented Interfaces:
inetsoft.report.internal.ParameterSheetRepository

public class RemoteLibManager
extends LibManager

Remote library manager manages bean, table style, script function, etc. The data comes from remote server.


Field Summary
 
Fields inherited from class inetsoft.report.LibManager
BEAN_ADDED, BEAN_MODIFIED, BEAN_REMOVED, changeListener, META_REPORT_ADDED, META_REPORT_MODIFIED, META_REPORT_REMOVED, PARAMETER_SHEET_ADDED, PARAMETER_SHEET_MODIFIED, PARAMETER_SHEET_REMOVED, SCRIPT_ADDED, SCRIPT_MODIFIED, SCRIPT_RELOADED, SCRIPT_REMOVED, SEPARATOR, STYLE_ADDED, STYLE_MODIFIED, STYLE_REMOVED, ts, USER_DEFINE
 
Fields inherited from interface inetsoft.report.internal.ParameterSheetRepository
EMBED_PARAMETER_SHEET, EMBED_SECTION
 
Constructor Summary
protected RemoteLibManager()
          Constructor.
 
Method Summary
protected  boolean checkPermission(String resource, char access)
          Determines if the current user has permission for the specified access to a resource.
protected  void heartbeat()
          Do a heartbeat to synchronize data.
protected  void init(boolean event)
          Initialize data.
protected  void movePermission(String oresource, String nresource)
          Moves a permission from one resource path to another.
 void refresh(boolean event)
          Refresh library manager.
 void removeBean(String name)
          Remove a bean from the library.
 void removeMetaReport(String name)
          Remove a meta report from the library.
 void removeParameterSheet(String name)
          Remove a parameter sheet from the library.
 void removeScript(String name)
          Remove a script function from the library.
 void removeTableStyle(String name)
          Remove a table style from the library.
 void renameBean(String oldName, String newName)
          Rename a bean.
 void renameMetaReport(String oldName, String newName)
          Rename a meta report.
 void renameParameterSheet(String oldName, String newName)
          Rename a parameter sheet.
 void renameScript(String oldName, String newName)
          Rename a script function.
 void save()
          Save the registry information to the registry XML file.
 void setBean(String name, BeanSheet report)
          Set a new bean or replace an existing bean.
 void setMetaReport(String name, MetaReport report)
          Set a new meta report or replace an existing meta report.
 void setParameterSheet(String name, ParameterSheet report)
          Set a new parameter sheet or replace an existing parameter sheet.
 void setScript(String name, String func)
          Set a new script function or replace an existing script function.
 void setTableStyle(String name, inetsoft.report.style.XTableStyle style)
          Set a new table style or replace an existing table style.
 void setTableStyle(String name, inetsoft.report.style.XTableStyle style, boolean checkParent)
          Set a new table style or replace an existing table style.
protected  void tearDown()
          Tear down library manager.
 
Methods inherited from class inetsoft.report.LibManager
addActionListener, addRefreshedListener, addTableStyleFolder, addTableStyleFolder, clear, containsFolder, copyLibrary, findBeanName, findMetaReportName, findParameterSheetName, findScriptName, fireActionEvent, fireEvent, getBean, getBeanComment, getBeans, getDependedFile, getFileInputStream, getKey, getManager, getMetaReport, getMetaReportComment, getMetaReports, getNextStyleID, getParameterSheet, getParameterSheetComment, getParameterSheets, getScript, getScriptComment, getScripts, getTableStyle, getTableStyleComment, getTableStyleFolders, getTableStyles, getTableStyles, getUserSignature, lastModified, loadLibrary, loadLibrary, loadLibrary, removeActionListener, removeAllElements, removeRefreshedListener, removeTableStyleFolder, removeTableStyleFolder, restart, save, setBeanComment, setMetaReportComment, setParameterSheetComment, setScriptComment, setTableStyleComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteLibManager

protected RemoteLibManager()
Constructor.

Method Detail

init

protected void init(boolean event)
Initialize data.

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

refresh

public void refresh(boolean event)
Refresh library manager.

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

tearDown

protected void tearDown()
Tear down library manager.

Overrides:
tearDown in class LibManager

heartbeat

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

Overrides:
heartbeat in class LibManager

save

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

Overrides:
save in class LibManager

checkPermission

protected boolean checkPermission(String resource,
                                  char access)
Determines if the current user has permission for the specified access to a resource.

Overrides:
checkPermission in class LibManager
Parameters:
resource - the name of the resource.
access - the type of access.
Returns:
true if allowed; false otherwise.

movePermission

protected void movePermission(String oresource,
                              String nresource)
Moves a permission from one resource path to another. This is done in response to renaming a component.

Overrides:
movePermission in class LibManager
Parameters:
oresource - the old resource path.
nresource - the new resource path.

removeScript

public void removeScript(String name)
Remove a script function from the library.

Overrides:
removeScript in class LibManager
Parameters:
name - the specified script function name.

setScript

public void setScript(String name,
                      String func)
Set a new script function or replace an existing script function.

Overrides:
setScript in class LibManager
Parameters:
name - the specified script function name.
func - the specified script function.

renameScript

public void renameScript(String oldName,
                         String newName)
Rename a script function.

Overrides:
renameScript in class LibManager
Parameters:
oldName - old name of the script function.
newName - new name of the script function.

removeParameterSheet

public void removeParameterSheet(String name)
Remove a parameter sheet from the library.

Overrides:
removeParameterSheet in class LibManager
Parameters:
name - the specified parameter sheet name.

setParameterSheet

public void setParameterSheet(String name,
                              ParameterSheet report)
Set a new parameter sheet or replace an existing parameter sheet.

Overrides:
setParameterSheet in class LibManager
Parameters:
name - the specified parameter sheet name.
report - the specified parameter sheet.

renameParameterSheet

public void renameParameterSheet(String oldName,
                                 String newName)
Rename a parameter sheet.

Overrides:
renameParameterSheet in class LibManager
Parameters:
oldName - old name of the parameter sheet.
newName - new name for the parameter sheet.

removeBean

public void removeBean(String name)
Remove a bean from the library.

Overrides:
removeBean in class LibManager
Parameters:
name - the specified bean name.

setBean

public void setBean(String name,
                    BeanSheet report)
Set a new bean or replace an existing bean.

Overrides:
setBean in class LibManager
Parameters:
name - the specified bean name.
report - the specified bean.

renameBean

public void renameBean(String oldName,
                       String newName)
Rename a bean.

Overrides:
renameBean in class LibManager
Parameters:
oldName - old name of the bean.
newName - new name for the bean.

removeMetaReport

public void removeMetaReport(String name)
Remove a meta report from the library.

Overrides:
removeMetaReport in class LibManager
Parameters:
name - the specified meta report name.

setMetaReport

public void setMetaReport(String name,
                          MetaReport report)
Set a new meta report or replace an existing meta report.

Overrides:
setMetaReport in class LibManager
Parameters:
name - the specified meta report name.
report - the specified meta report.

renameMetaReport

public void renameMetaReport(String oldName,
                             String newName)
Rename a meta report.

Overrides:
renameMetaReport in class LibManager
Parameters:
oldName - old name of the meta report.
newName - new name for the meta report.

removeTableStyle

public void removeTableStyle(String name)
Remove a table style from the library.

Overrides:
removeTableStyle in class LibManager
Parameters:
name - the specified table style name.

setTableStyle

public void setTableStyle(String name,
                          inetsoft.report.style.XTableStyle style)
Set a new table style or replace an existing table style.

Overrides:
setTableStyle in class LibManager
Parameters:
name - the specified table style name.
style - the specified table style.

setTableStyle

public void setTableStyle(String name,
                          inetsoft.report.style.XTableStyle style,
                          boolean checkParent)
Set a new table style or replace an existing table style.

Overrides:
setTableStyle in class LibManager
Parameters:
name - the specified table style name.
style - the specified table style.
checkParent - true to check parent permission.

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