jet.server.api
Interface ResultVersionTable


public interface ResultVersionTable

Interface ResultVersionTable contains result version records in the report server.


Method Summary
 void commit()
          Commit changes into the disk.
 java.util.Vector getResultVersionRecords(java.lang.String catalog, java.lang.String report)
          Deprecated. As of JREntServer version 4.1, replaced by getResultVersionRecordsByCatalogReport(String userID, String catalog, String report).
 java.util.Vector getResultVersionRecords(java.lang.String catalog, java.lang.String report, java.lang.String submitter)
          Deprecated. As of JREntServer version 4.1, replaced by getResultVersionRecords(String userID, String catalog, String report, String submitter).
 java.util.Vector getResultVersionRecords(java.lang.String userID, java.lang.String catalog, java.lang.String report, java.lang.String submitter)
          Get result versions through the catalog, the report and the submitter.
 java.util.Vector getResultVersionRecordsByCatalogReport(java.lang.String userID, java.lang.String catalog, java.lang.String report)
          Get result versions through the catalog and the report.
 ResultVersionRecord getVersion(java.lang.String versionID)
          Get the result version through the version ID.
 void removeVersion(java.lang.String versionID)
          Remove the result version through the version ID.
 

Method Detail

getResultVersionRecords

java.util.Vector getResultVersionRecords(java.lang.String catalog,
                                         java.lang.String report)
                                         throws RptServerException
Deprecated. As of JREntServer version 4.1, replaced by getResultVersionRecordsByCatalogReport(String userID, String catalog, String report).

Get result versions through the catalog and the report. Notice: As of JREntServer 6, when you want to get versions without userID, a RptServerException (encapsulated a NoPrivilegeException) will throw, except you set "No Security Checking" as true.

Parameters:
catalog - the catalog path in the report server. For example: /SunVMDemo/SunVMDemo.cat.
report - the report name. For example:invoice.cls.
Returns:
result versions of the report. The Vector contains ResultVersionRecord objects.
Throws:
RptServerException - if a RptServerException occurs.
See Also:
ResultVersionRecord

getResultVersionRecordsByCatalogReport

java.util.Vector getResultVersionRecordsByCatalogReport(java.lang.String userID,
                                                        java.lang.String catalog,
                                                        java.lang.String report)
                                                        throws RptServerException
Get result versions through the catalog and the report.

Parameters:
userID - the caller of this method.
catalog - the catalog path in the report server. For example: /SunVMDemo/SunVMDemo.cat.
report - the report name. For example:invoice.cls.
Returns:
result versions of the report. The Vector contains ResultVersionRecord objects.
Throws:
RptServerException - if a RptServerException occurs.
See Also:
ResultVersionRecord

getResultVersionRecords

java.util.Vector getResultVersionRecords(java.lang.String catalog,
                                         java.lang.String report,
                                         java.lang.String submitter)
                                         throws RptServerException
Deprecated. As of JREntServer version 4.1, replaced by getResultVersionRecords(String userID, String catalog, String report, String submitter).

Get result versions through the catalog, the report and the submitter.

Parameters:
catalog - the catalog path in the report server. For example: /SunVMDemo/SunVMDemo.cat.
report - the report name. For example:invoice.cls.
submitter - the submitter of the result versions.
Returns:
result versions. The Vector contains ResultVersionRecord objects.
Throws:
RptServerException - if a RptServerException occurs.
See Also:
ResultVersionRecord

getResultVersionRecords

java.util.Vector getResultVersionRecords(java.lang.String userID,
                                         java.lang.String catalog,
                                         java.lang.String report,
                                         java.lang.String submitter)
                                         throws RptServerException
Get result versions through the catalog, the report and the submitter.

Parameters:
userID - the caller of this method.
catalog - the catalog path in the report server. For example: /SunVMDemo/SunVMDemo.cat.
report - the report name. For example:invoice.cls.
submitter - the submitter of the result versions.
Returns:
result versions. The Vector contains ResultVersionRecord objects.
Throws:
RptServerException - if a RptServerException occurs.
See Also:
ResultVersionRecord

getVersion

ResultVersionRecord getVersion(java.lang.String versionID)
                               throws RptServerException
Get the result version through the version ID.

Parameters:
versionID - the result version ID.
Returns:
the result version through the version ID.
Throws:
RptServerException - if a RptServerException occurs.
See Also:
ResultVersionRecord

removeVersion

void removeVersion(java.lang.String versionID)
                   throws RptServerException
Remove the result version through the version ID. Notice: As of JREntServer 6, when you want to remove a version, version id and user id are required, so a RptServerException (encapsulated a NoPrivilegeException) will throw during invoking this method, except user set "No Security Checking" as true. You should use method removeVersion(String userID, Sring versionID) in ResourceManager to remove a version.

Parameters:
versionID - the result version ID.
Throws:
RptServerException - if a RptServerException occurs.
See Also:
ResourceManager.removeVersion(String userID, String versionID);

commit

void commit()
            throws RptServerException
Commit changes into the disk.

Throws:
RptServerException - if a RptServerException occurs.