public interface RemoteResourceManagerJDK14
extends java.rmi.Remote
Modifier and Type | Method and Description |
---|---|
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)
Adds a resource into the specified 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)
Adds a resource into the specified 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)
Adds resources and folders according to catalog/report files and sub-folders under the disk directory into the specified 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)
Adds resources and folders according to catalog/report files and sub-folders under the disk directory into the specified folder.
|
VersionRecord |
addResultInReport(java.lang.String userID,
java.lang.String reportPath,
java.util.Hashtable htResult)
Adds a result into the specific report.
|
boolean |
checkBasePermission(java.lang.String userID,
java.lang.String resourcePath,
com.jinfonet.security.jacl.BasePermission permission)
Checks whether the specific user has a permission on the specific resource path.
|
boolean |
checkBasePermission(java.lang.String userID,
java.lang.String resourcePath,
int versionNumber,
com.jinfonet.security.jacl.BasePermission permission)
Checks whether the specific user has a permission on the specific version number of a 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)
Creates a sub-folder into the specified folder.
|
PathInfo |
createSharedNode(java.lang.String userID,
SharedNodeInfo sharedInfo)
Create a shared node according to specified
userID and sharedInfo . |
java.util.Vector |
getAllRoles(java.lang.String submitter)
Gets all roles.
|
java.util.Vector |
getAllUsers(java.lang.String submitter)
Gets all users.
|
java.util.Vector |
getCatalogsInPath(java.lang.String userID,
java.lang.String path)
Gets the catalogs in a resource path.
|
CatalogVersionRecord |
getCatalogVersion(java.lang.String userID,
java.lang.String catName,
int versionNumber)
Gets a catalog version by catalog name and version number.
|
java.util.Vector |
getCatalogVersions(java.lang.String userID,
java.lang.String catName)
Gets the versions of a specific catalog.
|
java.util.Vector<PathInfo> |
getDashboardsInPath(java.lang.String userID,
java.lang.String path)
Gets the dashboards in a resource path.
|
java.util.Vector |
getEnabledCustomFieldNames()
Gets all names of enabled custom fields.
|
java.lang.String[] |
getExtensions(java.lang.String mimieType)
Gets file extensions of the MIME type.
|
java.util.Vector |
getFileSysDirsInPath(java.lang.String userID,
java.lang.String path)
Gets the sub-directories in a resource path.
|
java.util.Vector |
getFileSysFilesInPath(java.lang.String userID,
java.lang.String path)
Gets the files in a resource path.
|
java.util.Vector |
getFoldersInPath(java.lang.String userID,
java.lang.String path)
Gets the folders in a resource path.
|
java.lang.String |
getHistDir()
Gets the directory in which result versions are saved to.
|
java.lang.String |
getHistFile(java.lang.String file)
Gets the history file directory path.
|
java.util.Vector |
getImagesByCatalog(java.lang.String userID,
java.lang.String catalog)
Gets inherited permissions of the users attached to the specific path.
|
java.lang.String |
getInheritedLinkedCatalog(java.lang.String userID,
java.lang.String path)
Gets inherited linked catalog.
|
java.util.Hashtable[] |
getInheritedPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
Gets inherited permissions set to the specific path.
|
int |
getLatestVersionNumber(java.lang.String resourcePath)
Gets the latest version number of the specific resource.
|
int |
getLatestVersionNumber(java.lang.String resourcePath,
java.lang.String userID)
Gets the latest version number of the specific resource.
|
java.util.Vector<PathInfo> |
getLCsInPath(java.lang.String userID,
java.lang.String path)
Gets the library components (LCs) in a resource path.
|
LCVersionRecord |
getLCVersion(java.lang.String userID,
java.lang.String lcName,
int versionNumber)
Gets an LC version by LC name and version number.
|
java.util.Vector<LCVersionRecord> |
getLCVersions(java.lang.String userID,
java.lang.String lcName)
Gets the versions of a specific LC.
|
java.lang.String |
getMIMEType(java.lang.String extName)
Gets the MIME type of a file extension.
|
PathInfo |
getPathInfo(java.lang.String userID,
java.lang.String path)
Gets the PathInfo for a specific user.
|
java.util.Hashtable[] |
getPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber)
Gets the permissions set to the specific path.
|
java.lang.String |
getRealm()
Gets the active realm.
|
java.lang.String |
getRealmDir()
Gets the directory of the active realm.
|
java.lang.String |
getRealPathOfNode(java.lang.String userID,
java.lang.String path)
Gets real path property of a node, which is specified by path.
|
java.util.Vector |
getReferGroups(java.lang.String userID)
Gets the groups which the specific user belongs to.
|
java.util.Vector |
getReferRoles(java.lang.String userID)
Gets the roles which are defined for the specific user.
|
java.util.Vector |
getReferUsers(java.lang.String userID)
Gets the users which the specific user is referred.
|
java.util.Vector |
getReports(java.lang.String userID,
java.lang.String catalog)
Gets the reports of a catalog.
|
java.util.Vector |
getReportsInPath(java.lang.String userID,
java.lang.String path)
Gets the reports in a resource path.
|
ReportVersionRecord |
getReportVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
Gets a version of the specific report by version number.
|
java.util.Vector |
getReportVersions(java.lang.String userID,
java.lang.String rptName)
Gets the versions of a specific report.
|
byte[] |
getResourceTreeInputStream(java.lang.String userID,
int streamType,
java.lang.String[] roots,
java.lang.String[] suffixes,
java.util.Locale locale)
Gets resource tree input stream.
|
byte[] |
getResourceTreeInputStream(java.lang.String userID,
java.lang.String... pathPrefix)
Gets the resource tree XML input stream.
|
byte[] |
getResourceTreeInputStreamByType(java.lang.String userID,
int streamType,
java.lang.String... pathPrefix)
Gets the resource tree XML input stream.
|
ResultVersionRecord |
getResultDocVersion(java.lang.String userID,
java.lang.String resultDocName,
int versionNumber)
Gets the version of the specific result by version number.
|
java.util.Vector |
getResultDocVersions(java.lang.String userID,
java.lang.String resultDocName)
Gets the versions of a specific result.
|
int |
getResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource)
Gets the maximum number of versions for the specific report's results.
|
java.util.Vector |
getResultsInPath(java.lang.String userID,
java.lang.String path)
Gets the results in a resource path.
|
ResultVersionRecord |
getResultVersion(java.lang.String userID,
java.lang.String rptName,
int versionNumber)
Gets a result version attached to the specific report by version number.
|
ResultVersionRecord |
getResultVersionByNodeID(java.lang.String recordID)
Gets a result version by node id.
|
java.util.Vector |
getResultVersions(java.lang.String userID,
java.lang.String rptName)
Gets the result versions that are attached to a specific report.
|
java.util.Vector |
getRolesByUser(java.lang.String submitter,
java.lang.String userID)
Gets the roles which the specific user has.
|
java.lang.String |
getRoot()
Gets the resource root directory of the report server.
|
java.lang.String |
getRootNodeDisplay(java.util.Locale locale)
Get "Root" node's display text on UI for specified locale.
|
java.lang.String |
getSchedulePath()
Gets the path of the Schedule.
|
RemoteSearchHelper |
getSearchHelper(int helperId)
Gets the SearchHelper object.
|
SharedNodeInfo |
getSharedNodeInfo(java.lang.String userID,
java.lang.String sharedNodePath)
Get
SharedNodeInfo object by specified userID and sharedNodePath . |
java.util.List<SharedNodeInfo> |
getSharedNodesByOriginalNode(java.lang.String orginalPath)
Get all
SharedNodeInfo objects according to specified original node full path. |
java.util.Vector |
getSubnodes(java.lang.String userID,
java.lang.String path)
Gets the sub-nodes of a resource node in the resource tree.
|
java.util.Vector |
getSubpaths(java.lang.String userID,
java.lang.String path)
Gets the sub-paths of a resource path.
|
java.util.Vector |
getSubpathsAndCatalogs(java.lang.String userID,
java.lang.String path)
Gets the sub-paths of a resource path and catalogs.
|
java.lang.String |
getTempDir()
Gets the temporary directory of the server.
|
java.util.Vector |
getUsersByRole(java.lang.String submitter,
java.lang.String roleID)
Gets the users who have the specific role.
|
VersionRecord |
getVersion(java.lang.String userID,
java.lang.String resourceName,
int versionNumber)
Gets a resource version by resource name and version number.
|
java.util.List[] |
getVisiblePrincipals(java.lang.String userID)
Gets the principals' names which can be see by the specific user when make a schedule.
|
boolean |
isAdminUser(java.lang.String userID)
Checks if a user is an administrator.
|
boolean |
isCatalogLinked(java.lang.String userID,
java.lang.String path)
Checks whether the catalog is linked.
|
boolean |
isNodeExist(java.lang.String path,
java.lang.String userName)
Checks whether or not the specified node exists.
|
boolean |
isOrganizationAdminUser(java.lang.String userID)
Checks if a user is an administrator of an organization.
|
java.util.Map<java.lang.String,java.util.List<SharedNodeInfo>> |
listSharedNodesByUser(java.lang.String userID)
get all shared node definitions that created by specified user.
|
void |
loadUserResAliasToMem(java.lang.String userID)
Loads the resource alias of a user and save them into memory.
|
java.lang.String |
refreshFolders(java.lang.String userID)
Refreshes the folders representing in UI for the specific user.
|
void |
removeNode(java.lang.String userID,
java.lang.String path)
Removes the specific node which was indicated by path.
|
void |
removeVersion(java.lang.String userID,
java.lang.String versionID)
Removes the specific version.
|
void |
rmUserResAliasFromMem(java.lang.String userID)
Removes the resource alias of a user from memory.
|
void |
setNodeProperties(java.lang.String userID,
java.lang.String path,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
Sets properties and permissions of users on the specific path.
|
void |
setNodeProperties(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable htProps,
java.util.Hashtable[] permissions)
Sets properties and permissions on the specific version of path or path.
|
void |
setPermissions(java.lang.String userID,
java.lang.String path,
int versionNumber,
java.util.Hashtable[] permissions)
Sets permissions for the specified path.
|
void |
setResultMaxVersionAmount(java.lang.String userID,
java.lang.String reportResource,
int maxVersionAmount)
Sets the maximum number of versions for the specific report's results.
|
void |
setResultVersionProperties(java.lang.String userID,
java.lang.String report,
int versionNumber,
java.util.Hashtable htProps)
Sets properties of users on the specific result version of a report.
|
PathInfo |
updateSharedNode(java.lang.String userID,
java.lang.String oldSharedNodePath,
SharedNodeInfo sharedInfo)
update a shared node according to specified
userID and sharedRec . |
java.lang.String getMIMEType(java.lang.String extName) throws java.rmi.RemoteException
extName
- the file extension.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String[] getExtensions(java.lang.String mimieType) throws java.rmi.RemoteException
mimieType
- the MIME type.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getRealm() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getRealmDir() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getTempDir() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getHistDir() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getRoot() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 communication-related error occurs during RMI call execution.RptServerException
- if an 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 communication-related error occurs during RMI call execution.RptServerException
- if an 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 communication-related error occurs during RMI call executionRptServerException
- if an 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 communication-related error occurs during RMI call execution.RptServerException
- if an 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 communication-related error occurs during RMI call execution.RptServerException
- if an RptServerException occurs.PathInfo
java.util.Vector<PathInfo> getLCsInPath(java.lang.String userID, java.lang.String path) throws java.rmi.RemoteException, RptServerException
userID
- the user ID.path
- the resource path, for example, /COMPONENT_LIB/test.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.RptServerException
- if an 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 communication-related error occurs during RMI call execution.RptServerException
- if an 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 communication-related error occurs during RMI call execution.RptServerException
- if an 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 communication-related error occurs during RMI call execution.RptServerException
- if an RptServerException occurs.PathInfo
java.lang.String getSchedulePath() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getHistFile(java.lang.String file) throws java.rmi.RemoteException
file
- the file.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 communication-related error occurs during RMI call execution.PathInfo
java.util.Vector<PathInfo> getDashboardsInPath(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 communication-related error occurs during RMI call execution.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 communication-related error occurs during RMI call execution.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 communication-related error occurs during RMI call execution.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 communication-related error occurs during RMI call execution.CatalogVersionRecord
java.util.Vector<LCVersionRecord> getLCVersions(java.lang.String userID, java.lang.String lcName) throws java.rmi.RemoteException, NoPrivilegeException, UnknownResource
userID
- the user ID.lcName
- the LC name, for example, /COMPONENT_LIB/SampleReports.lc.Vector
object contains
LCVersionRecord
objects.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.LCVersionRecord
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 communication-related error occurs during RMI call execution.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 communication-related error occurs during RMI call execution .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 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 communication-related error occurs during RMI call execution.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 numberCatalogVersionRecord
object,
or null if the specific version cannot be gotten.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.CatalogVersionRecord
VersionRecord getVersion(java.lang.String userID, java.lang.String resourceName, int versionNumber) throws java.rmi.RemoteException, NoPrivilegeException, UnknownResource
userID
- the user ID.resourceName
- the resource name, for example, /COMPONENT_LIB/Tutorail.lc.versionNumber
- the version numberVersionRecord
object, or
null if the specific version cannot be gotten.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.VersionRecord
LCVersionRecord getLCVersion(java.lang.String userID, java.lang.String lcName, int versionNumber) throws java.rmi.RemoteException, NoPrivilegeException, UnknownResource
userID
- the user ID.lcName
- the LC name, for example, /COMPONENT_LIB/Tutorail.lc.versionNumber
- the version number.LCVersionRecord
object
or null if the specific version cannot be gotten.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.LCVersionRecord
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 the specific version cannot be gotten.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 the specific version cannot be gottenNoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 name, for example, /SampleReports/resultdoc1.versionNumber
- the version number.ResultVersionRecord
object, or null if the specific version cannot be gotten.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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
- the new maximum number of versions value. If it is 0 or a negative value,
number of versions of the specific resource will be unlimited.NoPrivilegException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.NoPrivilegeException
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.clsNoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid removeNode(java.lang.String userID, java.lang.String path) throws java.rmi.RemoteException, NoPrivilegeException, UnknownResource
userID
- the user ID.path
- the path from which a resource will be removed.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.VersionRecord addResource(java.lang.String userID, java.lang.String folderPath, java.util.Hashtable htResource) throws java.rmi.RemoteException, NoPrivilegeException, NodeExistsException, UnknownResource
userID
- the user ID.folderPath
- the path to specify the folder in which the new resource will be added.htResource
- a Hashtable
that contains attributes of the new resource.
These attributes can be indicated by some defined constants in APIConst,
for example, TAG_NODE_NAME, TAG_RESOURCE_TYPE, TAG_DEFINE_PERMISSION, etc.permissions
- a Hashtable
array which contains two Hashtable
objects.VersionRecord
object to represent a resource version that was just added,
or null if failed to add the resource.NoPrivilegeException
- if a NoPrivilegeException occurs.NodeExistsException
- if a NodeExistsException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution .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
APIConst.TAG_NODE_NAME
.
If the node does not exist under the specified folder, a resource node
will be added under the folder. The resource type is specified by the value of APIConst.TAG_RESOURCE_TYPE
in the parameter htResource, and a version will be added into the new resource node. If there is an existing resource with the same type
and name, just add a version to the resource node. If there is a node with the same name under the folder,
but with different node type and resource type, NodeExistsException
will be thrown.
addResource(userID, folderPath, htResource, permissions)
has the same effect as:
addResource(userID, folderPath, false, htResource, permissions)
userID
- the user ID to add resource. The user should have write permission (cannot set permissions)
or grant permission (can set permissions), otherwise NoPrivilegeException
will be thrown.folderPath
- the path to specify the folder, in which the new resource will be added.htResource
- a Hashtable
that contains attributes of the new resource.
These attributes can be indicated by some defined constants in APIConst
,
for example, TAG_NODE_NAME, TAG_RESOURCE_TYPE, etc.permissions
- a Hashtable
array, which contains three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
VersionRecord
object to represent a resource version that was just added,
or null if it failed to add the resource.NoPrivilegeException
- if the user does not have write (cannot set permissions)
or grant permission on the folder.NodeExistsException
- if a same name node exists under the specified folder but it does not
have the same node type and resource type.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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
APIConst.TAG_NODE_NAME
.
If the node does not exist under the specified folder, a resource node
will be added under the folder. The resource type is specified by the value of APIConst.TAG_RESOURCE_TYPE
in the parameter htResource, and a version will be added into the new resource node.NodeExistsException
will be thrown.userID
- the user ID to add resource. The user should have write permission (cannot set permissions)
or grant permission (can set permissions), otherwise NoPrivilegeException
will be thrown.folderPath
- the path to specify the folder, in which the new resource will be added.isAutoConvert
- whether to convert the old version report to the latest version report. The old version report
means the report that was created by using JReport version older than 8 (excluded).htResource
- a Hashtable
that contains attributes of the new resource.
These attributes can be indicated by some defined constants in APIConst
,
for example, TAG_NODE_NAME, TAG_RESOURCE_TYPE, etc.permissions
- a Hashtable
array, which contains three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
VersionRecord
object to represent a resource version that was just added,
or null if failed to add the resource.NoPrivilegeException
- if the user does not have write (cannot set permissions)
or grant permission on the folder.NodeExistsException
- if a same name node exists under the specified folder but it does not
have the same node type and resource type.UnknownResource
- if no node can be found by the pathjava.rmi.RemoteException
- if communication-related error occurs during RMI call execution.VersionRecord addResultInReport(java.lang.String userID, java.lang.String reportPath, java.util.Hashtable htResult) throws java.rmi.RemoteException, NoPrivilegeException, UnknownResource
userID
- the user ID.reportPath
- the path to specify the report in which the new report will be added.htResult
- a Hashtable
that contains attributes of the new result.
These attributes can be indicated by some defined constants in APIConst,
for example, TAG_NODE_NAME, TAG_RESOURCE_TYPE, TAG_DEFINE_PERMISSION, etc.VersionRecord
object to represent a result version that was just added,
or null if it failed to add the result.NoPrivilegeException
- if a NoPrivilegeException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 ID.parentPath
- the path to specify in which folder the new resource will be added.htFolder
- a Hashtable
that contains attributes of the new folder.
These attributes can be indicated by some defined constants 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 communication-related error occurs during RMI call execution.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 ID to add resource. The user should have write permission (cannot set permissions)
or grant permission (can set permissions), otherwise NoPrivilegeException
will be thrown.parentPath
- the path to specify in which folder the new folder will be added.folderName
- the name of the new folder.htFolder
- a Hashtable
that contains attributes of the new folder,
These attributes can be indicated by some defined constants in APIConst,
for example, TAG_NODE_DESC, etc.permissions
- a Hashtable
array, which contains three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have write (cannot set permissions)
or grant permission on the parent folder.NodeExistsException
- if a same name node exists under the specified folder but it does not
have the same node type and resource type.UnknownResource
- if no node can be found by the pathjava.rmi.RemoteException
- if communication-related error occurs during RMI call executionvoid 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
includesSubDir
is true, the contents in the sub-dir will be added as well.
addResourcesToFolder(userID, folderPath, fromRealDir, includesSubDir, htResource, permissions)
has the same effect as:
addResourcesToFolder(userID, folderPath, fromRealDir, includesSubDir, false, htResource, permissions)
.userID
- the user ID. The user should have write permission (cannot set permissions)
or grant permission (can set permissions), otherwise NoPrivilegeException
will be thrown.folderPath
- the path to specify in which folder the new resources will be added.fromRealDir
- the disk directory which contains these files and sub-folders.includesSubDir
- indicates whether to add files in sub-dir or not.htResource
- a Hashtable
that contains attributes of the new resources.
These attributes can be indicated by some defined constants in APIConst.permissions
- a Hashtable
array, which contains three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have write (cannot set permissions)
or grant permission on the parent folder.NodeExistsException
- if a same name node exists under the specified folder but it does not
have the same node type and resource type.UnknownResource
- if no node can be found by the folderPath
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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
includesSubDir
is true, the contents in the sub-dir will be added as well.userID
- the user ID. The user should have write permission (cannot set permissions)
or grant permission (can set permissions), otherwise NoPrivilegeException
will be thrown.folderPath
- the path to specify in which folder new resources will be added.fromRealDir
- the disk directory which contains these files and sub-folders.includesSubDir
- indicates whether to add files in sub-dir or not.isAutoConvert
- whether to convert the old version report to the latest version report. The old version report
means the report that was created by using JReport version older than 8 (excluded).htResource
- a Hashtable
that contains attributes of the new resources.
These attributes can be indicated by some defined constants in APIConst
.permissions
- a Hashtable
array, which contains three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have write (cannot set permissions)
or grant permission on the parent folder.NodeExistsException
- if a same name node exists under the specified folder but it does not
have the same node type and resource type.UnknownResource
- if no node can be found by the folderPath
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void removeVersion(java.lang.String userID, java.lang.String versionID) throws java.rmi.RemoteException, NoPrivilegeException
userID
- the user ID.versionID
- the version ID to be removed. It can be gotten from
VersionRecord
.NoPrivilegeException
- if a NoPrivilegeException occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.VersionRecord
java.util.Vector getAllUsers(java.lang.String submitter) throws java.rmi.RemoteException
submitter
- the user id who sent this request.Vector
object containing all user names, or null if
the submitter does not have permission to get all users.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getUsersByRole(java.lang.String submitter, java.lang.String roleID) throws java.rmi.RemoteException, NoSuchRoleException
submitter
- the user id who sent this request.roleID
- the role ID.Vector
object containing the user names who have the specific role,
or null if the submitter does not have permission to get users by this role.NoSuchRoleException
- if a NoPrivilegeException occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getAllRoles(java.lang.String submitter) throws java.rmi.RemoteException
submitter
- the user id who sent this request.Vector
object containing all role names, or null if
the submitter does not have permission to get all roles.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getRolesByUser(java.lang.String submitter, java.lang.String userID) throws java.rmi.RemoteException, NoSuchUserException
submitter
- the user id who sent this request.userID
- the user ID.Vector
object containing the role names which the specific user has,
or null if the submitter does not have permission to get roles by this user.NoSuchUserException
- if a NoSuchUserException occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getReferRoles(java.lang.String userID) throws java.rmi.RemoteException, NoSuchUserException
userID
- the user ID.Vector
object containing the role names which the specific user is included in.
These roles are owned by the specific user except administrator and everyone.NoSuchUserException
- if a NoSuchUserException occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getReferGroups(java.lang.String userID) throws java.rmi.RemoteException, NoSuchUserException
userID
- the user ID.Vector
object containing the group names which the specific user belongs to.NoSuchUserException
- if a NoSuchUserException occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getReferUsers(java.lang.String userID) throws java.rmi.RemoteException, NoSuchUserException
userID
- the user ID.Vector
object containing the user names which the specific user is referred.NoSuchUserException
- if a NoSuchUserException occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.List[] getVisiblePrincipals(java.lang.String userID) throws java.rmi.RemoteException, NoSuchUserException
userID
- the user ID.List[]
object containing the User/Role/Group display names.NoSuchUserException
- if a NoSuchUserException occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 wants to get permissions. The user should have read permission on this
node, otherwise NoPrivilegeException
will be thrown.path
- the path to set permissions to.versionNumber
- the version number to specify the version of the path. If the parameter path
points to a folder, this parameter will be ignored, or if path points to a catalog/report/result
node and the version number is 0, the version number will be ignored as well.Hashtable
array, which contains three Hashtable
objects to represent
permissions set on the path. null
means no permission set on the path.
The first Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
which presents the permissions that the user has on the specific path.
In the value string, character '1' and '0' respectively represents Allow and Deny,
the position indicates which privilege it stand for (0 base):
The second Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
The third Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have read permission on the path.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 wants to get permissions. The user should have read permission on this
node, otherwise NoPrivilegeException
will be thrown.path
- the path which is used to get inherited permissions.versionNumber
- the version number to specify the version of the path. If the parameter path
points to a folder, this parameter will be ignored, or if path points to a catalog/report/result
node and the version number is 0, the version number will be ignored as well.Hashtable
array, which contains three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have read permission on the path.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getImagesByCatalog(java.lang.String userID, java.lang.String catalog) throws NoPrivilegeException, UnknownResource, java.rmi.RemoteException
userID
- the user ID who wants to get permissions.catalog
- the full catalog path, for example, /SunVMDemo/SunVMDemo.cat.NoPrivilegeException
- if the user does not have grant permission on the path.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 wants to set permissions. The user should have grant permission on this
node, otherwise NoPrivilegeException
will be thrown.path
- the path which will be used to set permissions on.versionNumber
- the version number to specify the version of the path. If the parameter path
points to a folder, this parameter will be ignored, or if path points to a catalog/report/result
node and the version number is 0, the version number will be ignored as well.permissions
- a Hashtable
array, which contains three Hashtable
objects to represent
permissions set on the path.
The first Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
which presents the permissions that the user has on the specific path.
In the value string, character '1' and '0' respectively represents Allow and Deny,
the position indicates which privilege it stand for (0 base):
The second Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
The third Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have grant permission on the path.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 wants to set properties. The user should have write permission (cannot set permission together),
or grant permission (can set permission in this method) on this node, otherwise NoPrivilegeException
will be thrown.path
- the path which will be used to set properties and permissions on.htProps
- the properties of the 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 three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have write permission (cannot set permission together),
or grant permission (can set permission in this method) on the path.NodeExistsException
- if you rename a node to an existing node name.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 wants to set properties. The user should have write permission (cannot set permission together),
or grant permission (can set permission in this method) on this node, otherwise NoPrivilegeException
will be thrown.path
- the path which will be used to set properties and permissions on.versionNumber
- the version number to specify the version of the path. If the parameter path
points to a folder, this parameter will be ignored, or if path points to a catalog/report/result
node and the version number is 0, the version number will be ignored as well.htProps
- the properties of the 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 three Hashtable
objects to represent
permissions that the path inherits from the parent. The first
Hashtable
contains several user/permissions pairs to represent the defined permissions
attached to the specific path. In this Hashtable
object, the key is user name,
the value is a String
of 8 length which presents the permissions that the user has on the specific path.
Hashtable
object contains several role/permissions
pairs to represent the defined permissions on the specific path and its structure is similar to user/permissions.
Hashtable
object contains several group/permissions pairs to represent
the defined permissions on the specific path and its structure is similar to user/permissions.
NoPrivilegeException
- if the user does not have write permission (cannot set permission together),
or grant permission (can set permission in this method) on the path.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.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 wants to set properties.report
- the report which will be used to set properties on attached result version of.versionNumber
- the version number. If it is zero or an invalid version number, no action will be performed.htProps
- the properties of the specific node. These properties are indicated by
APIConst.TAG_EXPIRED_TIME, etc.
all values are represented by a String
.NoPrivilegeException
- if the user does not have write permission (cannot set permission together),
or grant permission (can set permission in this method) on the path.UnknownResource
- if an UnknownResource occurs.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getRealPathOfNode(java.lang.String userID, java.lang.String path) throws java.rmi.RemoteException, NoPrivilegeException, UnknownResource
userID
- the user id.path
- the path to specify a node (a folder, catalog, or report).NoPrivilegeException
- if the user does not have permission to get the specific node's realPath.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String refreshFolders(java.lang.String userID) throws java.rmi.RemoteException
userID
- the user id.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.byte[] getResourceTreeInputStream(java.lang.String userID, java.lang.String... pathPrefix) throws java.rmi.RemoteException
userID
- the user id.pathPrefix
- the root path prefix, such as /(Public Reports), /USERFOLDERPATH,
/COMPONENT_LIB etc.java.rmi.RemoteException
byte[] getResourceTreeInputStream(java.lang.String userID, int streamType, java.lang.String[] roots, java.lang.String[] suffixes, java.util.Locale locale) throws java.rmi.RemoteException
userID
- the user id.streamType
- the type of return stream, XML_STREAM indicate return XML text stream,
JSON_STREAM indicate return JSON text stream, other type return null.root
- root paths , such as /(Public Reports), /USERFOLDERPATH,
/COMPONENT_LIB etc.roots
- root paths , such as /(Public Reports), /USERFOLDERPATH,
/COMPONENT_LIB etc.suffixes
- resource suffix, such as ".cls", ".dsh", etc.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.byte[] getResourceTreeInputStreamByType(java.lang.String userID, int streamType, java.lang.String... pathPrefix) throws java.rmi.RemoteException
userID
- the user id.streamType
- the type of return stream, XML_STREAM indicate return XML text stream,
JSON_STREAM indicate return JSON text stream, other type return null.pathPrefix
- the root path prefix, such as /(Public Reports), /USERFOLDERPATH,
/COMPONENT_LIB etc.java.rmi.RemoteException
int getLatestVersionNumber(java.lang.String resourcePath) throws java.rmi.RemoteException, UnknownResource
resourcePath
- the resource path to specify the resource.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.int getLatestVersionNumber(java.lang.String resourcePath, java.lang.String userID) throws java.rmi.RemoteException, UnknownResource
resourcePath
- the resource path to specify the resource.userID
- the user id.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isAdminUser(java.lang.String userID) throws java.rmi.RemoteException
userID
- the user id.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isOrganizationAdminUser(java.lang.String userID) throws java.rmi.RemoteException
userID
- the user id.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isNodeExist(java.lang.String path, java.lang.String userName) throws java.rmi.RemoteException
path
- the specific resource path.userName
- the user name.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.ResultVersionRecord getResultVersionByNodeID(java.lang.String recordID) throws java.rmi.RemoteException, NoPrivilegeException, UnknownResource
recordID
- the node id.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.NoPrivilegeException
- if the user does not have permission to get the specific result version.UnknownResource
- if no node can be found by the path.ResultVersionRecord
boolean checkBasePermission(java.lang.String userID, java.lang.String resourcePath, com.jinfonet.security.jacl.BasePermission permission) throws NoSuchUserException, UnknownResource, java.rmi.RemoteException
userID
- the user id.resourcePath
- the resource path.permission
- a permission, which should be one of the permissions defined in jet.server.api.Permissions.NoSuchUserException
- if NoSuchUserException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean checkBasePermission(java.lang.String userID, java.lang.String resourcePath, int versionNumber, com.jinfonet.security.jacl.BasePermission permission) throws NoSuchUserException, UnknownResource, java.rmi.RemoteException
userID
- the user id.resourcePath
- the resource path.versionNumber
- the version number of the resource path.permission
- a permission, which should be one of the permissions defined in jet.server.api.Permissions.NoSuchUserException
- if NoSuchUserException occurs.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void loadUserResAliasToMem(java.lang.String userID) throws java.rmi.RemoteException
userID
- the user name.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.void rmUserResAliasFromMem(java.lang.String userID) throws java.rmi.RemoteException
userID
- the user name.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getInheritedLinkedCatalog(java.lang.String userID, java.lang.String path) throws NoPrivilegeException, UnknownResource, java.rmi.RemoteException
userID
- the user name.path
- the resource path.NoPrivilegeException
- if the user does not have permission to get the specific linked catalog.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.boolean isCatalogLinked(java.lang.String userID, java.lang.String path) throws NoPrivilegeException, UnknownResource, java.rmi.RemoteException
userID
- the user name.path
- the catalog path.NoPrivilegeException
- if the user does not have permission to get the specific node's properties.UnknownResource
- if no node can be found by the path.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Vector getEnabledCustomFieldNames() throws java.rmi.RemoteException
java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.lang.String getRootNodeDisplay(java.util.Locale locale) throws java.rmi.RemoteException
locale
- the localeResourceNLSManager.updateRootNLSEntry(Locale, TextNLSEntry, String)
,
return null if not defined.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.ResourceNLSManager
RemoteSearchHelper getSearchHelper(int helperId) throws java.rmi.RemoteException
helperId
- The id of a search helper. For the first use, can pass -1.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.PathInfo createSharedNode(java.lang.String userID, SharedNodeInfo sharedInfo) throws UnknownResource, NodeExistsException, NoPrivilegeException, java.rmi.RemoteException
userID
and sharedInfo
.userID
- user id, must be same as original node's creator, otherwise NoPrivilegeException
will throw.sharedRec
- shared node info definition.PathInfo
to represent new created shared node.NodeExistsException
- if same name node with shared node exists under links to folder.NoPrivilegeException
- if userID
is not same as creator of original node.UnknownResource
- if original node or share to folder does not exist.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.SharedNodeInfo
SharedNodeInfo getSharedNodeInfo(java.lang.String userID, java.lang.String sharedNodePath) throws NoPrivilegeException, UnknownResource, java.rmi.RemoteException
SharedNodeInfo
object by specified userID
and sharedNodePath
.userID
- user id, if it is not same as original node's creator, throw NoPrivilegeException
.sharedNodePath
- shared node full pathSharedNodeInfo
object.NoPrivilegeException
- if userID
is not same as creator of original node.UnknownResource
- if shared node does not exist.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.PathInfo updateSharedNode(java.lang.String userID, java.lang.String oldSharedNodePath, SharedNodeInfo sharedInfo) throws NodeExistsException, NoPrivilegeException, UnknownResource, java.rmi.RemoteException
userID
and sharedRec
.userID
- user id, if it is not same as original node's creator, throw NoPrivilegeException
.oldSharedNodePath
- the shared node full path which want to update.sharedRec
- new shared node info definition.NodeExistsException
- if same name node with shared node exists under links to folder.NoPrivilegeException
- if userID
is not same as creator of original node.UnknownResource
- if specified shared node or new share to folder does not exist.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.Map<java.lang.String,java.util.List<SharedNodeInfo>> listSharedNodesByUser(java.lang.String userID) throws java.rmi.RemoteException
userID
- user id who used to create shared node.Map
object contains all shared node definitions, key is original node full path, value is a
List
object, element is SharedNodeInfo
.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.java.util.List<SharedNodeInfo> getSharedNodesByOriginalNode(java.lang.String orginalPath) throws UnknownResource, java.rmi.RemoteException
SharedNodeInfo
objects according to specified original node full path.orginalPath
- original node full path, indicates a node which one or more shared node links to.SharedNodeInfo
objects, or null if no shared node links to specified node.UnknownResource
- if specified original node does not exist.java.rmi.RemoteException
- if communication-related error occurs during RMI call execution.