|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ResourceAdminService
This interface defines methods to manage the resources tree in the report server.
fullFmtdNodePath is full formatted name of a node, like the following:
(R)/(R)Tutorial/(C)mycat.cat/(RptH)myrpt.cls
Each string inside parentheses indicates the type of that node:
(R)name - Resource Node
(D)name - Virtual Resource Node of directory
(F)name - Virtual Resource Node of normal file
(C)name - Virtual Resource Node of catalog
(Rpt)name -Virtual Resource Node of report
(DH)name - Unreachable Virtual Resource Node of directory
(FH)name - Unreachable Virtual Resource Node of normal file
(CH)name - Unreachable Virtual Resource Node of catalog
(RptH)name -Unreachable Virtual Resource Node of report
| Field Summary | |
|---|---|
static int |
FORMATEDNODE_ALL
Deprecated. As of version 6, it does not have effect. |
static int |
FORMATEDNODE_CATRPT
Deprecated. As of version 6, it does not have effect. |
static int |
FORMATEDNODE_WORKING
Deprecated. As of version 6, it does not have effect. |
| Method Summary | |
|---|---|
java.lang.String |
addNode(java.lang.String realm,
java.lang.String parentPath,
byte nodeType,
java.util.Hashtable htNode)
Adds a node into the resource tree in the specific realm. |
java.lang.String |
addResourceNode(java.lang.String realm,
java.lang.String fullFmtdNodePath,
java.lang.String newNodeName,
java.lang.String realPath)
Deprecated. As of version 6, it does not have effect. |
void |
addResourceReachable(java.lang.String realm,
java.lang.String fullFmtdNodePath,
java.util.Vector reachableFiles)
Deprecated. As of version 6, it does not have effect. |
void |
declareVirtualNode(java.lang.String realm,
java.lang.String fullFmtdNodePath,
boolean subCanReachable)
Deprecated. As of version 6, it does not have effect. |
void |
deleteNode(java.lang.String realm,
java.lang.String nodePath)
Deletes the specific node. |
void |
deleteResourceNode(java.lang.String realm,
java.lang.String fullFmtdNodePath)
Deprecated. As of version 6, it does not have effect. |
void |
editNode(java.lang.String realm,
java.lang.String nodePath,
java.util.Hashtable htNode)
Edits the specific resource node. |
void |
editResourceNode(java.lang.String realm,
java.lang.String fullFmtdNodePath,
java.lang.String resName,
java.lang.String realpath,
java.lang.String description,
boolean reachable,
boolean isMapSharedDisk)
Deprecated. As of version 6, it does not have effect. |
ResourceNodeInfo |
getResourceNodeInfo(java.lang.String realm,
java.lang.String fullFmtdNodePath)
Deprecated. As of version 6, it does not have effect. |
java.util.Vector |
getSubRscNodesInfo(java.lang.String realm,
java.lang.String fullFmtdNodePath,
int listType)
Deprecated. As of version 6, it does not have effect. |
void |
setVirtualReachable(java.lang.String realm,
java.lang.String fullFmtdNodePath,
boolean reachable)
Deprecated. As of version 6, it does not have effect. |
java.lang.Object[] |
upgradeResources(java.lang.String realm,
java.lang.String userID,
boolean isUpgradePublicReports,
boolean isUpgradeUserReports,
boolean isReplaceOldResource)
upgrade resources (report, catalog, dashboard, lc, and va) to the latest version. |
| Field Detail |
|---|
static final int FORMATEDNODE_CATRPT
static final int FORMATEDNODE_WORKING
static final int FORMATEDNODE_ALL
| Method Detail |
|---|
java.lang.String addResourceNode(java.lang.String realm,
java.lang.String fullFmtdNodePath,
java.lang.String newNodeName,
java.lang.String realPath)
throws NoSuchRealmException,
UnknownMIMEType,
UnknownResource,
ResourceAdminServiceException,
ResourceInfoException
realm - the realm in which the resource tree exists.fullFmtdNodePath - the full formatted path of the resource node, for example, (R)/(R)SunVMDemo.newNodeName - the name of new added resource node.realPath - the relative real path for new added resource node.
NoSuchRealmException - UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
void deleteResourceNode(java.lang.String realm,
java.lang.String fullFmtdNodePath)
throws NoSuchRealmException,
UnknownMIMEType,
UnknownResource,
ResourceAdminServiceException,
ResourceInfoException
realm - the realm in which the resource tree exists.fullFmtdNodePath - the full formatted path of the resource node, for example, (R)/(R)SunVMDemo.
NoSuchRealmException - UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
void editResourceNode(java.lang.String realm,
java.lang.String fullFmtdNodePath,
java.lang.String resName,
java.lang.String realpath,
java.lang.String description,
boolean reachable,
boolean isMapSharedDisk)
throws NoSuchRealmException,
java.io.IOException,
UnknownResource,
UnknownMIMEType,
ResourceAdminServiceException,
ResourceInfoException
realm - the realm in which the resource tree exists.fullFmtdNodePath - the full formatted path of the resource node, for example, (R)/(R)SunVMDemo.resName - the new name of the resource node.realpath - the new real path of the resource node.description - the information with which user described the resource node.reachable - if the sub nodes are reachable.isMapSharedDisk - if this resource node maps to a shared disk.
NoSuchRealmException - IOException
UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
java.io.IOException
UnknownResource
UnknownMIMEType
ResourceAdminServiceException
ResourceInfoException
void addResourceReachable(java.lang.String realm,
java.lang.String fullFmtdNodePath,
java.util.Vector reachableFiles)
throws NoSuchRealmException,
UnknownResource,
UnknownMIMEType,
ResourceAdminServiceException,
java.io.IOException
realm - the realm in which the resource tree exists.fullFmtdNodePath - the full formatted path of the resource node, for example, (R)/(R)SunVMDemo.reachableFiles - the file name added to resource node.
NoSuchRealmException - UnknownMIMEType
UnknownResource
ResourceAdminServiceException
IOException
UnknownResource
UnknownMIMEType
ResourceAdminServiceException
java.io.IOException
void declareVirtualNode(java.lang.String realm,
java.lang.String fullFmtdNodePath,
boolean subCanReachable)
throws NoSuchRealmException,
UnknownResource,
UnknownMIMEType,
java.io.IOException,
ResourceInfoException
realm - the realm in which the resource tree exists.fullFmtdNodePath - the full formatted path of the virtual resource nodesubreachable - if the sub nodes are reachable.
NoSuchRealmException - UnknownMIMEType
UnknownResource
IOException
ResourceInfoException
UnknownResource
UnknownMIMEType
java.io.IOException
ResourceInfoException
void setVirtualReachable(java.lang.String realm,
java.lang.String fullFmtdNodePath,
boolean reachable)
throws NoSuchRealmException,
UnknownResource,
UnknownMIMEType,
java.io.IOException,
ResourceInfoException
realm - the realm in which the resource tree exists.fullFmtdNodePath - the full format path of the virtual resource nodereachable - if the resource node and its sub nodes are reachable.
NoSuchRealmException - UnknownMIMEType
UnknownResource
IOException
ResourceInfoException
UnknownResource
UnknownMIMEType
java.io.IOException
ResourceInfoException
ResourceNodeInfo getResourceNodeInfo(java.lang.String realm,
java.lang.String fullFmtdNodePath)
throws NoSuchRealmException,
UnknownResource,
UnknownMIMEType,
java.io.IOException
realm - the realm in which the resource node exists.fullFmtdNodePath - the full formatted path of the node, for example, (R)/(R)SunVMDemo.
NoSuchRealmException - UnknownMIMEType
UnknownResource
IOException
UnknownResource
UnknownMIMEType
java.io.IOException
java.util.Vector getSubRscNodesInfo(java.lang.String realm,
java.lang.String fullFmtdNodePath,
int listType)
throws NoSuchRealmException,
UnknownResource,
UnknownMIMEType,
java.io.IOException
realm - the realm in which the resource node exists.fullFmtdNodePath - the full formatted path of the node, for example, (R)/(R)SunVMDemo.listType - FORMATEDNODE_CATRPT Lists all sub resource nodes, catalogs and their reports as well NoSuchRealmException - UnknownMIMEType
UnknownResource
IOException
UnknownResource
UnknownMIMEType
java.io.IOException
java.lang.String addNode(java.lang.String realm,
java.lang.String parentPath,
byte nodeType,
java.util.Hashtable htNode)
throws NoSuchRealmException,
UnknownMIMEType,
UnknownResource,
ResourceAdminServiceException,
ResourceInfoException
realm - the realm in which the resource tree exists.parentPath - the parent path to specify which node the new resource node
will be added into, for example, /SunVMDemo.nodeType - the new added node typehtNode - properties of new node, ie. new node name, description, realPath (for folder and resource),
max version amount(resource), etc.
NoSuchRealmException - UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
void deleteNode(java.lang.String realm,
java.lang.String nodePath)
throws NoSuchRealmException,
UnknownMIMEType,
UnknownResource,
ResourceAdminServiceException,
ResourceInfoException
realm - the realm in which the resource tree exists.nodePath - the full path of the node, for example, /SunVMDemo.
NoSuchRealmException - UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
void editNode(java.lang.String realm,
java.lang.String nodePath,
java.util.Hashtable htNode)
throws NoSuchRealmException,
java.io.IOException,
UnknownResource,
UnknownMIMEType,
ResourceAdminServiceException,
ResourceInfoException
realm - the realm in which the resource tree exists.nodePath - the full path of the node, for example, /SunVMDemo.htNode - new properties of specified node, ie. new node name, description, realPath (for folder and resource),
max version amount(resource), etc.
NoSuchRealmException - IOException
UnknownMIMEType
UnknownResource
ResourceAdminServiceException
ResourceInfoException
java.io.IOException
UnknownResource
UnknownMIMEType
ResourceAdminServiceException
ResourceInfoException
java.lang.Object[] upgradeResources(java.lang.String realm,
java.lang.String userID,
boolean isUpgradePublicReports,
boolean isUpgradeUserReports,
boolean isReplaceOldResource)
throws NoSuchRealmException
realm - the realm in which want to upgrade resourcesuserID - user name, must be administratorsisUpgradePublicReports - upgrade resources under public folders or not, true means yesisUpgradeUserReports - upgrade resources under user folders or not, trur means yesisReplaceOldReports - use upgraded version to replace the old version, or save as new version, true
means replace old version.
Integer, indicates resource number that need to upgrade,
element 1 is a Integer, indicates resource number that upgrade successfully.
NoSuchRealmException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||