package ru.micord.ervu.account_applications.component.rpc;

import ru.micord.ervu.account_applications.component.service.IdmValidatorService;

import ru.cg.webbpm.modules.standard_annotations.validation.NotNull;
import ru.cg.webbpm.modules.webkit.annotations.RpcCall;
import ru.cg.webbpm.modules.webkit.annotations.RpcService;
import ru.cg.webbpm.modules.webkit.beans.Behavior;

/**
 * @author Emir Suleimanov
 */
@RpcService
public class IdmValidatorRpcService extends Behavior {
  @NotNull
  public IdmValidatorService validatorService;

  @RpcCall
  public boolean valueExists(String value) {
    return validatorService.valueExists(value);
  }
}
