public GraphRequest(final Operation operation, final Context context) { if (null == operation) { throw new IllegalArgumentException("An operation is required"); } if (null == context) { throw new IllegalArgumentException("A context containing a user is required"); } this.operationChain = (OperationChain) OperationChain.wrap(operation); this.context = context; }
@JsonCreator public GraphRequest(@JsonProperty("operationChain") final Output<O> operation, @JsonProperty("context") final Context context) { if (null == operation) { throw new IllegalArgumentException("An operation is required"); } if (null == context) { throw new IllegalArgumentException("A context containing a user is required"); } this.operationChain = OperationChain.wrap(operation); this.context = context; }
public GraphRequest(final Operation operation, final User user) { if (null == operation) { throw new IllegalArgumentException("An operation is required"); } if (null == user) { throw new IllegalArgumentException("A user is required"); } this.operationChain = (OperationChain) OperationChain.wrap(operation); this.context = new Context(user); }
public GraphRequest(final Output<O> operation, final User user) { if (null == operation) { throw new IllegalArgumentException("An operation is required"); } if (null == user) { throw new IllegalArgumentException("A user is required"); } this.operationChain = OperationChain.wrap(operation); this.context = new Context(user); }