コード例 #1
0
 /**
  * Save the white list on the RPRM
  *
  * @param userToken
  * @param whitelistEnabled
  * @param whitelist
  * @return
  */
 public JWebResult saveWhitelist(
     final String userToken, final Boolean whitelistEnabled, final List<String> whitelist) {
   logger.info("Invoking saveWhitelist...");
   final JCredentials _saveWhitelist_credentials = new JCredentials();
   _saveWhitelist_credentials.setUserToken(userToken);
   final Boolean _saveWhitelist_whitelistEnabled = whitelistEnabled;
   final List<String> _saveWhitelist_whitelist = whitelist;
   final JWebResult _saveWhitelist__return =
       port.saveWhitelist(
           _saveWhitelist_credentials, _saveWhitelist_whitelistEnabled, _saveWhitelist_whitelist);
   return _saveWhitelist__return;
 }
コード例 #2
0
  /**
   * Get the white list on the RPRM
   *
   * @param userToken
   * @return
   */
  public JWebResult getWhitelist(final String userToken) {
    logger.info("Invoking getWhitelist...");
    final JCredentials _getWhitelist_credentials = new JCredentials();
    _getWhitelist_credentials.setUserToken(userToken);
    final Holder<Boolean> _getWhitelist_whitelistEnabled = new Holder<Boolean>();
    final Holder<List<String>> _getWhitelist_whitelist = new Holder<List<String>>();
    final Holder<String> _getWhitelist_clientIpAddress = new Holder<String>();
    final JWebResult _getWhitelist__return =
        port.getWhitelist(
            _getWhitelist_credentials,
            _getWhitelist_whitelistEnabled,
            _getWhitelist_whitelist,
            _getWhitelist_clientIpAddress);
    setWhiteListEnableStatus(_getWhitelist_whitelistEnabled.value);
    setWhiteList(_getWhitelist_whitelist.value);
    setClientIpAddress(_getWhitelist_clientIpAddress.value);

    return _getWhitelist__return;
  }