Package com.ebasetech.xi.api
Interface CustomResource
public interface CustomResource extends Resource
The
CustomResource interface represents a Custom Resource.
- Since:
- V4.4
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMMAND_CALLstatic java.lang.StringCOMMAND_DELETEstatic java.lang.StringCOMMAND_EXECstatic java.lang.StringCOMMAND_FETCHstatic java.lang.StringCOMMAND_INSERTstatic java.lang.StringCOMMAND_PRINTstatic java.lang.StringCOMMAND_READstatic java.lang.StringCOMMAND_UPDATEstatic java.lang.StringCOMMAND_WRITE -
Method Summary
Modifier and Type Method Description java.lang.Stringexecute(java.lang.String command)Invokes the execute(String) method on the Custom Resource passingcommandas argument.java.lang.Stringexecute(java.lang.String command, java.lang.String binding)Invokes the execute(String) method on the Custom Resource passingcommandas argument.Methods inherited from interface com.ebasetech.xi.api.Element
getElementName, getElementType
-
Field Details
-
COMMAND_FETCH
static final java.lang.String COMMAND_FETCH- See Also:
- Constant Field Values
-
COMMAND_DELETE
static final java.lang.String COMMAND_DELETE- See Also:
- Constant Field Values
-
COMMAND_UPDATE
static final java.lang.String COMMAND_UPDATE- See Also:
- Constant Field Values
-
COMMAND_INSERT
static final java.lang.String COMMAND_INSERT- See Also:
- Constant Field Values
-
COMMAND_READ
static final java.lang.String COMMAND_READ- See Also:
- Constant Field Values
-
COMMAND_WRITE
static final java.lang.String COMMAND_WRITE- See Also:
- Constant Field Values
-
COMMAND_PRINT
static final java.lang.String COMMAND_PRINT- See Also:
- Constant Field Values
-
COMMAND_EXEC
static final java.lang.String COMMAND_EXEC- See Also:
- Constant Field Values
-
COMMAND_CALL
static final java.lang.String COMMAND_CALL- See Also:
- Constant Field Values
-
-
Method Details
-
execute
java.lang.String execute(java.lang.String command) throws com.ebasetech.xi.exceptions.FormRuntimeExceptionInvokes the execute(String) method on the Custom Resource passingcommandas argument.Javascript example:
var status = resources.CUSTOM_RESOURCE1.execute(CustomResource.COMMAND_READ);
- Parameters:
command-- Returns:
- status
- Throws:
com.ebasetech.xi.exceptions.FormRuntimeException- if any error occurs during execution- Since:
- V4.4
-
execute
java.lang.String execute(java.lang.String command, java.lang.String binding) throws com.ebasetech.xi.exceptions.FormRuntimeExceptionInvokes the execute(String) method on the Custom Resource passingcommandas argument. The binding can be obtained by the Custom Resource by issuing getBinding().Javascript example:
var status = resources.CUSTOM_RESOURCE1.execute(CustomResource.COMMAND_READ, "Test");
- Parameters:
command-binding-- Returns:
- status
- Throws:
com.ebasetech.xi.exceptions.FormRuntimeException- if any error occurs during execution- Since:
- V4.4
-