Interface PreCreateResourceCallback
-
public interface PreCreateResourceCallback
Callback which is called before executing the main logic of creating a resource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectorResponse
execute(VariantResource resource)
Callback which is called before executing the main logic of creating a resource and after validation.
-
-
-
Method Detail
-
execute
ConnectorResponse execute(VariantResource resource)
Callback which is called before executing the main logic of creating a resource and after validation. If it returns a response with code different from OK, the creation logic will not be executed and CREATE_RESOURCE procedure will return this error.- Parameters:
resource
- resource object created from procedure's arguments- Returns:
- a response with the code
OK
if the execution was successful, otherwise a response with an error code and an error message
-
-