teaObjectService
This is a service available under tea.services. The objectService is a factory which creates TeaObjects providing data from TIBCO Enterprise Administrator Server and agents.
Dependencies
- $q
- $http
- $rootScope
Methods
Parameters
paramsObject – {object} – Parameters object containing the following properties ([propKey] indicates that a property is optional):
- agentType - {string} - The agent type name. Used to set agent type token in the Object ID.
- objectType - {string} - The object type. Used to set objType token in the Object ID.
- [agentID] – {string} – The agent ID. Used to set agentID in the Object ID. Not needed if there is only one agent of a given agentType.
- [objectKey] – {string} – The object key. Used to set objectKey in the Object ID. Not needed if the object is a singleton.
Returns
{Promise} – Returns a promise that is resolved with the object requested as TeaObject
Parameters
path – {string} – path of the object following members relation from the root object.
Returns
{Promise} – Returns a promise that is resolved with the object requested as TeaObject
Parameters
typeName – {string} – typeName string following the format agentType:agentVersion:objectType.
Returns
{Promise} – Returns a promise that is resolved with the object requested as TeaObjectType
Parameters
paramsObject – {object} – Parameters object containing the following properties ([propKey] indicates that a property is optional):
- agentType – {string} – The agent type name. Used to set agent type token in the Object ID.
- objectType – {string} – The object type. Used to set objType token in the Object ID.
- [agentID] – {string} – The agent ID. Used to set agentID in the Object ID. Not needed if there is only one agent of a given agentType.
- [objectKey] – {string} – The object key. Used to set objectKey in the Object ID. Not needed if the object is a singleton.
- operation – {string} – String parameter defining the operation name to invoke
- methodType – {string} – String parameter defining the method type i.e. READ, UPDATE or DELETE
- params – {object} – Object parameter defining arguments of the operation invocation.
requireHeaders - {boolean} - If this parameter is true, then the returned Promise will be resolved with object containing response and http headers.
Returns
{Promise} – Returns a promise that is resolved with the response object of the operation.
The intended use case for this query is to support lists.
The query operation invokes the agent READ operation named query on the given object. That operation can be defined using standard mechanism to define object operations inside TIBCO Enterprise Administrator agents.
Parameters
paramsObject – {object} – Parameters object containing the following properties ([propKey] indicates that a property is optional):
- agentType – {string} – The agent type name. Used to set agent type token in the Object ID.
- objectType – {string} – The object type. Used to set objType token in the Object ID.
- [agentID] – {string} – The agent ID. Used to set agentID in the Object ID. Not needed if there is only one agent of a given agentType.
- [objectKey] – {string} – The object key. Used to set objectKey in the Object ID. Not needed if the object is a singleton.
- params – {object} – Object parameter defining arguments of the operation invocation.
Returns
{Promise} – Returns a promise that is resolved with the objects requested as Array<TeaObject>
The intended use case for this reference is to support relationship lists. query needs parameters while reference is named. A reference is navigable which means that the TIBCO Enterprise Administrator server can retrieve the list of objects based only on meta-data. This allows the reference results to be indexed.
Parameters
paramsObject – {object} – Parameters object containing the following properties ([propKey] indicates that a property is optional):
- agentType – {string} – The agent type name. Used to set agent type token in the Object ID.
- objectType – {string} – The object type. Used to set objType token in the Object ID.
- [agentID] – {string} – The agent ID. Used to set agentID in the Object ID. Not needed if there is only one agent of a given agentType.
- [objectKey] – {string} – The object key. Used to set objectKey in the Object ID. Not needed if the object is a singleton.
- reference – {string} – String parameter defining the name of the reference to retrieve.
Returns
{Promise} – Returns a promise that is resolved with the objects requested as Array<TeaObject>
Parameters
paramsObject – {object} – Parameters object containing the following properties:
- agentTypeName - {string} - The agent type name of the product.
- agentTypeVersion - {string} - The agentTypeVersion of the product.
Returns
{Promise} – Returns a promise that is resolved with a boolean value indicating whether the product is registered or not.
Usage
The typical usage of the object service is to retrieve objects needed to render the view.