jet.server.api
Interface VersionAmountLimitTable


public interface VersionAmountLimitTable

Interface VersionAmountTable contains version amount records in the report server.


Method Summary
 void commit()
          Commit changes into the disk.
 void disableVersionAmount(java.lang.String catalog, java.lang.String report, java.lang.String user)
          Disable max version amount through the catalog and the report.
 int getVersionAmount(java.lang.String catalog, java.lang.String report, java.lang.String user)
          Get max version amount through the catalog and the report.
 void setVersionAmount(java.lang.String catalog, java.lang.String report, java.lang.String user, int amount)
          Set max version amount through the catalog and the report.
 

Method Detail

getVersionAmount

int getVersionAmount(java.lang.String catalog,
                     java.lang.String report,
                     java.lang.String user)
                     throws RptServerException
Get max version amount through the catalog and the report.

Parameters:
catalog - the catalog path in the report server. For example: /SunVMDemo/SunVMDemo.cat.
report - the report name. For example:invoice.cls.
Returns:
max version amount of the report.
Throws:
RptServerException - if a RptServerException occurs.

setVersionAmount

void setVersionAmount(java.lang.String catalog,
                      java.lang.String report,
                      java.lang.String user,
                      int amount)
                      throws RptServerException
Set max version amount through the catalog and the report.

Parameters:
catalog - the catalog path in the report server. For example: /SunVMDemo/SunVMDemo.cat.
report - the report name. For example:invoice.cls.
user - the user id. For example:admin
amount - the max version amount of the report.
Throws:
RptServerException - if a RptServerException occurs.

disableVersionAmount

void disableVersionAmount(java.lang.String catalog,
                          java.lang.String report,
                          java.lang.String user)
                          throws RptServerException
Disable max version amount through the catalog and the report.

Parameters:
catalog - the catalog path in the report server. For example: /SunVMDemo/SunVMDemo.cat.
report - the report name. For example:invoice.cls.
user - the user id. For example:admin
Throws:
RptServerException - if a RptServerException occurs.

commit

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

Throws:
RptServerException - if a RptServerException occurs.