public interface Gateway
FunctionalItemEx are connected to the mPRM.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_GATEWAY_ID
Event property for the gateway ID from which event originated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addEventSubscription(org.osgi.service.event.EventHandler handler,
java.lang.String[] topics,
java.lang.String filter)
Add subscription for Functional Item events.
|
void |
addGatewayStateListener(GatewayStateListener listener)
This method can be used to register listener which will be notified for changes in gateway online state.
|
void |
close()
Releases underlying resources used by this instance.
|
com.prosyst.mbs.services.fim.metadata.BeanMetadata |
getBeanMetadata(java.lang.String className)
Returns bean meta-data given a bean class name.
|
com.prosyst.mbs.services.fim.metadata.CreationMetadata |
getCreationMetadata(java.lang.String className)
Returns bean creation meta-data given a bean class name.
|
FunctionalItemEx |
getFunctionalItem(java.lang.String uid)
Returns functional item with given UID.
|
java.lang.String |
getGatewayID()
Returns the ID of the gateway, unique in the scope of the mPRM.
|
java.util.Collection<com.prosyst.mbs.services.fim.metadata.CreationMetadata> |
getItemCreationMetadata(java.lang.String objectClass)
Returns all item creation meta-data available through
FunctionalItemFactory on this gateway. |
com.prosyst.mbs.services.fim.metadata.CreationMetadata |
getItemCreationMetadata(java.lang.String objectClass,
java.lang.String factoryUID)
Returns item creation meta-data for given class provided by the specified
FunctionalItemFactory. |
com.prosyst.mbs.services.fim.metadata.ItemMetadata |
getItemMetadata(java.lang.String className)
Returns meta-data for given functional item class on this gateway.
|
java.lang.Object |
getProperty(java.lang.String functionalItemUID,
java.lang.String property)
Get value of given functional item's property.
|
java.lang.Object |
invokeOperation(java.lang.String functionalItemUID,
java.lang.String operation,
java.lang.Object[] parameters)
Execute operation on given functional item.
|
boolean |
isOnline()
Check if the gateway is currently connected to the mPRM.
|
<any> |
listBeanTypes()
List all available bean types' class names on this gateway.
|
<any> |
listCreationTypes()
List all available for creation bean types' class names on this gateway.
|
<any> |
listFunctionalItems(java.lang.String objectClass,
java.lang.String ldapFilter)
List functional items matching given object class and LDAP filter.
|
<any> |
listItemCreationMetadata()
Returns creation meta-data IDs for all item types supported by functional item factories on this gateway.
|
<any> |
listItemTypes()
List all available item types' class names on this gateway.
|
void |
removeEventSubscription(java.lang.String subscriptionID)
Remove previously registered with
addEventSubscription(EventHandler, String[], String) method subscription. |
void |
removeGatewayStateListener(GatewayStateListener listener)
Unregister listener previously registered with
addGatewayStateListener(GatewayStateListener) method. |
void |
setProperty(java.lang.String functionalItemUID,
java.lang.String property,
java.lang.Object value)
Set property of given functional item.
|
void |
synchronizeState()
Synchronized functional items states from remote gateway.
|
static final java.lang.String PROPERTY_GATEWAY_ID
void close()
throws java.lang.Exception
java.lang.Exception - if system error occursjava.lang.String getGatewayID()
boolean isOnline()
throws java.lang.Exception
true if the gateway is currently connected to the mPRM, false - otherwisejava.lang.Exception<any> listFunctionalItems(java.lang.String objectClass,
java.lang.String ldapFilter)
throws org.osgi.framework.InvalidSyntaxException
FunctionalItem.UID, FunctionalItem.TAGS,
FunctionalItem.getAttributes() and Constants.OBJECTCLASS.objectClass - fully qualified object class name (for example "com.prosyst.mbs.services.hdm.HomeDevice"), or null if functional
items from all classes should be returnedldapFilter - LDAP filter or nullnull if none matchorg.osgi.framework.InvalidSyntaxExceptionFunctionalItemEx getFunctionalItem(java.lang.String uid) throws java.lang.Exception
FunctionalItemEx for operation
execution and properties setting/getting should be used.uid - functional item UIDnull if functional item with the give UID is not foundjava.lang.Exceptionjava.lang.Object invokeOperation(java.lang.String functionalItemUID,
java.lang.String operation,
java.lang.Object[] parameters)
throws java.lang.Exception
functionalItemUID - functional item UIDoperation - operation nameparameters - input parametersjava.lang.Exception - if error occurs while executing the operationvoid setProperty(java.lang.String functionalItemUID,
java.lang.String property,
java.lang.Object value)
throws java.lang.Exception
functionalItemUID - functional item UIDproperty - property namevalue - property new valuejava.lang.Exception - if error occurs while setting propertyjava.lang.Object getProperty(java.lang.String functionalItemUID,
java.lang.String property)
throws java.lang.Exception
functionalItemUID - functional item UIDproperty - property namejava.lang.Exception - if error occurs while reading the propertyjava.lang.String addEventSubscription(org.osgi.service.event.EventHandler handler,
java.lang.String[] topics,
java.lang.String filter)
throws java.lang.Exception
handler - event handler which will receive the eventstopics - list of topics in which the handler is interested. The topics defined in FunctionalItemEventConstants should be used.filter - LDAP filter to further select events of interest to a Event Handler serviceremoveEventSubscription(String) to remove the subscriptionjava.lang.Exceptionvoid removeEventSubscription(java.lang.String subscriptionID)
throws java.lang.Exception
addEventSubscription(EventHandler, String[], String) method subscription.subscriptionID - subscription ID returned by the addEventSubscription(EventHandler, String[], String) method.java.lang.Exceptioncom.prosyst.mbs.services.fim.metadata.ItemMetadata getItemMetadata(java.lang.String className)
throws java.lang.Exception
className - class namenull if the given item class is not found on this gatewayjava.lang.Exceptioncom.prosyst.mbs.services.fim.metadata.BeanMetadata getBeanMetadata(java.lang.String className)
throws java.lang.Exception
className - bean class namenull if the given bean class is not found on this gatewayjava.lang.Exception - if system error occurscom.prosyst.mbs.services.fim.metadata.CreationMetadata getCreationMetadata(java.lang.String className)
throws java.lang.Exception
className - the bean class name which fields meta-data is requested.null if the given bean class is not found on this gatewayjava.lang.Exception - if system error occursjava.util.Collection<com.prosyst.mbs.services.fim.metadata.CreationMetadata> getItemCreationMetadata(java.lang.String objectClass)
throws java.lang.Exception
FunctionalItemFactory on this gateway.objectClass - functional item object classjava.lang.Exception - if system error occurscom.prosyst.mbs.services.fim.metadata.CreationMetadata getItemCreationMetadata(java.lang.String objectClass,
java.lang.String factoryUID)
throws java.lang.Exception
FunctionalItemFactory.objectClass - functional item object classfactoryUID - factory UIDjava.lang.Exception - if system error occurs<any> listItemCreationMetadata()
throws java.lang.Exception
java.lang.Exception - if system error occurs<any> listItemTypes()
throws java.lang.Exception
getItemMetadata(String) method.java.lang.Exception - if system error occurs<any> listBeanTypes()
throws java.lang.Exception
getBeanMetadata(String) method.java.lang.Exception - if system error occurs<any> listCreationTypes()
throws java.lang.Exception
getCreationMetadata(String) method.java.lang.Exception - if system error occursvoid addGatewayStateListener(GatewayStateListener listener) throws java.lang.Exception
removeGatewayStateListener(GatewayStateListener) to unregister listener.listener - gateway state listenerManagementExceptionjava.lang.Exceptionvoid removeGatewayStateListener(GatewayStateListener listener) throws java.lang.Exception
addGatewayStateListener(GatewayStateListener) method.listener - gateway state listenerjava.lang.Exceptionvoid synchronizeState()
throws java.lang.Exception
java.lang.Exception - if error occursCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.