Example #1
0
  private void validateFind(final Application application, final User user)
      throws RequiredException {
    this.serviceValidator.validateRequired("application", application);
    this.serviceValidator.validateRequired("application.id", application.getId());

    this.serviceValidator.validateRequired("user", user);
    this.serviceValidator.validateRequired("user.username", user.getName());
  }
Example #2
0
  public List<Authorization> find(final Application application) throws RequiredException {
    this.serviceValidator.validateRequired("application", application);
    this.serviceValidator.validateRequired("application.id", application.getId());

    return this.authorizationManager.find(application);
  }