|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.asset.AbstractAssetEngine
inetsoft.sree.RepletEngine
public class RepletEngine
This is the implementation of the RepletRepository. It is the server side report engine for processing replets.
| Nested Class Summary | |
|---|---|
protected static class |
RepletEngine.SessionKey
|
| Nested classes/interfaces inherited from class inetsoft.uql.asset.AbstractAssetEngine |
|---|
AbstractAssetEngine.ReportSheetDependencyFinder, AbstractAssetEngine.SheetTransformListener, AbstractAssetEngine.StorageChangeListener |
| Field Summary | |
|---|---|
protected Hashtable |
activerep
|
protected String |
cdir
|
protected Set |
destroyrep
|
protected Hashtable |
namemap
|
static String |
PARA_ARCHIVE
The name for the ServiceRequest parameter. |
static String |
PARA_LIVE
The name for the ServiceRequest parameter. |
static String |
PARA_PREGENERATED
The name for the ServiceRequest parameter. |
protected Hashtable |
principalmap
|
protected inetsoft.sree.RepletCache |
repcache
|
protected Hashtable |
resmap
|
protected Hashtable |
resmap2
|
protected Hashtable |
sessionmap
|
protected String |
snapdir
|
| Fields inherited from class inetsoft.uql.asset.AbstractAssetEngine |
|---|
admin, catalog, editing, istore, LOCAL, parent, scopes |
| Fields inherited from interface inetsoft.sree.RepletRepository |
|---|
ADDTOQ_FAILURE, ADDTOQ_GENERATION, ADDTOQ_SUCCESS, AUTO_REPLET, DEFAULT_ARCHIVE, NO_ARCHIVE, NOT_CHECK_PERMISSION, PREGENERATE, PRINCIPAL_COOKIE, REPLET, REPLET_MASK, REPORT, VERSIONED_ARCHIVE, VIRTUAL_REPLET |
| 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 | |
|---|---|
RepletEngine()
Create a default local replet engine. |
|
RepletEngine(String id)
Create a local replet engine. |
|
RepletEngine(String id,
String licenseKey)
Create a local replet engine and evaluate against a given license key. |
|
| Method Summary | |
|---|---|
protected void |
accessReplet(Replet replet)
Access replet. |
void |
addFolder(AssetEntry entry,
Principal user)
Add one folder. |
void |
addFolder(RepositoryEntry entry,
String name,
String alias,
String description,
Principal user)
Add folder of a repository entry. |
int |
addToQueue(Object repletId,
String replet,
Principal user)
Add a replet to queue when loading. |
Principal |
authenticate(ClientInfo user,
Object credential)
Checks the authentication of specific entity. |
void |
cancel(Object repletId)
Cancel a replet execution. |
void |
changeFolder(AssetEntry oentry,
AssetEntry nentry,
Principal user,
boolean force)
Change one folder. |
void |
changeFolder(RepositoryEntry entry,
String folder,
Principal user)
Change folder of a repository entry. |
protected void |
changeFolder0(AssetEntry oentry,
inetsoft.util.IndexedStorage ostorage,
AssetEntry nentry,
inetsoft.util.IndexedStorage nstorage,
boolean root)
Change one folder internally. |
void |
changePassword(Principal principal,
String passwd)
Change the user password. |
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. |
protected void |
checkAccess(Principal principal)
Check if the access matches license. |
protected boolean |
checkDataSourceFolderPermission(String folder,
Principal user)
Check the datasource folder permission. |
protected boolean |
checkDataSourcePermission(String dname,
Principal user)
Check the datasource permission. |
void |
checkFolderRemoveable(AssetEntry entry,
Principal user)
Check if folder is removeable. |
boolean |
checkPermission(Principal principal,
String resource,
char acc)
Check the permission to access a resource. |
boolean |
checkPermission(Principal principal,
String prefix,
String resource,
String permission)
Check permission. |
protected boolean |
checkQueryFolderPermission(String folder,
String source,
Principal user)
Check the query folder permission. |
protected boolean |
checkQueryPermission(String query,
Principal user)
Check the query permission. |
boolean |
containsFolder(Principal principal,
String permission)
Check if a user could access folders. |
boolean |
containsParameterSheet(Object repletId)
Check if the replet contains parameter sheets. |
protected AbstractAssetEngine.ReportSheetDependencyFinder |
createFinder()
Create finder. |
Object |
createReplet(Object name,
Principal principal,
int type)
Create an instance of the specified replet. |
Image |
createThumbnail(String name,
String version,
Principal user)
Creates a thumbnail image for a report. |
void |
deployReport(inetsoft.sree.adm.web.manager.DeployInfo info,
byte[] data,
boolean overwrite)
Deploys a report into the repository. |
protected void |
destroy(Object id)
Destroy a replet. |
void |
destroy(Object repletId,
int type)
Destroy a replet instance. |
void |
disableParameterSheet(Object repletId)
Disable parameter sheets contained in the replet, and all the parameter sheets will be ignored when process replet. |
Object |
export(Object repletId,
int format)
Export a replet to the specified format. |
protected void |
finalize()
Remove all the cached files used by this RepletEngine when it is garbage collected. |
PageLocation |
find(Object id,
SearchCondition cond,
PageLocation next)
Search the report to find the condition defined in the search condition. |
protected void |
fireEvent(int entryType,
int changeType,
AssetEntry assetEntry,
String oldName)
Notify all registered listeners that an asset entry has been modified. |
void |
generateReplet(Object repletId,
RepletRequest request)
Generate a report from the specified replet instance. |
Object[] |
getActiveReplets(String user)
Get active replet ids. |
ReportSheet |
getAnalyticReport(Object repletId)
Get report which can be analyzed. |
int |
getArchiveOption()
Get the archive support option. |
Object[] |
getArchiveReplets(Principal user)
Get archive replets by principal. |
Object |
getArchiveReport(String path,
String version,
Principal principal)
Open an archived report. |
int |
getCount(String type)
Get the count of report of the specified type. |
protected File |
getDependencyFile()
Get the dependency file stores dependencies from the report sheets to the worksheets. |
protected String |
getDependencyFileName()
Get the dependency file stores dependencies from the report sheets to the sheets. |
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 |
EventHandler |
getEventHandler(Object id)
Get the client-side commands of a replet. |
int |
getEventMask(Object id)
Return the bitwise OR of the event masks for all events that this replet is able to receive. |
int |
getExecutingCount()
Get the number of all executing report during a sample period. |
RepositoryEntry[] |
getFolders(Principal principal,
String permission)
Get the list of all folders. |
int |
getGeneratedPageCount()
Get the generated page count. |
HeadingTarget[] |
getHeadingTargets(Object repletId)
Get the targets pointing to heading elements. |
XQueryRepository |
getLocalQueryRepository(String rid)
Get the local query repository. |
protected String |
getNextID(String name,
inetsoft.sree.internal.RuntimeReplet replet)
Find the next unique ID. |
protected XTypeNode |
getOutputType(String qname,
XQueryRepository rep,
boolean local,
Principal user)
Get query output type. |
StylePage |
getPage(Object id,
int n)
Get the specified page. |
int |
getPageCount(Object id)
Get the number of pages in the report generated by the replet. |
int |
getPageCount(Object id,
int max)
Get the really number of pages in the report generated by the replet. |
PageLocation |
getPageLocation(Object repletId,
String elementId,
Point item)
Get the location of a specific element in a report. |
String[] |
getPrinters()
Get a list of printers on the server. |
Vector |
getPrintPages(Object repletId,
int[] printPages,
int fmt)
Get the corresponding pages of specified replet for print. |
int |
getProcessStatus(Object id)
Get the process status of a report. |
String |
getProperty(String propname)
Get the specified property. |
inetsoft.sree.internal.QueuedRepletInfo[] |
getQueuedReplets(Principal user)
Get replets information in the report queue. |
protected inetsoft.uql.util.XQuotaManager |
getQuotaManager()
Get the quota manager. |
SelectionEvent[] |
getRegisteredSelections(Object id)
Get the registered selection events. |
protected RepletRegistry |
getRegistry(String name,
Principal principal)
Get replet registry. |
RepletContext |
getRepletContext(Object repletId)
Get contextual information about a specfic replet. |
protected RepletContext |
getRepletContext(Object repletId,
boolean activeInfo)
Get contextual information about a specfic replet. |
String |
getRepletName(Object id)
Get the specified replet name. |
RepletParameters |
getRepletParameters(Object id,
String reqname)
Get the replet parameters. |
RepositoryEntry[] |
getReplets(Principal principal,
String permission)
Get a flattened list of all replets. |
ReportSheet |
getReport(Object repletId,
boolean print)
Get report from replet engine.. |
protected ReportArchive |
getReportArchive(String name,
Principal principal)
Get report archive. |
inetsoft.sree.adm.web.monitor.ReportInfo[] |
getReportInfo(String type)
Get the report infos of specified type. |
protected ReportManager |
getReportManager(String user)
Get the report manager. |
String |
getReportProperty(Object rid,
Object key)
Get report property. |
Size |
getReportSize(String name,
String version,
Principal user)
Gets the size of a report. |
RepositoryEntry[] |
getRepositoryEntries(String folder,
Principal user,
String permission,
int selector)
Get available repository entries. |
long |
getResourceLength(Object rid)
Get the resource size. |
ActionListener |
getScheduleActionListener(Object rid)
Get a listener to runtime replet. |
ScheduleTask |
getScheduleTask(String taskName)
Get the schedule task. |
String[] |
getScheduleTasks(Principal principal)
Get the scheduled tasks. |
protected SecurityEngine |
getSecurity()
Get security engine. |
AbstractSheet |
getSheet(AssetEntry entry,
Principal user,
boolean permission,
AssetContent ctype)
Get one sheet. |
Enumeration |
getSingleStylePage(Object repletId)
Get a single style page of the specified replet. |
inetsoft.util.IndexedStorage |
getStorage(AssetEntry entry)
Get the indexed storage of an asset entry. |
RepletCommand |
handleEvent(Object id,
EventObject e)
Handle a viewer event. |
void |
importAssets(byte[] data,
boolean replace)
Import assets assets into the repository. |
void |
importAssets(byte[] data,
boolean replace,
inetsoft.util.audit.ActionRecord actionRecord)
Import assets assets into the repository. |
void |
importAssets(String filePath,
boolean overwriting,
List order,
HashMap names,
inetsoft.sree.adm.PartialDeploymentJarInfo info,
boolean desktop,
Principal principal,
List ignoreList)
Imports assets into the repository. |
void |
importAssets(String filePath,
boolean overwriting,
List order,
HashMap names,
inetsoft.sree.adm.PartialDeploymentJarInfo info,
boolean desktop,
Principal principal,
List ignoreList,
inetsoft.util.audit.ActionRecord actionRecord)
Imports assets into the repository. |
void |
init()
Initialize the engine. |
boolean |
isArchiveChange(String folder,
Principal user,
HashMap timestamps)
|
protected boolean |
isEntryAvailable(AssetEntry entry)
Test if an entry is available. |
boolean |
isFolderChanged(String folder,
Principal user)
Check if repository.xml file change. |
boolean |
isLogExport()
Check if should log export. |
boolean |
isParameterSheet(Object repletId)
Check if current report sheet is a parameter sheet. |
protected boolean |
isPregenerated(Object id)
Check if a replet is pregenerated. |
void |
logout(Principal principal)
Logout of the system. |
void |
mailTo(Object repletId,
String recipients,
String from,
String subject,
String msg,
String fmt)
Send a replet via email. |
void |
mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt)
Send a replet via email which includes "CC" and "BCC" addresses. |
void |
mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress)
Send a replet via email which includes "CC" and "BCC" addresses. |
void |
mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress,
String attachmentName)
Send a replet via email which includes "CC" and "BCC" addresses. |
void |
mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress,
String attachmentName,
String password)
Send a replet via email which includes "CC" and "BCC" addresses. |
void |
mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress,
String attachmentName,
String password,
boolean htmlContent)
Send a replet via email which includes "CC" and "BCC" addresses. |
static void |
main(String[] args)
Main entrance. |
byte[] |
nextBlock(Object rid)
Get the next block of data. |
void |
print()
Print the current status. |
void |
print(Object id,
String printer,
int[] pageList)
Print the specified report on the server. |
void |
propertyChange(PropertyChangeEvent evt)
Property change event. |
void |
recordPageCount(Object id)
Record page count of a replet. |
void |
removeFolder(AssetEntry entry,
Principal user,
boolean force)
Remove one folder. |
protected void |
removeFolder0(AssetEntry entry,
inetsoft.util.IndexedStorage storage)
Remove one folder internally. |
boolean |
removeFromQueue(Object repletId,
Principal user)
Remove a queued replet from queue. |
void |
removeRepositoryEntry(RepositoryEntry entry,
Principal user)
Remove a repostory entry. |
void |
removeScheduleTask(Principal principal,
String taskName)
Delete the task from the schedule file. |
protected void |
removeSheet0(AssetEntry entry,
inetsoft.util.IndexedStorage storage)
Remove one sheet internally. |
void |
removeUser(String name)
Remove a user. |
void |
renameRepositoryEntry(RepositoryEntry entry,
String nname,
Principal user)
Rename a repository entry. |
void |
renameUser(String oname,
String nname)
Rename a user. |
void |
resetGeneratedPageCount()
Reset the generated page count. |
void |
resetReplet(Object repletId)
Reset replet to initial state. |
void |
saveInArchive(Object id,
String path,
int fmt,
Permission perm,
ArchiveRule rule,
String comment)
Save a report in the report archive. |
void |
setActionListener(Object rid,
ActionListener l)
Set a listener to runtime replet. |
void |
setLogExport(boolean log)
Set whether should log export. |
void |
setPermission(Principal principal,
String resource,
Permission permission)
Set a user's permission of a specific access to a resource. |
void |
setScheduleActionListener(Object rid,
ActionListener l)
Set a listener to runtime replet. |
void |
setScheduleTask(Principal principal,
String taskName,
ScheduleTask task)
Save a schedule task. |
void |
setSheet(AssetEntry entry,
AbstractSheet ws,
Principal user,
boolean force)
Set one sheet. |
void |
waitForReplet(Object id)
Wait until the generation of replet is done. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARA_PREGENERATED
public static final String PARA_LIVE
public static final String PARA_ARCHIVE
protected final Set destroyrep
protected Hashtable activerep
protected Hashtable namemap
protected Hashtable principalmap
protected Hashtable resmap
protected Hashtable resmap2
protected Hashtable sessionmap
protected String cdir
protected String snapdir
protected inetsoft.sree.RepletCache repcache
| Constructor Detail |
|---|
public RepletEngine()
public RepletEngine(String id)
id - the unique engine ID.
public RepletEngine(String id,
String licenseKey)
id - the unique engine idlicenseKey - the license key for the slave| Method Detail |
|---|
public static void main(String[] args)
public RepositoryEntry[] getFolders(Principal principal,
String permission)
throws RemoteException
getFolders in interface RepletRepositoryprincipal - a Principal object identifying the user that is
requesting the folder list.permission - the permissions the user must have on a folder in order
for it to be returned. Should be a combination of 'r',
'w', and 'd', which stand for read, write, and
delete respectively. If this parameter is null, all folders
that the user has any permission on are returned.
RemoteException - if an error occurs while getting the folder list.
public boolean containsFolder(Principal principal,
String permission)
throws RemoteException
containsFolder in interface RepletRepositoryRemoteException
public RepositoryEntry[] getReplets(Principal principal,
String permission)
getReplets in interface RepletRepositoryprincipal - a Principal object identifying the user that is
requesting the replet list.permission - the permissions the user must have on a replet in order
for it to be returned. Should be a combination of 'r',
'w', and 'd', which stand for read, write, and
delete respectively. If this parameter is null, all replets
that the user has any permission on are returned.
public int getArchiveOption()
getArchiveOption in interface RepletRepository
public Object getArchiveReport(String path,
String version,
Principal principal)
throws RepletException
getArchiveReport in interface RepletRepositorypath - the path to the archived report.version - the version number of the report to retrieve. If the
archive does not support versioning, this parameter is ignored and may be
null.principal - a Principal object identifying the user that is
requesting the report.
RepletException - if the resource could not be created.
public void saveInArchive(Object id,
String path,
int fmt,
Permission perm,
ArchiveRule rule,
String comment)
throws RepletException
saveInArchive in interface RepletRepositoryid - replet ID.path - path in the report archive.fmt - report saving format. One of the format options defined
in this class or inetsoft.report.io.Builder.perm - report permission. If it's null, the report will inherit
the folder permission.rule - report archive rule. If it's null, the report will inherit
the folder archive rule.comment - comment string for this version.
RepletException - if the report could not be saved.public RepletContext getRepletContext(Object repletId)
getRepletContext in interface RepletRepositoryrepletId - the replet instance ID.
protected RepletContext getRepletContext(Object repletId,
boolean activeInfo)
repletId - the replet instance ID.activeInfo - true if contains active info, false otherwise.
protected ReportArchive getReportArchive(String name,
Principal principal)
name - the specified folder or archive name.principal - the specified user.
protected RepletRegistry getRegistry(String name,
Principal principal)
throws Exception
name - the specified folder or replet name.principal - the specified user.
Exceptionprotected SecurityEngine getSecurity()
public Object createReplet(Object name,
Principal principal,
int type)
throws SRSecurityException,
RepletException
createReplet in interface RepletRepositoryname - the name of the replet to create.principal - a Principal object identifying the user requesting that
the replet be created.type - the type of replet being created.
SRSecurityException - if the user does not have permission to view
the report.
RepletException - if the replet could not be created.public int getEventMask(Object id)
getEventMask in interface RepletRepositoryid - replet ID.
public RepletParameters getRepletParameters(Object id,
String reqname)
getRepletParameters in interface RepletRepositoryid - replet ID.reqname - request name.
public void generateReplet(Object repletId,
RepletRequest request)
throws RepletException
createReplet method must be called before calling this
method.
generateReplet in interface RepletRepositoryrepletId - the replet instance ID returned from
createReplet.request - a RepletRequest object containing the report parameters. If
this argument is null, the report is generated using the last
request.
RepletException - if an error occurs that prevents the report from
being generated.
public String getReportProperty(Object rid,
Object key)
throws RemoteException
getReportProperty in interface RepletRepositoryRemoteExceptionprotected void accessReplet(Replet replet)
protected boolean isPregenerated(Object id)
throws RemoteException
id - the specified replet id.
RemoteExceptionpublic EventHandler getEventHandler(Object id)
getEventHandler in interface RepletRepositoryid - the replet instance ID.
public int getProcessStatus(Object id)
getProcessStatus in interface RepletRepositoryid - the specified report id.
public RepletCommand handleEvent(Object id,
EventObject e)
handleEvent in interface RepletRepositoryid - replet ID.e - event, one of the events defined in inetsoft.sree.event
package.
public SelectionEvent[] getRegisteredSelections(Object id)
getRegisteredSelections in interface RepletRepositoryid - replet ID.
public StylePage getPage(Object id,
int n)
getPage in interface RepletRepositoryid - replet ID.n - page index, starting from 0.
public int getPageCount(Object id)
getPageCount in interface RepletRepositoryid - replet ID.
public int getPageCount(Object id,
int max)
max - the max loop times to get a valid page count.
public PageLocation find(Object id,
SearchCondition cond,
PageLocation next)
find in interface RepletRepositoryid - replet ID.cond - search condition.next - starting search from the next element of the location
pointed to by PageLocation. Search from beginning if next is null.
public HeadingTarget[] getHeadingTargets(Object repletId)
getHeadingTargets in interface RepletRepositoryrepletId - the replet instance ID.
null if the replet has not been completely
generated.
public PageLocation getPageLocation(Object repletId,
String elementId,
Point item)
getPageLocation in interface RepletRepositoryrepletId - the replet instance ID.elementId - the unique ID of the report element.item - the coordinates of the table cell, or null if the
element is not a table.
public void mailTo(Object repletId,
String recipients,
String from,
String subject,
String msg,
String fmt)
throws RepletException
repletId - the instance ID of the replet to send.recipients - the email address(es) of the recipients of the email
message.from - the from text of the email header.subject - the subject line of the email message.msg - the body text of the email message.fmt - the file format in which to send the report. Allowed values are
the file format constants defined in
inetsoft.report.io.Builder and "PDF".
("PDF", "RTF", "XLS", "EXCEL_SHEET", "TEMPLATE", "REPORT", "CSV",
"RTF_LAYOUT", "HTML", "HTML_BUNDLE", "SVG").
RepletException - if an error occurs while generating or sending the
report.
public void mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt)
throws RepletException
mailTo in interface RepletRepositoryrepletId - the instance ID of the replet to send.recipients - the email address(es) of the recipients of the email
message.ccAddress - the "CC" email address(es) of the recipients.bccAddress - the "BCC" email address(es) of the recipients.from - the from text of the email header.subject - the subject line of the email message.msg - the body text of the email message.fmt - the file format in which to send the report. Allowed values are
the file format constants defined in
inetsoft.report.io.Builder and "PDF".
("PDF", "RTF", "XLS", "EXCEL_SHEET", "TEMPLATE", "REPORT", "CSV",
"RTF_LAYOUT", "HTML", "HTML_BUNDLE", "SVG").
RepletException - if an error occurs while generating or sending the
report.
public void mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress)
throws RepletException
mailTo in interface RepletRepositoryrepletId - the instance ID of the replet to send.recipients - the email address(es) of the recipients of the email
message.ccAddress - the "CC" email address(es) of the recipients.bccAddress - the "BCC" email address(es) of the recipients.from - the from text of the email header.subject - the subject line of the email message.msg - the body text of the email message.fmt - the file format in which to send the report. Allowed values are
the file format constants defined in
inetsoft.report.io.Builder and "PDF".
("PDF", "RTF", "XLS", "EXCEL_SHEET", "TEMPLATE", "REPORT", "CSV",
"RTF_LAYOUT", "HTML", "HTML_BUNDLE", "SVG").compress - flag indicating whether or not the exported
file is to be compressed.
RepletException - if an error occurs while generating or sending the
report.
public void mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress,
String attachmentName)
throws RepletException
mailTo in interface RepletRepositoryrepletId - the instance ID of the replet to send.recipients - the email address(es) of the recipients of the email
message.ccAddress - the "CC" email address(es) of the recipients.bccAddress - the "BCC" email address(es) of the recipients.from - the from text of the email header.subject - the subject line of the email message.msg - the body text of the email message.fmt - the file format in which to send the report. Allowed values are
the file format constants defined in
inetsoft.report.io.Builder and "PDF".
("PDF", "RTF", "XLS", "EXCEL_SHEET", "TEMPLATE", "REPORT", "CSV",
"RTF_LAYOUT", "HTML", "HTML_BUNDLE", "SVG").compress - flag indicating whether or not the exported
file is to be compressed.attachmentName - the name of email's attachment.
RepletException - if an error occurs while generating or sending the
report.
public void mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress,
String attachmentName,
String password)
throws RepletException
mailTo in interface RepletRepositoryrepletId - the instance ID of the replet to send.recipients - the email address(es) of the recipients of the email
message.ccAddress - the "CC" email address(es) of the recipients.bccAddress - the "BCC" email address(es) of the recipients.from - the from text of the email header.subject - the subject line of the email message.msg - the body text of the email message.fmt - the file format in which to send the report. Allowed values are
the file format constants defined in
inetsoft.report.io.Builder and "PDF".compress - flag indicating whether or not the exportedattachmentName - the email attachment's name.
file is to be compressed.
RepletException - if an error occurs while generating or sending the
report.
public void mailTo(Object repletId,
String recipients,
String ccAddress,
String bccAddress,
String from,
String subject,
String msg,
String fmt,
boolean compress,
String attachmentName,
String password,
boolean htmlContent)
throws RepletException
mailTo in interface RepletRepositoryrepletId - the instance ID of the replet to send.recipients - the email address(es) of the recipients of the email
message.ccAddress - the "CC" email address(es) of the recipients.bccAddress - the "BCC" email address(es) of the recipients.from - the from text of the email header.subject - the subject line of the email message.msg - the body text of the email message.fmt - the file format in which to send the report. Allowed values are
the file format constants defined in
inetsoft.report.io.Builder and "PDF".
("PDF", "RTF", "XLS", "EXCEL_SHEET", "TEMPLATE", "REPORT", "CSV",
"RTF_LAYOUT", "HTML", "HTML_BUNDLE", "SVG").compress - flag indicating whether or not the exported
file is to be compressed.attachmentName - the name of email's attachment.
RepletException - if an error occurs while generating or sending the
report.
public Object export(Object repletId,
int format)
throws RepletException
nextBlock method with the returned resource ID.
export in interface RepletRepositoryrepletId - the instance ID of the replet to export.format - the file format in which to export the replet. This must be
one of the file format constants defined in
inetsoft.report.io.Builder.
RepletException - if the replet could not be exported.
RemoteException - if an unspecified error occurs.
public long getResourceLength(Object rid)
throws RepletException
getResourceLength in interface RepletRepositoryrid - resource ID
RepletException - if the specified resource does not exist.
public byte[] nextBlock(Object rid)
throws RepletException
nextBlock in interface RepletRepositoryrid - resource ID.
RepletException - if the specified resource does not exist.public String[] getPrinters()
getPrinters in interface RepletRepository
public void print(Object id,
String printer,
int[] pageList)
throws RepletException
print in interface RepletRepositoryid - replet id.printer - server printer name.pageList - array of page numbers to print
RepletException - if the replet could not be printed.
public void destroy(Object repletId,
int type)
destroy in interface RepletRepositoryrepletId - the replet instance ID.type - the creation type of the replet to destroy.protected void destroy(Object id)
id - replet ID.
public void cancel(Object repletId)
throws RemoteException
cancel in interface RepletRepositoryrepletId - the replet instance ID.
RemoteException - if an error occurs while destroying the replet.public void print()
public void init()
protected String getNextID(String name,
inetsoft.sree.internal.RuntimeReplet replet)
public void waitForReplet(Object id)
public String[] getScheduleTasks(Principal principal)
throws IOException
getScheduleTasks in interface RepletRepositoryprincipal - represents an entity
IOException - if the user does not have permission to schedule tasks
or a general I/O error occurs.
RemoteException - if an error occurs.public ScheduleTask getScheduleTask(String taskName)
getScheduleTask in interface RepletRepositorytaskName - the name of the schedule task.
public void setScheduleTask(Principal principal,
String taskName,
ScheduleTask task)
throws Exception
setScheduleTask in interface RepletRepositoryprincipal - represents an entity.taskName - the name used for retrieving the original task
object. It may be different from the name in the task object if the
task has been renamed.task - the task to be saved.
IOException - if the specified user does not have permission to
schedule tasks.
RemoteException - if an unspecified error occurs.
Exception
public void removeScheduleTask(Principal principal,
String taskName)
throws Exception
removeScheduleTask in interface RepletRepositoryprincipal - represents an entity.taskName - the task name to be removed.
IOException - if the specified user does not have permission to
schedule tasks.
RemoteException - if an unspecified error occurs.
Exceptionpublic String getProperty(String propname)
getProperty in interface RepletRepositorypropname - the property name.
public Principal authenticate(ClientInfo user,
Object credential)
authenticate in interface RepletRepositoryuser - the client info of the user to be authenticated.credential - it wraps up the some secure message, such as user
id and password.
Principal object or null if authentication fails.public void logout(Principal principal)
logout in interface RepletRepositoryprincipal - represents an entity.
public void changePassword(Principal principal,
String passwd)
throws SRSecurityException
changePassword in interface RepletRepositoryprincipal - represents an entity.passwd - is the new password.
if - the password cannot be changed.
SRSecurityException - if the password could not be changed.
public boolean checkPermission(Principal principal,
String resource,
char acc)
checkPermission in interface RepletRepositoryprincipal - represents an entity.resource - resource name.acc - permission. 'r' for read, 'w' for write, and 'd' for delete.
public void setPermission(Principal principal,
String resource,
Permission permission)
throws SRSecurityException
setPermission in interface RepletRepositoryprincipal - a Principal object identifying the user for whom to set
the permission.resource - the name of the resource.permission - the permissions assigned to the user and resource.
SRSecurityException - if the permissions could not be set.
RemoteException - if an error occurs while setting the permission.
public Vector getPrintPages(Object repletId,
int[] printPages,
int fmt)
throws RemoteException
getPrintPages in interface RepletRepositoryrepletId - - Id of replet.printPages - - selected pages to print. Null to print all pages.fmt - the file format of the output as defined in Builder.
RemoteExceptionpublic Enumeration getSingleStylePage(Object repletId)
getSingleStylePage in interface RepletRepositoryrepletId - the replet id
RemoteException - if an unspecified error occurs.
public boolean checkPermission(Principal principal,
String prefix,
String resource,
String permission)
checkPermission in interface AssetRepositorycheckPermission in class AbstractAssetEngineprincipal - the specified user.prefix - the specified prefix.resource - the specified resource.permission - the specified permission.
protected void finalize()
finalize in class AbstractAssetEngine
protected void checkAccess(Principal principal)
throws RepletException
RepletExceptionpublic ReportSheet getAnalyticReport(Object repletId)
repletId - the specified replet id.
public ReportSheet getReport(Object repletId,
boolean print)
repletId - the specified replet id.print - if true will try return print report first, otherwise
return report for analysis only.
public boolean isParameterSheet(Object repletId)
throws RemoteException
isParameterSheet in interface RepletRepositoryrepletId - the specified replet id.
RemoteException
public boolean containsParameterSheet(Object repletId)
throws RemoteException
containsParameterSheet in interface RepletRepositoryrepletId - the specified replet id.
RemoteException
public void disableParameterSheet(Object repletId)
throws RemoteException
disableParameterSheet in interface RepletRepositoryrepletId - the specified replet id.
RemoteException
public void resetReplet(Object repletId)
throws RemoteException
resetReplet in interface RepletRepositoryrepletId - the specified replet id.
RemoteException
public int addToQueue(Object repletId,
String replet,
Principal user)
throws RemoteException
addToQueue in interface RepletRepositoryrepletId - the specified replet id.replet - the specified replet name.user - the specified user.
RemoteException
public boolean removeFromQueue(Object repletId,
Principal user)
throws RemoteException
removeFromQueue in interface RepletRepositoryrepletId - the specified replet id.user - the specified user.
true if successfully removed from the report queue,
false otherwise.
RemoteException
public String getRepletName(Object id)
throws RemoteException
id - replet ID.
RemoteException
public Object[] getActiveReplets(String user)
throws RemoteException
getActiveReplets in interface RepletRepositoryuser - the specified user. Pass null to include all replets.
RemoteException
public Object[] getArchiveReplets(Principal user)
throws RemoteException
getArchiveReplets in interface RepletRepositoryuser - the specified principal. Pass null to include all replets.
RemoteException
public inetsoft.sree.internal.QueuedRepletInfo[] getQueuedReplets(Principal user)
throws RemoteException
getQueuedReplets in interface RepletRepositoryuser - the specified user. Pass null to include all replets.
RemoteException
public RepositoryEntry[] getRepositoryEntries(String folder,
Principal user,
String permission,
int selector)
throws RemoteException
getRepositoryEntries in interface RepletRepositoryfolder - the specified parent folder.user - the specified user.permission - the permissions the user must have on an entry in order
for it to be returned. Should be a combination of 'r',
'w', and 'd', which stand for read, write, and
delete respectively. If this parameter is null, all entries
that the user has any permission on are returned.selector - the specified selector, should be one of the repository entry
type predefined in RepositoryEntry like FOLDER.
The selector might be the combination of the types as well.
RemoteException
public boolean isFolderChanged(String folder,
Principal user)
throws RemoteException
isFolderChanged in interface RepletRepositoryRemoteException
public boolean isArchiveChange(String folder,
Principal user,
HashMap timestamps)
public void changeFolder(RepositoryEntry entry,
String folder,
Principal user)
throws RemoteException
changeFolder in interface RepletRepositoryentry - the specified repository entry.folder - the specified new folder.user - the specified user.
RemoteException
public void removeRepositoryEntry(RepositoryEntry entry,
Principal user)
throws RemoteException
removeRepositoryEntry in interface RepletRepositoryentry - the specified repository entry.user - the specified user.
RemoteException
public void renameRepositoryEntry(RepositoryEntry entry,
String nname,
Principal user)
throws RemoteException
renameRepositoryEntry in interface RepletRepositoryentry - the specified entry.nname - the specified new name.user - the specified user.
RemoteExceptionprotected boolean isEntryAvailable(AssetEntry entry)
isEntryAvailable in class AbstractAssetEnginepublic String getEntryIdentifier(AssetEntry entry)
getEntryIdentifier in interface AssetRepositorygetEntryIdentifier in class AbstractAssetEngineentry - AssetEntry
public inetsoft.util.IndexedStorage getStorage(AssetEntry entry)
throws Exception
getStorage in interface AssetRepositorygetStorage in class AbstractAssetEngineentry - the specified asset entry.
Exceptionprotected ReportManager getReportManager(String user)
getReportManager in class AbstractAssetEngineprotected inetsoft.uql.util.XQuotaManager getQuotaManager()
getQuotaManager in class AbstractAssetEngineprotected File getDependencyFile()
getDependencyFile in class AbstractAssetEngineprotected String getDependencyFileName()
AbstractAssetEngine
getDependencyFileName in class AbstractAssetEngine
protected XTypeNode getOutputType(String qname,
XQueryRepository rep,
boolean local,
Principal user)
throws Exception
getOutputType in class AbstractAssetEngineqname - the specified query name.rep - the specified local query repository.local - true if is a local query.user - the specified principal.
Exception
protected boolean checkQueryFolderPermission(String folder,
String source,
Principal user)
checkQueryFolderPermission in class AbstractAssetEnginefolder - the specified folder.source - the specified source.user - the specified user.
protected boolean checkQueryPermission(String query,
Principal user)
checkQueryPermission in class AbstractAssetEnginequery - the specified query.user - the specified user.
protected boolean checkDataSourcePermission(String dname,
Principal user)
checkDataSourcePermission in class AbstractAssetEnginedname - the specified datasource.user - the specified user.
protected boolean checkDataSourceFolderPermission(String folder,
Principal user)
checkDataSourceFolderPermission in class AbstractAssetEnginefolder - the specified datasource folder.user - the specified user.
public XQueryRepository getLocalQueryRepository(String rid)
getLocalQueryRepository in interface AssetRepositoryrid - the specified report id.
protected AbstractAssetEngine.ReportSheetDependencyFinder createFinder()
createFinder in class AbstractAssetEngine
protected void changeFolder0(AssetEntry oentry,
inetsoft.util.IndexedStorage ostorage,
AssetEntry nentry,
inetsoft.util.IndexedStorage nstorage,
boolean root)
throws Exception
changeFolder0 in class AbstractAssetEngineoentry - the specified old folder entry.nentry - the specified new folder entry.ostorage - the specified old indexed storage.nstorage - the specified old indexed storage.
Exception
public void importAssets(String filePath,
boolean overwriting,
List order,
HashMap names,
inetsoft.sree.adm.PartialDeploymentJarInfo info,
boolean desktop,
Principal principal,
List ignoreList)
throws Exception
Exception
public void importAssets(String filePath,
boolean overwriting,
List order,
HashMap names,
inetsoft.sree.adm.PartialDeploymentJarInfo info,
boolean desktop,
Principal principal,
List ignoreList,
inetsoft.util.audit.ActionRecord actionRecord)
throws Exception
Exception
public void importAssets(byte[] data,
boolean replace)
throws Exception
Exception
public void importAssets(byte[] data,
boolean replace,
inetsoft.util.audit.ActionRecord actionRecord)
throws Exception
Exception
public void deployReport(inetsoft.sree.adm.web.manager.DeployInfo info,
byte[] data,
boolean overwrite)
throws Exception
Exception
public void changeSheet(AssetEntry oentry,
AssetEntry nentry,
Principal user,
boolean force)
throws Exception
changeSheet in interface AssetRepositorychangeSheet in class AbstractAssetEngineoentry - the specified old sheet entry.nentry - the specified new sheet entry.user - the specified user.force - true to change sheet forcely without
checking dependency.
Exception
protected void changeSheet0(AssetEntry oentry,
inetsoft.util.IndexedStorage ostorage,
AssetEntry nentry,
inetsoft.util.IndexedStorage nstorage)
throws Exception
changeSheet0 in class AbstractAssetEngineoentry - the specified old sheet entry.nentry - the specified new sheet entry.ostorage - the specified old indexed storage.nstorage - the specified old indexed storage.
Exception
protected void removeFolder0(AssetEntry entry,
inetsoft.util.IndexedStorage storage)
throws Exception
removeFolder0 in class AbstractAssetEngineentry - the specified folder entry.storage - the specified indexed storage.
Exception
protected void removeSheet0(AssetEntry entry,
inetsoft.util.IndexedStorage storage)
throws Exception
removeSheet0 in class AbstractAssetEngineentry - the specified sheet entry.storage - the specified indexed storage.
Exception
public void addFolder(AssetEntry entry,
Principal user)
throws Exception
addFolder in interface AssetRepositoryaddFolder in class AbstractAssetEngineentry - the specified folder entry.user - the specified user.
Exception
public void setSheet(AssetEntry entry,
AbstractSheet ws,
Principal user,
boolean force)
throws Exception
setSheet in interface AssetRepositorysetSheet in class AbstractAssetEngineentry - the specified sheet entry.user - the specified user.force - true to set sheet forcely without
checking.
Exception
public AssetEntry[] getEntries(AssetEntry entry,
Principal user,
String permission,
int selector)
throws Exception
getEntries in interface AssetRepositorygetEntries in class AbstractAssetEngineentry - the specified folder entry.user - the specified user.permission - the specified access way.selector - the specified selector.
Exception
public void changeFolder(AssetEntry oentry,
AssetEntry nentry,
Principal user,
boolean force)
throws Exception
changeFolder in interface AssetRepositorychangeFolder in class AbstractAssetEngineoentry - the specified old folder entry.nentry - the specified new folder entry.user - the specified user.force - true to change folder forcely without
checking dependency.
Exception
public void removeFolder(AssetEntry entry,
Principal user,
boolean force)
throws Exception
removeFolder in interface AssetRepositoryremoveFolder in class AbstractAssetEngineentry - the specified folder entry.user - the specified user.force - true to remove folder forcely without
checking.
Exception
public void checkFolderRemoveable(AssetEntry entry,
Principal user)
throws Exception
checkFolderRemoveable in interface AssetRepositorycheckFolderRemoveable in class AbstractAssetEngineentry - the specified folder entry.user - the specified user.
Exception
public void renameUser(String oname,
String nname)
throws Exception
renameUser in interface AssetRepositoryrenameUser in class AbstractAssetEngineoname - the old name of the user.nname - the new name of the user.
Exception
public void removeUser(String name)
throws Exception
removeUser in interface AssetRepositoryremoveUser in class AbstractAssetEnginename - the name of the user.
Exception
protected void fireEvent(int entryType,
int changeType,
AssetEntry assetEntry,
String oldName)
AbstractAssetEngine
fireEvent in class AbstractAssetEngineentryType - 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.public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListener
public void setActionListener(Object rid,
ActionListener l)
public void setScheduleActionListener(Object rid,
ActionListener l)
public ActionListener getScheduleActionListener(Object rid)
public AbstractSheet getSheet(AssetEntry entry,
Principal user,
boolean permission,
AssetContent ctype)
throws Exception
getSheet in interface AssetRepositorygetSheet in class AbstractAssetEngineentry - the specified sheet entry.user - the specified user.permission - true to check permission, false
otherwise.ctype - the asset content type.
Exception
public Size getReportSize(String name,
String version,
Principal user)
getReportSize in interface RepletRepositoryname - the name of the report.version - the version of the report.user - the user for whom the request is being made.
public Image createThumbnail(String name,
String version,
Principal user)
createThumbnail in interface RepletRepositoryname - the name of the report.version - the version of the report.user - the user for whom the request is being made.
public int getExecutingCount()
public int getCount(String type)
type - Active, Queued, Executing.
public int getGeneratedPageCount()
public void resetGeneratedPageCount()
public inetsoft.sree.adm.web.monitor.ReportInfo[] getReportInfo(String type)
type - Active, Queued, Executing.
public void recordPageCount(Object id)
public void addFolder(RepositoryEntry entry,
String name,
String alias,
String description,
Principal user)
throws RemoteException
addFolder in interface RepletRepositoryentry - the specified repository entry.name - the name of new folder.alias - the alias of new folder.description - the description of new folder.user - the specified user.
RemoteExceptionpublic boolean isLogExport()
public void setLogExport(boolean log)
match - true if should log, false otherwise.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||