Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jet.server.api.admin
Interface DynamicSecurityManager

    public interface DynamicSecurityManager

Manage dynamic securities.

- Users can call jet.server.api.AdminService.getDynamicSecurityManager() to get the DynamicSecurityManager object.
- Users can call the method addDynamicSecurity(...) to add a new dynamic security by program.
- Users can call the method updateDynamicSecurity(...) to update a exists dynamic security by program.
- Users can call the method deleteDynamicSecurity(...) to delete a exists dynamic security by program.

Method Summary
`int` | `addDynamicSecurity(DynamicSecurity dynamicSecurityObject, java.lang.String operator)` Add dynamic security record
`int` | `addDynamicSecurity(DynamicSecurity dynamicSecurityObject, java.lang.String operator, boolean replaceExisted)` Add dynamic security record
`int` | `deleteDynamicSecurity(java.lang.String catalogPath, java.lang.String securityFileName, java.lang.String operator)` Delete dynamic security specified by catalog path and security file name.
`int` | `deleteDynamicSecuritys(int[] idArray, java.lang.String loginUser)`
`java.util.List<DynamicSecurity>` | `getDynamicSecurities(java.lang.String operator)` Gets all dynamic securities.
`java.util.List<DynamicSecurity>` | `getDynamicSecurities(java.lang.String catalogPath, java.lang.String operator)` Gets all dynamic securities by specified catalog path.
`DynamicSecurity` | `getDynamicSecurity(int id, java.lang.String operator)`
`DynamicSecurity` | `getDynamicSecurity(java.lang.String catalogPath, java.lang.String securityFileName, java.lang.String operator)` Gets all dynamic security by specified catalog path and security file name.
`int` | `setDynamicSecurityDefault(int id, boolean isDefault, java.lang.String operator)` Set dynamic security default status, which specified by dynamic security record id.
`int` | `setDynamicSecurityDefault(java.lang.String catalogPath, java.lang.String securityFileName, boolean isDefault, java.lang.String operator)` Set dynamic security default status, which specified by catalog path and security file name.
`int` | `updateDynamicSecurity(java.lang.String oldCatalogPath, java.lang.String oldSecurityFileName, DynamicSecurity newDynamicSecurityObject, java.lang.String operator, java.util.List<java.lang.Object> errorPara)` Update dynamic security record with "newDynamicSecurityObject" specified by old catalog path and old security file name.

Method Detail

### getDynamicSecurities

    java.util.List<DynamicSecurity> getDynamicSecurities(java.lang.String operator)
                                                         throws RptServerException

  Gets all dynamic securities.

  Throws:
    `RptServerException`

### getDynamicSecurities

    java.util.List<DynamicSecurity> getDynamicSecurities(java.lang.String catalogPath,
                                                         java.lang.String operator)
                                                         throws RptServerException

  Gets all dynamic securities by specified catalog path.

  Throws:
    `RptServerException`

### getDynamicSecurity

    DynamicSecurity getDynamicSecurity(java.lang.String catalogPath,
                                       java.lang.String securityFileName,
                                       java.lang.String operator)
                                       throws RptServerException

  Gets all dynamic security by specified catalog path and security file name.

  Throws:
    `RptServerException`

### getDynamicSecurity

    DynamicSecurity getDynamicSecurity(int id,
                                       java.lang.String operator)
                                       throws RptServerException

  Throws:
    `RptServerException`

### addDynamicSecurity

    int addDynamicSecurity(DynamicSecurity dynamicSecurityObject,
                           java.lang.String operator)
                           throws RptServerException

  Add dynamic security record

  Parameters:
    `dynamicSecurityObject` -
    `operator` -
  Returns:
  Throws:
    `RptServerException`

### addDynamicSecurity

    int addDynamicSecurity(DynamicSecurity dynamicSecurityObject,
                           java.lang.String operator,
                           boolean replaceExisted)
                           throws RptServerException

  Add dynamic security record

  Parameters:
    `dynamicSecurityObject` -
    `operator` -
  Returns:
  Throws:
    `RptServerException`

### updateDynamicSecurity

    int updateDynamicSecurity(java.lang.String oldCatalogPath,
                              java.lang.String oldSecurityFileName,
                              DynamicSecurity newDynamicSecurityObject,
                              java.lang.String operator,
                              java.util.List<java.lang.Object> errorPara)
                              throws RptServerException

  Update dynamic security record with "newDynamicSecurityObject" specified by old catalog path and old security file name.

  Parameters:
    `oldCatalogPath` - the specified catalog path, used to describe being updated security catalog path.
    `oldSecurityFileName` - the specified security file name, used to describe being updated security file name.
    `newDynamicSecurityObject` - this is newest dynamic security information
    `operator` -
  Returns:
  Throws:
    `RptServerException`

### setDynamicSecurityDefault

    int setDynamicSecurityDefault(java.lang.String catalogPath,
                                  java.lang.String securityFileName,
                                  boolean isDefault,
                                  java.lang.String operator)
                                  throws RptServerException

  Set dynamic security default status, which specified by catalog path and security file name.

  Parameters:
    `catalogPath` - specified dynamic security catalog path.
    `securityFileName` - specified dynamic security file name.
    `isDefault` - default status, `true` means default, otherwise not default.
    `operator` -
  Returns:
    updated record count.
  Throws:
    `RptServerException`

### setDynamicSecurityDefault

    int setDynamicSecurityDefault(int id,
                                  boolean isDefault,
                                  java.lang.String operator)
                                  throws RptServerException

  Set dynamic security default status, which specified by dynamic security record id.

  Parameters:
    `id` - dynamic security record id
    `isDefault` - default status, `true` means default, otherwise not default.
    `operator` -
  Returns:
    updated record count.
  Throws:
    `RptServerException`

### deleteDynamicSecurity

    int deleteDynamicSecurity(java.lang.String catalogPath,
                              java.lang.String securityFileName,
                              java.lang.String operator)
                              throws RptServerException

  Delete dynamic security specified by catalog path and security file name.

  Parameters:
    `catalogPath` - specified dynamic security catalog path.
    `securityFileName` - specified dynamic security file name.
    `operator` -
  Returns:
  Throws:
    `RptServerException`

### deleteDynamicSecuritys

    int deleteDynamicSecuritys(int[] idArray,
                               java.lang.String loginUser)
                               throws RptServerException

  Throws:
    `RptServerException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD