|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteResourceManager
This RMI interface defines methods to explore the resources in the report server.
| Method Summary | |
|---|---|
java.lang.String |
addFolder(java.lang.String userID,
java.lang.String parentPath,
java.util.Hashtable htFolder)
Deprecated. since version 6.1, replaced by createFolder(...) and addResourcesToFolder(...). the param "includesSubDir" of the method addResourcesToFolder(...) should be true in this case. |
VersionRecord |
addResource(java.lang.String userID,
java.lang.String folderPath,
boolean isAutoConvert,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
Add a resource into specific folder |
VersionRecord |
addResource(java.lang.String userID,
java.lang.String folderPath,
java.util.Hashtable htResource)
Deprecated. since version 6.1, replaced by addResource(String userID, String folderPath, Hashtable htResource, Hashtable[] permissions) |
VersionRecord |
addResource(java.lang.String userID,
java.lang.String folderPath,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
Add a resource into specific folder |
void |
addResourcesToFolder(java.lang.String userID,
java.lang.String folderPath,
java.lang.String fromRealDir,
boolean includesSubDir,
boolean isAutoConvert,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
Add files and sub-folders into specific folder |
void |
addResourcesToFolder(java.lang.String userID,
java.lang.String folderPath,
java.lang.String fromRealDir,
boolean includesSubDir,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
Add files and sub-folders into specific folder |
VersionRecord |
addResultInReport(java.lang.String userID,
java.lang.String reportPath,
java.util.Hashtable htResult)
Add a result into specific report |
boolean |
checkPermission(java.lang.String userID,
java.lang.String resourcePath,
int versionNumber,
java.security.acl.Permission permission)
Check specific user has or does not have a permission on specific version number of a resource path. |
boolean |
checkPermission(java.lang.String userID,
java.lang.String resourcePath,
java.security.acl.Permission permission)
Check specific user has or does not have a permission on specific resource path. |
java.lang.String |
createFolder(java.lang.String userID,
java.lang.String parentPath,
java.lang.String folderName,
java.util.Hashtable htFolder,
java.util.Hashtable[] permissions)
Add a sub-folder into specific folder |
java.util.Vector |
getAllRoles(java.lang.String submitter)
Get all roles |
java.util.Vector |
getAllUsers(java.lang.String submitter)
Get all users |
java.util.Vector |
getCatalogsInPath(java.lang.String userID,
java.lang.String path)
Get catalogs in a resource path. |
CatalogVersionRecord |
getCatalogVersion(java.lang.String userID,
java.lang.String catName,
int versionNumber)
Get a catalog version by catalog name and version number |
java.util.Vector |
getCatalogVersions(java.lang.String userID,
java.lang.String catName)
Get versions of specific catalog. |
java.util.Vector |
getEnabledCustomFieldNames()
Get all names of enabled custom fields |
java.lang.String[] |
getExtensions(java.lang.String mimieType)
Get file extensions of the MIME type. |
java.util.Vector |
getFileSysDirsInPath(java.lang.String userID,
java.lang.String path)
Get sub-directories in a resource path. |
java.util.Vector |
getFileSysFilesInPath(java.lang.String userID,
java.lang.String path)
Get files in a resource path. |
java.util.Vector |
getFoldersInPath(java.lang.String userID,
java.lang.String path)
Get folders in a resource path. |
java.lang.String |
getHistDir()
Get the directory which result versions are saved to. |
java.lang.String |
getHistFile(java.lang.String file)
Get the history file . |
java.util.Vector |
getImagesByCatalog(java.lang.String userID,
java.lang.String catalog)
Get inherited permissions of users that attached to specific path |
java.lang.String |
getInheritedLinkedCatalog(java.lang.String userID,
java.lang.String path)
Get inherited linked catalog |
java.util.Hashtable[] |
getInheritedPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
Get inherited permissions of users that attached to specific path |
int |
getLatestVersionNumber(java.lang.String resourcePath)
Get the latest version number of specific resource. |
int |
getLatestVersionNumber(java.lang.String resourcePath,
java.lang.String userID)
Get the latest version number of specific resource. |
java.lang.String |
getMIMEType(java.lang.String extName)
Get the MIME type of a file extension. |
PathInfo |
getPathInfo(java.lang.String userID,
java.lang.String path)
Get PathInfo. |
java.util.Hashtable[] |
getPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
Get defined permissions of users that attached to specific path |
java.lang.String |
getRealm()
Get the active realm. |
java.lang.String |
getRealmDir()
Get the directory of the active realm. |
java.lang.String |
getRealPathOfNode(java.lang.String userID,
java.lang.String path)
Get real path property of a node, which is specifid by path |
java.util.Vector |
getReferGroups(java.lang.String userID)
Get groups which specific user referred, these groups contain specific user |
java.util.Vector |
getReferRoles(java.lang.String userID)
Get roles which specific user referred, |
java.util.Vector |
getReferUsers(java.lang.String userID)
Get users which specific user referred, these users have same role except administrator and everyone with specific user |
java.util.Vector |
getReports(java.lang.String userID,
java.lang.String catalog)
Get reports of a catalog. |
java.util.Vector |
getReportsInPath(java.lang.String userID,
java.lang.String path)
Get reports in a resource path. |
ReportVersionRecord |
getReportVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
Get a version of specific report by version number. |
java.util.Vector |
getReportVersions(java.lang.String userID,
java.lang.String rptName)
Get versions of specific report. |
ResultVersionRecord |
getResultDocVersion(java.lang.String userID,
java.lang.String resultDocName,
int versionNumber)
Get version of specific result doc by version number. |
java.util.Vector |
getResultDocVersions(java.lang.String userID,
java.lang.String resultDocName)
Get versions of specific result doc. |
int |
getResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource)
Get max version limited amount for specific report's result. |
java.util.Vector |
getResultsInPath(java.lang.String userID,
java.lang.String path)
Get results in a resource path. |
ResultVersionRecord |
getResultVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
Get a result version attach to specific report by version number. |
ResultVersionRecord |
getResultVersionByNodeID(java.lang.String recordID)
Get a result version by node id |
java.util.Vector |
getResultVersions(java.lang.String userID,
java.lang.String rptName)
Get result versions attach to specific report. |
java.util.Vector |
getRolesByUser(java.lang.String submitter,
java.lang.String userID)
Get roles which specific user has |
java.lang.String |
getRoot()
Get the resource root directory of the report server. |
java.lang.String |
getSchedulePath()
Get the path of the Schedule. |
java.util.Vector |
getSubnodes(java.lang.String userID,
java.lang.String path)
Get the sub-nodes of a resource node in the resource tree. |
java.util.Vector |
getSubpaths(java.lang.String userID,
java.lang.String path)
Get sub-paths of a resource path. |
java.util.Vector |
getSubpathsAndCatalogs(java.lang.String userID,
java.lang.String path)
Get sub-paths of a resource path and catalogs. |
java.lang.String |
getTempDir()
Get the temporary directory of the server. |
java.util.Vector |
getUsersByRole(java.lang.String submitter,
java.lang.String roleID)
Get users who has specific role |
boolean |
isAdminUser(java.lang.String userID)
Check if a user is an administrator |
boolean |
isCatalogLinked(java.lang.String userID,
java.lang.String path)
Check whether the catalog is linked |
boolean |
isNodeExist(java.lang.String path,
java.lang.String userName)
Checks whether or not the specified node does exist. |
void |
loadUserResAliasToMem(java.lang.String userID)
load resource alias of user and save them into memory |
java.lang.String |
refreshFolders(java.lang.String userID)
Refresh the folders represent in UI for specific user. |
void |
removeNode(java.lang.String userID,
java.lang.String path)
Remove specific node which was indicated by path. |
void |
removeVersion(java.lang.String userID,
java.lang.String versionID)
Remove specific version. |
void |
rmUserResAliasFromMem(java.lang.String userID)
remove resource alias of user from memory |
void |
setNodeProperties(java.lang.String userID,
java.lang.String path,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
Set properties and permissions of users for specific path |
void |
setNodeProperties(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
Set properties and permissions of users for specific version of path |
void |
setPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable[] permissions)
Set permissions of users for specific path |
void |
setResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource,
int maxVersionAmount)
Set max version limited amount for specific report's result. |
void |
setResultVersionProperties(java.lang.String userID,
java.lang.String report,
int versionNumber,
java.util.Hashtable htProps)
Set properties of users for specific result version of report |
| Method Detail |
|---|
java.lang.String getMIMEType(java.lang.String extName)
throws java.rmi.RemoteException
extName - the file extension.
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String[] getExtensions(java.lang.String mimieType)
throws java.rmi.RemoteException
mimieType - the MIME type.
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String getRealm()
throws java.rmi.RemoteException
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String getRealmDir()
throws java.rmi.RemoteException
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String getTempDir()
throws java.rmi.RemoteException
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String getHistDir()
throws java.rmi.RemoteException
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String getRoot()
throws java.rmi.RemoteException
java.rmi.RemoteException - if a RemoteException occurs.
PathInfo getPathInfo(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getSubpaths(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getSubpathsAndCatalogs(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getSubnodes(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.path - the resource node. For example: /SunVMDemo.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getCatalogsInPath(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getFileSysDirsInPath(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getFileSysFilesInPath(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getReports(java.lang.String userID,
java.lang.String catalog)
throws java.rmi.RemoteException,
RptServerException
userID - the user ID.catalog - the catalog. For example: /SunVMDemo/SunVMDemo.cat.
java.rmi.RemoteException - if a RemoteException occurs.
RptServerException - if a RptServerException occurs.PathInfo
java.lang.String getSchedulePath()
throws java.rmi.RemoteException
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String getHistFile(java.lang.String file)
throws java.rmi.RemoteException
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getReportsInPath(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID.path - the resource path. For example: /SunVMDemo.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.PathInfo
java.util.Vector getResultsInPath(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID.path - the resource path. For example: /SunVMDemo.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.PathInfo
java.util.Vector getFoldersInPath(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID.path - the resource path. For example: /SunVMDemo.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.PathInfo
java.util.Vector getCatalogVersions(java.lang.String userID,
java.lang.String catName)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,catName - the catalog name. For example: /SampleReports/SampleReports.cat.
Vector object contains
CatalogVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.CatalogVersionRecord
java.util.Vector getReportVersions(java.lang.String userID,
java.lang.String rptName)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,rptName - the report name. For example: /SampleReports/CustomerAnalysis.cls.
Vector object contains
ReportVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.ReportVersionRecord
java.util.Vector getResultVersions(java.lang.String userID,
java.lang.String rptName)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,rptName - the report name. For example: /SampleReports/CustomerAnalysis.cls.
Vector object contains
ResultVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.ResultVersionRecord
java.util.Vector getResultDocVersions(java.lang.String userID,
java.lang.String resultDocName)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,resultDocName - the result doc name. For example: /SampleReports/resultdoc1.
Vector object contains
ResultVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.ResultVersionRecord
CatalogVersionRecord getCatalogVersion(java.lang.String userID,
java.lang.String catName,
int versionNumber)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,catName - the catalog name. For example: /SampleReports/Tutorail.cat.versionNumber - the version number
CatalogVersionRecord object.
or null if can not get specific version
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.CatalogVersionRecord
ReportVersionRecord getReportVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,rptName - the report name. For example: /SampleReports/CustomerAnalysis.cls.versionNumber - the version number
ReportVersionRecord object. or null if can not get specific version
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.ReportVersionRecord
ResultVersionRecord getResultVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,rptName - the report name. For example: /SampleReports/CustomerAnalysis.cls.versionNumber - the version number
ResultVersionRecord object. or null if can not get specific version
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.ResultVersionRecord
ResultVersionRecord getResultDocVersion(java.lang.String userID,
java.lang.String resultDocName,
int versionNumber)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID,resultDocName - the result doc name. For example: /SampleReports/resultdoc1.versionNumber - the version number
ResultVersionRecord object. or null if can not get specific version
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.ResultVersionRecord
void setResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource,
int maxVersionAmount)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID.reportResource - the report resource name. For example: /SampleReports/CustomerAnalysis.clsmaxVersionAmount - new max version limited amount value, if it is 0 or a nagetive value, the version
amount of specific resource will be unlimited.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
int getResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID.reportResource - the report resource name. For example: /SampleReports/CustomerAnalysis.cls
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
void removeNode(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID.path - path to specify which resource will be remove.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
VersionRecord addResource(java.lang.String userID,
java.lang.String folderPath,
java.util.Hashtable htResource)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user IDfolderPath - path to specify folder, in which new resource will be addedhtResource - a Hashtable that contains attributes of new resource,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_NAME, TAG_RESOURCE_TYPE, TAG_DEFINE_PERMISSION, etc.
VersionRecord object to represent a resource version that just added,
or null if add resource failed.
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
VersionRecord addResource(java.lang.String userID,
java.lang.String folderPath,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user IDfolderPath - path to specify folder, in which new resource will be addedhtResource - a Hashtable that contains attributes of new resource,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_NAME, TAG_RESOURCE_TYPE, etc.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions attached to specific path.
In this Hashtable object, key is user name, value is a Vector object which contains all permissions
(e.g. jet.server.api.Permissions.P_READ) that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path and its structure is similar to user/permissions
The structure of Hashtable[] permissions is:
VersionRecord object to represent a resource version that just added,
or null if add resource failed.
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if no node can be found by the path
java.rmi.RemoteException
VersionRecord addResource(java.lang.String userID,
java.lang.String folderPath,
boolean isAutoConvert,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user IDfolderPath - path to specify folder, in which new resource will be addedisAutoConvert - whether convert the old version report to lastest version reporthtResource - a Hashtable that contains attributes of new resource,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_NAME, TAG_RESOURCE_TYPE, etc.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions attached to specific path.
In this Hashtable object, key is user name, value is a Vector object which contains all permissions
(e.g. jet.server.api.Permissions.P_READ) that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path and its structure is similar to user/permissions
The structure of Hashtable[] permissions is:
VersionRecord object to represent a resource version that just added,
or null if add resource failed.
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if no node can be found by the path
java.rmi.RemoteException
VersionRecord addResultInReport(java.lang.String userID,
java.lang.String reportPath,
java.util.Hashtable htResult)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user IDreportPath - path to specify report, in which new report will be addedhtResult - a Hashtable that contains attributes of new result,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_NAME, TAG_RESOURCE_TYPE, TAG_DEFINE_PERMISSION, etc.
VersionRecord object to represent a result version that just added,
or null if add result failed.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String addFolder(java.lang.String userID,
java.lang.String parentPath,
java.util.Hashtable htFolder)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user IDparentPath - path to specify in which folder new resource will be addedhtFolder - a Hashtable that contains attributes of new folder,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_NAME, TAG_DEFINE_PERMISSION, etc.
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String createFolder(java.lang.String userID,
java.lang.String parentPath,
java.lang.String folderName,
java.util.Hashtable htFolder,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user IDparentPath - path to specify in which folder new resource will be addedfolderName - name of the new folderhtFolder - a Hashtable that contains attributes of new folder,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_DESC, etc.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions attached to specific path.
In this Hashtable object, key is user name, value is a Vector object which contains all permissions
(e.g. jet.server.api.Permissions.P_READ) that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path and its structure is similar to user/permissions
The structure of Hashtable[] permissions is:
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if no node can be found by the path
java.rmi.RemoteException
void addResourcesToFolder(java.lang.String userID,
java.lang.String folderPath,
java.lang.String fromRealDir,
boolean includesSubDir,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user IDfolderPath - path to specify in which folder new resource will be addedfromRealDir - the real directory which contains these files and sub-folders.includesSubDir - indicates that only add files to the folder.htResource - a Hashtable that contains attributes of new resource,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_NAME, TAG_RESOURCE_TYPE, etc.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions attached to specific path.
In this Hashtable object, key is user name, value is a Vector object which contains all permissions
(e.g. jet.server.api.Permissions.P_READ) that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path and its structure is similar to user/permissions
The structure of Hashtable[] permissions is:
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if no node can be found by the path
java.rmi.RemoteException
void addResourcesToFolder(java.lang.String userID,
java.lang.String folderPath,
java.lang.String fromRealDir,
boolean includesSubDir,
boolean isAutoConvert,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user IDfolderPath - path to specify in which folder new resource will be addedfromRealDir - the real directory which contains these files and sub-folders.includesSubDir - indicates that only add files to the folder.isAutoConvert - whether convert the old version report to lastest version reporthtResource - a Hashtable that contains attributes of new resource,
these attributes can be indicated by some defined constant in APIConst,
for example: TAG_NODE_NAME, TAG_RESOURCE_TYPE, etc.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions attached to specific path.
In this Hashtable object, key is user name, value is a Vector object which contains all permissions
(e.g. jet.server.api.Permissions.P_READ) that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path and its structure is similar to user/permissions
The structure of Hashtable[] permissions is:
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if no node can be found by the path
java.rmi.RemoteException
void removeVersion(java.lang.String userID,
java.lang.String versionID)
throws java.rmi.RemoteException,
NoPrivilegeException
userID - the user IDversionID - the version ID which want to be removed, user can get it from
VersionRecord.
NoPrivilegeException - if a NoPrivilegeException occurs.
java.rmi.RemoteException - if a RemoteException occurs.VersionRecord
java.util.Vector getAllUsers(java.lang.String submitter)
throws java.rmi.RemoteException
submitter - user id who sends this request
Vector object contains all user names, or null if
submitter has not permission for get all users.
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getUsersByRole(java.lang.String submitter,
java.lang.String roleID)
throws java.rmi.RemoteException,
NoSuchRoleException
submitter - user id who sends this requestroleID - the role ID
Vector object contains user names who has specific role,
or null if submitter has not permission for get users by this role.
NoSuchRoleException - if a NoPrivilegeException occurs.
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getAllRoles(java.lang.String submitter)
throws java.rmi.RemoteException
submitter - user id who sends this request
Vector object contains all role names, or null if
submitter has not permission for get all roles.
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getRolesByUser(java.lang.String submitter,
java.lang.String userID)
throws java.rmi.RemoteException,
NoSuchUserException
submitter - user id who sends this requestuserID - the user ID
Vector object contains role names which specific user has,
or null if submitter has not permission for get roles by this user.
NoSuchUserException - if a NoSuchUserException occurs
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getReferRoles(java.lang.String userID)
throws java.rmi.RemoteException,
NoSuchUserException
userID - the user ID
Vector object contains role names which specific user referred,
these roles are specific user has but except administrator and everyone.
NoSuchUserException - if a NoSuchUserException occurs
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getReferGroups(java.lang.String userID)
throws java.rmi.RemoteException,
NoSuchUserException
userID - the user ID
Vector object contains group names which specific user referred,
NoSuchUserException - if a NoSuchUserException occurs
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getReferUsers(java.lang.String userID)
throws java.rmi.RemoteException,
NoSuchUserException
userID - the user ID
Vector object contains user names which specific user referred,
NoSuchUserException - if a NoSuchUserException occurs
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Hashtable[] getPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID who want to get permissionspath - the path which attachs permissionsversionNumber - version number to specify version of the path, if its value
is 0, get the latest version.
Hashtable array, which contains two Hashtable objects. The first
Hashtable contains several user/permissions pair to represent defined permissions
attached to specific path, In this Hashtable object, key is user name, value is a
Vector object which contains all permissions that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path. Or null if the user has not permission to get permissions
on specific path.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Hashtable[] getInheritedPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID who want to get permissionspath - the path which attachs permissionsversionNumber - version number to specify version of the path, if its value
is 0, get the latest version.
Hashtable array, which contains two Hashtable objects. The first
Hashtable contains several user/permissions pair to represent defined permissions
attached to specific path, In this Hashtable object, key is user name, value is a
Vector object which contains all permissions that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
inherited permissions on specific path. Or null if the user has not permission to get permissions
on specific path.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
java.util.Vector getImagesByCatalog(java.lang.String userID,
java.lang.String catalog)
throws NoPrivilegeException,
UnknownResource,
java.rmi.RemoteException
userID - the user ID who want to get permissionscatalog - the full catalog path. For example: /SunVMDemo/SunVMDemo.cat.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
void setPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID who want to set permissionspath - the path which will be set attached permissionsversionNumber - version number to specify version of the path, if its value
is 0, get the latest version.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions
attached to specific path, In this Hashtable object, key is user name, value is a
Vector object which contains all permissions that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path.
The structure of Hashtable[] permissions is:
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
void setNodeProperties(java.lang.String userID,
java.lang.String path,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
NodeExistsException,
UnknownResource
userID - the user ID who want to set propertiespath - the path which will be set properties and permissionshtProps - properties of specific node, these properties are indicated by
APIConst.TAG_MAXVERSION, APIConst.TAG_REPLACE_OLD_VERSION, APIConst.TAG_NODE_REAL_PATH,
APIConst.TAG_TAG_ENABLE_DEFAULT_LINKED_CATALOG, APIConst.TAG_DEFAULT_LINKED_CATALOG
APIConst.TAG_IS_USING_INHERITED, etc.
all values are represented by a String.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions
attached to specific path, In this Hashtable object, key is user name, value is a
Vector object which contains all permissions that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path.
The structure of Hashtable[] permissions is:
NoPrivilegeException - if a NoPrivilegeException occurs.
NodeExistsException - if a NodeExistsException occurs.
UnknownResource - if a UnknownResource occurs.
java.rmi.RemoteException - if a RemoteException occurs.
void setNodeProperties(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID who want to set propertiespath - the path which will be set propertiess and permissions for attached versionversionNumber - the version number, if it is zero, it means the path selfhtProps - properties of specific node, these properties are indicated by
APIConst.TAG_EXPIRED_TIME, etc.
all values are represented by a String.permissions - a Hashtable array, which contains two Hashtable objects.
The first Hashtable contains several user/permissions pair to represent permissions
attached to specific path, In this Hashtable object, key is user name, value is a
Vector object which contains all permissions that the user has on specific path.
The second Hashtable object contains several role/permissions pair to represent
defined permissions on specific path.
The structure of Hashtable[] permissions is:
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if a UnknownResource occurs.
java.rmi.RemoteException - if a RemoteException occurs.
void setResultVersionProperties(java.lang.String userID,
java.lang.String report,
int versionNumber,
java.util.Hashtable htProps)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user ID who want to set propertiesreport - the report which will be set propertiess for attached result versionversionNumber - the version number, if it is zero or a invalid version number, no action will perform.htProps - properties of specific node, these properties are indicated by
APIConst.TAG_EXPIRED_TIME, etc.
all values are represented by a String.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if a UnknownResource occurs.
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String getRealPathOfNode(java.lang.String userID,
java.lang.String path)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
userID - the user idpath - path to specify a node (a folder, catalog, or report)
NoPrivilegeException - if the user has not permission to get specific node's realPath
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
java.lang.String refreshFolders(java.lang.String userID)
throws java.rmi.RemoteException
userID - the user id.
java.rmi.RemoteException - if a RemoteException occurs.
int getLatestVersionNumber(java.lang.String resourcePath)
throws java.rmi.RemoteException,
UnknownResource
resourcePath - resource path to specify a resource
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
int getLatestVersionNumber(java.lang.String resourcePath,
java.lang.String userID)
throws java.rmi.RemoteException,
UnknownResource
resourcePath - resource path to specify a resourceuserID - the user id
UnknownResource - if no node can be found by the path.
java.rmi.RemoteException - if a RemoteException occurs.
boolean isAdminUser(java.lang.String userID)
throws java.rmi.RemoteException
userID - the user id
java.rmi.RemoteException - if a RemoteException occurs.
boolean isNodeExist(java.lang.String path,
java.lang.String userName)
throws java.rmi.RemoteException
path - the specific resource pathuserName - the user name
java.rmi.RemoteException
ResultVersionRecord getResultVersionByNodeID(java.lang.String recordID)
throws java.rmi.RemoteException,
NoPrivilegeException,
UnknownResource
recordID - the node id
java.rmi.RemoteException
NoPrivilegeException
UnknownResourceResultVersionRecord
boolean checkPermission(java.lang.String userID,
java.lang.String resourcePath,
java.security.acl.Permission permission)
throws NoSuchUserException,
UnknownResource,
java.rmi.RemoteException
userID - the user idresourcePath - the resourc pathpermission - a permission, it should be one of the permissions that defined in jet.server.api.Permissions.
NoSuchUserException - if NoSuchUserException occurs
UnknownResource - if no node can be found by the path
java.rmi.RemoteException - if RemoteException occurs
boolean checkPermission(java.lang.String userID,
java.lang.String resourcePath,
int versionNumber,
java.security.acl.Permission permission)
throws NoSuchUserException,
UnknownResource,
java.rmi.RemoteException
userID - the user idresourcePath - the resource pathversionNumber - the version number of the resource pathpermission - a permission, it should be one of the permissions that defined in jet.server.api.Permissions.
NoSuchUserException - if NoSuchUserException occurs
UnknownResource - if no node can be found by the path
java.rmi.RemoteException - if RemoteException occurs
void loadUserResAliasToMem(java.lang.String userID)
throws java.rmi.RemoteException
userID - the user name
java.rmi.RemoteException
void rmUserResAliasFromMem(java.lang.String userID)
throws java.rmi.RemoteException
userID - the user name
java.rmi.RemoteException
java.lang.String getInheritedLinkedCatalog(java.lang.String userID,
java.lang.String path)
throws NoPrivilegeException,
UnknownResource,
java.rmi.RemoteException
userID - the user namepath - the resource path
NoPrivilegeException
UnknownResource
java.rmi.RemoteException
boolean isCatalogLinked(java.lang.String userID,
java.lang.String path)
throws NoPrivilegeException,
UnknownResource,
java.rmi.RemoteException
userID - the user namepath - the catalog path
NoPrivilegeException
UnknownResource
java.rmi.RemoteException
java.util.Vector getEnabledCustomFieldNames()
throws java.rmi.RemoteException
NoPrivilegeException
UnknownResource
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||