|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ResourceManager
This 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)
Deprecated. As of version 6, it has replaced by getFoldersInPath(). |
java.util.Vector |
getFileSysFilesInPath(java.lang.String userID,
java.lang.String path)
Deprecated. As of version 6, it was obsolete. |
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)
|
java.util.Vector |
getImagesByCatalog(java.lang.String userID,
java.lang.String path)
Get image files in the resource 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)
Deprecated. As of version 6, it has replaced by getReportsInPath(). |
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)
getet 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()
|
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)
Deprecated. As of version 6, it has replaced by getFoldersInPath(). |
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 from db 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)
extName - the file extension.
java.lang.String[] getExtensions(java.lang.String mimieType)
mimieType - the MIME type.
java.lang.String getRealm()
java.lang.String getRealmDir()
java.lang.String getTempDir()
java.lang.String getHistDir()
java.lang.String getRoot()
PathInfo getPathInfo(java.lang.String userID,
java.lang.String path)
throws RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getSubpaths(java.lang.String userID,
java.lang.String path)
throws RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getSubpathsAndCatalogs(java.lang.String userID,
java.lang.String path)
throws RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getSubnodes(java.lang.String userID,
java.lang.String path)
throws RptServerException
userID - the user ID.path - the resource node. For example: /SunVMDemo.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getCatalogsInPath(java.lang.String userID,
java.lang.String path)
throws RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getFileSysDirsInPath(java.lang.String userID,
java.lang.String path)
throws RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getFileSysFilesInPath(java.lang.String userID,
java.lang.String path)
throws RptServerException
userID - the user ID.path - the resource path. For example: /SunVMDemo.
RptServerException - if a RptServerException occurs.PathInfo
java.util.Vector getReports(java.lang.String userID,
java.lang.String catalog)
throws RptServerException
userID - the user ID.catalog - the catalog. For example: /SunVMDemo/SunVMDemo.cat.
RptServerException - if a RptServerException occurs.PathInfojava.lang.String getSchedulePath()
java.lang.String getHistFile(java.lang.String file)
java.util.Vector getReportsInPath(java.lang.String userID,
java.lang.String path)
throws 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 pathPathInfo
java.util.Vector getImagesByCatalog(java.lang.String userID,
java.lang.String path)
throws NoPrivilegeException,
UnknownResource
userID - the user ID.catalog - the full catalog path. For example: /SunVMDemo/SunVMDemo.cat.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the pathPathInfo
java.util.Vector getResultsInPath(java.lang.String userID,
java.lang.String path)
throws 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 pathPathInfo
java.util.Vector getFoldersInPath(java.lang.String userID,
java.lang.String path)
throws 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 pathPathInfo
java.util.Vector getCatalogVersions(java.lang.String userID,
java.lang.String catName)
throws NoPrivilegeException,
UnknownResource
userID - the user ID,catName - the catalog name. For example: /SampleReports/Tutorail.cat.
CatalogVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the pathCatalogVersionRecord
java.util.Vector getReportVersions(java.lang.String userID,
java.lang.String rptName)
throws NoPrivilegeException,
UnknownResource
userID - the user ID,rptName - the report name. For example: /SampleReports/CustomerAnalysis.cls.
ReportVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the pathReportVersionRecord
java.util.Vector getResultVersions(java.lang.String userID,
java.lang.String rptName)
throws NoPrivilegeException,
UnknownResource
userID - the user ID,rptName - the report name. For example: /SampleReports/CustomerAnalysis.cls.
ResultVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the pathResultVersionRecord
java.util.Vector getResultDocVersions(java.lang.String userID,
java.lang.String resultDocName)
throws NoPrivilegeException,
UnknownResource
userID - the user ID,resultDocName - the result doc name. For example: /SampleReports/resultdoc1.
ResultVersionRecord objects.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the pathResultVersionRecord
CatalogVersionRecord getCatalogVersion(java.lang.String userID,
java.lang.String catName,
int versionNumber)
throws 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 pathCatalogVersionRecord
ReportVersionRecord getReportVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
throws 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 pathReportVersionRecord
ResultVersionRecord getResultVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
throws 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 pathResultVersionRecord
ResultVersionRecord getResultVersionByNodeID(java.lang.String recordID)
throws NoPrivilegeException,
UnknownResource
recordID - the node id
NoPrivilegeException
UnknownResourceResultVersionRecord
ResultVersionRecord getResultDocVersion(java.lang.String userID,
java.lang.String resultDocName,
int versionNumber)
throws 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 pathResultVersionRecord
void setResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource,
int maxVersionAmount)
throws 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
int getResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource)
throws 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
void removeNode(java.lang.String userID,
java.lang.String path)
throws 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
VersionRecord addResource(java.lang.String userID,
java.lang.String folderPath,
java.util.Hashtable htResource)
throws 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
VersionRecord addResource(java.lang.String userID,
java.lang.String folderPath,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
throws 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 may contain three 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 third Hashtable object contains serveral group/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
VersionRecord addResource(java.lang.String userID,
java.lang.String folderPath,
boolean isAutoConvert,
java.util.Hashtable htResource,
java.util.Hashtable[] permissions)
throws 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 may contain three 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 third Hashtable object contains serveral group/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
VersionRecord addResultInReport(java.lang.String userID,
java.lang.String reportPath,
java.util.Hashtable htResult)
throws NoPrivilegeException,
UnknownResource
userID - the user IDreportPath - path to specify report, in which new result 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.lang.String addFolder(java.lang.String userID,
java.lang.String parentPath,
java.util.Hashtable htFolder)
throws 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.lang.String createFolder(java.lang.String userID,
java.lang.String parentPath,
java.lang.String folderName,
java.util.Hashtable htFolder,
java.util.Hashtable[] permissions)
throws 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 may contain three 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 third Hashtable object contains several group/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
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 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 may contain three 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 third Hashtable object contains several group/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
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 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 may contain three 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 third Hashtable object contains several group/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
void removeVersion(java.lang.String userID,
java.lang.String versionID)
throws NoPrivilegeException
userID - the user IDversionID - the version ID which want to be removed, user can get it from
VersionRecord.
NoPrivilegeException - if a NoPrivilegeException occurs.VersionRecordjava.util.Vector getAllUsers(java.lang.String submitter)
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.util.Vector getUsersByRole(java.lang.String submitter,
java.lang.String roleID)
throws 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.util.Vector getAllRoles(java.lang.String submitter)
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.util.Vector getRolesByUser(java.lang.String submitter,
java.lang.String userID)
throws 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.util.Vector getReferRoles(java.lang.String userID)
throws 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.util.Vector getReferUsers(java.lang.String userID)
throws NoSuchUserException
userID - the user ID
Vector object contains user names which specific user referred,
NoSuchUserException - if a NoSuchUserException occurs
java.util.Vector getReferGroups(java.lang.String userID)
throws NoSuchUserException
userID - the user ID
Vector object contains group names which specific user referred,
NoSuchUserException - if a NoSuchUserException occurs
java.util.Hashtable[] getPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
throws 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 three 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
(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 third Hashtable object contains several group/permissions pair to represent
defined permissions on specific path and its structure is similar to user/permissions.
Or null if the user/role/group 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.util.Hashtable[] getInheritedPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
throws 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 three 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
(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
inherited permissions on specific path and its structure is similar to user/permissions.
The third Hashtable object contains several group/permissions pair to represent
inherited permissions on specific path and its structure is similar to user/permissions.
Or null if the user/role/group has not permission to get permissions on specific path.
NoPrivilegeException - if a NoPrivilegeException occurs.
UnknownResource - if no node can be found by the path
void setPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable[] permissions)
throws 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 may contain three 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 third Hashtable object contains several group/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.
UnknownResource - if no node can be found by the path
void setNodeProperties(java.lang.String userID,
java.lang.String path,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
throws 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 may contain three 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 third Hashtable object contains several group/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 a UnknownResource occurs.
void setNodeProperties(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
throws 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 may contain three 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 third Hashtable object contains several group/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.
UnknownResource - if a UnknownResource occurs.
void setResultVersionProperties(java.lang.String userID,
java.lang.String report,
int versionNumber,
java.util.Hashtable htProps)
throws 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.lang.String getRealPathOfNode(java.lang.String userID,
java.lang.String path)
throws 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 pathjava.lang.String refreshFolders(java.lang.String userID)
userID - the user id.
int getLatestVersionNumber(java.lang.String resourcePath)
throws UnknownResource
resourcePath - resource path to specify a resource
UnknownResource - if no node can be found by the path
int getLatestVersionNumber(java.lang.String resourcePath,
java.lang.String userID)
throws UnknownResource
resourcePath - resource path to specify a resourceuserID - the user id
UnknownResource - if no node can be found by the pathboolean isAdminUser(java.lang.String userID)
userID - the user id
boolean checkPermission(java.lang.String userID,
java.lang.String resourcePath,
java.security.acl.Permission permission)
throws NoSuchUserException,
UnknownResource
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
boolean checkPermission(java.lang.String userID,
java.lang.String resourcePath,
int versionNumber,
java.security.acl.Permission permission)
throws NoSuchUserException,
UnknownResource
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
boolean isNodeExist(java.lang.String path,
java.lang.String userName)
path - the specific resource pathuserName - the user name
void loadUserResAliasToMem(java.lang.String userID)
userID - the user name
java.rmi.RemoteExceptionvoid rmUserResAliasFromMem(java.lang.String userID)
userID - the user name
java.lang.String getInheritedLinkedCatalog(java.lang.String userID,
java.lang.String path)
throws NoPrivilegeException,
UnknownResource
userID - the user namepath - the resource path
NoPrivilegeException
UnknownResource
boolean isCatalogLinked(java.lang.String userID,
java.lang.String path)
throws NoPrivilegeException,
UnknownResource
userID - the user namepath - the catalog path
NoPrivilegeException
UnknownResourcejava.util.Vector getEnabledCustomFieldNames()
RptServerException - if a RptServerException occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||