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.String
COMMAND_CALL
static java.lang.String
COMMAND_DELETE
static java.lang.String
COMMAND_EXEC
static java.lang.String
COMMAND_FETCH
static java.lang.String
COMMAND_INSERT
static java.lang.String
COMMAND_PRINT
static java.lang.String
COMMAND_READ
static java.lang.String
COMMAND_UPDATE
static java.lang.String
COMMAND_WRITE
-
Method Summary
Modifier and Type Method Description java.lang.String
execute(java.lang.String command)
Invokes the execute(String) method on the Custom Resource passingcommand
as argument.java.lang.String
execute(java.lang.String command, java.lang.String binding)
Invokes the execute(String) method on the Custom Resource passingcommand
as 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 passingcommand
as 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 passingcommand
as 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
-