Hi Isomorphic,
I'm trying to implement a DataSource attribute that defines the allowed clientside OperationIds (using the OperationType in case no OperationId is given).
This way I can easily mark a DataSource as read-only and also only allow special read-operations.
Now in my IDACall.handleDSRequest()-override if I want to display that an action is not allowed, I'll return a DSResponse.setFailure("myMeaningfulErrorMessage").
This works for every action besides validate. So I need to handle this case specially (with a validation error).
Therefore I check the OperationType with a switch-statement.
But what to use for OperationType "validate"?
There is a string DataSource.OP_VALIDATE in Eclipse, but not the Javadocs.
But in the docs there is a DataSource.OPS_VALID_FOR_FIELDVALUEEXPRESSION, which returns a java.util.Set. Should I use this? If so, could you document it better? Or is the Javadoc for DataSource.OP_VALIDATE just missing (I think so).
Thank you & Best regards
Blama
I'm trying to implement a DataSource attribute that defines the allowed clientside OperationIds (using the OperationType in case no OperationId is given).
This way I can easily mark a DataSource as read-only and also only allow special read-operations.
Now in my IDACall.handleDSRequest()-override if I want to display that an action is not allowed, I'll return a DSResponse.setFailure("myMeaningfulErrorMessage").
This works for every action besides validate. So I need to handle this case specially (with a validation error).
Therefore I check the OperationType with a switch-statement.
But what to use for OperationType "validate"?
There is a string DataSource.OP_VALIDATE in Eclipse, but not the Javadocs.
But in the docs there is a DataSource.OPS_VALID_FOR_FIELDVALUEEXPRESSION, which returns a java.util.Set. Should I use this? If so, could you document it better? Or is the Javadoc for DataSource.OP_VALIDATE just missing (I think so).
Thank you & Best regards
Blama
Comment