public interface DeviceInventory
FunctionalItems connected to
the mPRM and the Gateways through which they are connected.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addEventSubscription(java.lang.String gatewayID,
org.osgi.service.event.EventHandler handler,
java.lang.String[] topics,
java.lang.String filter)
Add subscription for Functional Item events.
|
java.lang.String |
addGlobalEventSubscription(java.lang.String nodePath,
org.osgi.service.event.EventHandler handler,
java.lang.String[] topics,
java.lang.String filter)
Add subscription for Functional Item events.
|
com.prosyst.mbs.services.fim.metadata.BeanMetadata |
getBeanMetadata(java.lang.String gatewayID,
java.lang.String className)
Returns bean meta-data given a bean class name.
|
com.prosyst.mbs.services.fim.metadata.CreationMetadata |
getCreationMetadata(java.lang.String gatewayID,
java.lang.String className)
Returns bean creation meta-data given a bean class name.
|
FunctionalItemEx |
getFunctionalItem(FunctionalItemGUID guid)
Returns the functional item with the given GUID or
null if such functional item is not found. |
Gateway |
getGateway(java.lang.String gatewayID)
Get gateway with given ID.
|
java.util.Collection<com.prosyst.mbs.services.fim.metadata.CreationMetadata> |
getItemCreationMetadata(java.lang.String gatewayID,
java.lang.String objectClass)
Returns all item creation meta-data available through
FunctionalItemFactory on the given gateway. |
com.prosyst.mbs.services.fim.metadata.CreationMetadata |
getItemCreationMetadata(java.lang.String gatewayID,
java.lang.String objectClass,
java.lang.String factoryUID)
Returns item creation meta-data for given class provided by the specified
FunctionalItemFactory on
the given gateway. |
com.prosyst.mbs.services.fim.metadata.ItemMetadata |
getItemMetadata(java.lang.String gatewayID,
java.lang.String className)
Returns meta-data for given functional item class.
|
boolean |
isItemType(java.lang.String className)
Check if given class name corresponds to a known Functional Item type.
|
<any> |
listBeanTypes(java.lang.String gatewayID)
List all available bean types' class names on given gateway.
|
<any> |
listCreationTypes(java.lang.String gatewayID)
List all available for creation bean types' class names on given gateway.
|
<any> |
listFunctionalItems(java.lang.String objectClass,
java.lang.String filter)
List functional items connected to the mPRM.
|
<any> |
listFunctionalItemStates(java.lang.String objectClass,
java.lang.String filter)
Similar to {
listFunctionalItems(String, String), but returns FunctionalItemEx instances, instead of IDs. |
<any> |
listGateways(java.lang.String filter)
List IDs of gateways connected to the mPRM.
|
<any> |
listItemCreationMetadata(java.lang.String gatewayID)
Returns creation meta-data IDs for all item types supported by functional item factories on the given gateway.
|
<any> |
listItemTypes(java.lang.String gatewayID)
List all available item types' class names on given gateway.
|
void |
removeEventSubscription(java.lang.String subscriptionID)
Remove previously registered with
addEventSubscription(String, EventHandler, String[], String) method subscription. |
<any> listGateways(java.lang.String filter)
throws ManagementException
getGateway(String) method.filter - control unit filter or null, if all connected gateways should be returnedManagementException - if system error occursGateway getGateway(java.lang.String gatewayID) throws ManagementException
gatewayID - gateway IDnull, if gateway with the given ID is not foundManagementException - if system error occurs<any> listFunctionalItems(java.lang.String objectClass,
java.lang.String filter)
throws ManagementException
objectClass - fully qualified object class name (for example "com.prosyst.mbs.services.hdm.HomeDevice"), or null if functional
items from all classes should be returnedfilter - control unit or LDAP filter or null, if all connected functional items should be returnedFunctionalItemGUIDs of connected FunctionalItemExManagementException - if system error occurs<any> listFunctionalItemStates(java.lang.String objectClass,
java.lang.String filter)
throws ManagementException
listFunctionalItems(String, String), but returns FunctionalItemEx instances, instead of IDs.objectClass - fully qualified object class name (for example "com.prosyst.mbs.services.hdm.HomeDevice"), or null if functional
items from all classes should be returnedfilter - control unit or LDAP filter or null, if all connected functional items should be returnedFunctionalItemEx objectsManagementException - is system error occursFunctionalItemEx getFunctionalItem(FunctionalItemGUID guid) throws ManagementException
null if such functional item is not found.guid - functional item GUIDnull if not foundManagementException - if system error occurscom.prosyst.mbs.services.fim.metadata.ItemMetadata getItemMetadata(java.lang.String gatewayID,
java.lang.String className)
throws java.lang.Exception
gatewayID - id of the gateway from which the item meta-data is requested or null for back-end functional item meta-dataclassName - class namenull if the given item class is not found on this gatewayManagementException - is system error occursjava.lang.Exceptioncom.prosyst.mbs.services.fim.metadata.BeanMetadata getBeanMetadata(java.lang.String gatewayID,
java.lang.String className)
throws java.lang.Exception
gatewayID - id of the gateway from which the bean meta-data is requested or null for back-end bean meta-dataclassName - bean class namenull if the given bean class is not found on this gatewayjava.lang.Exceptioncom.prosyst.mbs.services.fim.metadata.CreationMetadata getCreationMetadata(java.lang.String gatewayID,
java.lang.String className)
throws java.lang.Exception
gatewayID - id of the gateway from which the creation meta-data is requested or null for back-end creation meta-dataclassName - 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 gatewayID,
java.lang.String objectClass)
throws java.lang.Exception
FunctionalItemFactory on the given gateway.gatewayID - gateway IDobjectClass - functional item object classjava.lang.Exception - if system error occurscom.prosyst.mbs.services.fim.metadata.CreationMetadata getItemCreationMetadata(java.lang.String gatewayID,
java.lang.String objectClass,
java.lang.String factoryUID)
throws java.lang.Exception
FunctionalItemFactory on
the given gateway.gatewayID - gateway IDobjectClass - functional item object classfactoryUID - factory UIDjava.lang.Exception - if system error occurs<any> listItemCreationMetadata(java.lang.String gatewayID)
throws java.lang.Exception
gatewayID - id of the gateway for which item creation meta-data is requestedjava.lang.Exception - if system error occurs<any> listItemTypes(java.lang.String gatewayID)
throws java.lang.Exception
getItemMetadata(String, String) method.gatewayID - id of the gateway for which item types are requested or null for back-end typesjava.lang.Exception - if system error occurs<any> listBeanTypes(java.lang.String gatewayID)
throws java.lang.Exception
getBeanMetadata(String, String) method.gatewayID - id of the gateway for which item types are requested or null for back-end typesjava.lang.Exception - if system error occurs<any> listCreationTypes(java.lang.String gatewayID)
throws java.lang.Exception
getCreationMetadata(String, String) method.gatewayID - id of the gateway for which item types are requested or null for back-end typesjava.lang.Exception - if system error occursboolean isItemType(java.lang.String className)
throws java.lang.Exception
className - class nametrue if the given class name is a Functional Item type, false - otherwisejava.lang.Exception - if system error occursjava.lang.String addEventSubscription(java.lang.String gatewayID,
org.osgi.service.event.EventHandler handler,
java.lang.String[] topics,
java.lang.String filter)
throws java.lang.Exception
gatewayID - gateway from which events should be received. If null is passed events from all gateways will be received.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.Exceptionjava.lang.String addGlobalEventSubscription(java.lang.String nodePath,
org.osgi.service.event.EventHandler handler,
java.lang.String[] topics,
java.lang.String filter)
throws java.lang.Exception
nodePath - the node location of the device subtree tree in which the handler is interested.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(String, EventHandler, String[], String) method subscription.subscriptionID - subscription ID returned by the addEventSubscription(String, EventHandler, String[], String) method.java.lang.ExceptionCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.