public final class DeviceScope extends Scope
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE
The constant for
Scope.getScopeType(). |
| Modifier and Type | Method and Description |
|---|---|
static DeviceScope |
create(java.lang.String deviceType,
java.lang.String deviceGroupId,
java.lang.String deviceFilter)
Creates device scope determined by given device-type, device-group and device-filter.
|
static DeviceScope |
createWithCustomListing(java.lang.String targetsListScript,
java.lang.String isMemberCheckScript)
Creates device scope determined by custom groovy listing and custom groovy filter.
|
static DeviceScope |
createWithIsMemberAndFilter(java.lang.String deviceType,
java.lang.String deviceGroupId,
java.lang.String isMemberCheckScript,
java.lang.String filter)
Creates device scope determined by given device-type, device-group, custom groovy filter and system-defined device filter.
|
static DeviceScope |
createWithIsMemberCheck(java.lang.String deviceType,
java.lang.String deviceGroupId,
java.lang.String isMemberCheckScript)
Creates device scope determined by given device-type, device-group and custom groovy filter.
|
java.lang.String |
getDeviceFilter()
Returns the device filter specified in this scope.
|
java.lang.String |
getDeviceGroupId()
Returns the id of the device group specified in this scope.
|
java.lang.String |
getDeviceType()
Returns the device type specified in this scope.
|
java.lang.String |
getIsMemberCheckScript()
Returns the custom groovy script for filtering the device targets defined in this scope.
|
java.lang.String |
getScopeType()
Returns a string identification of the scope type.
|
java.lang.String |
getTargetsListScript()
Returns the custom groovy scropt for listing the device targets defined in this scope.
|
java.lang.String |
toString() |
public static final java.lang.String TYPE
Scope.getScopeType().public static DeviceScope create(java.lang.String deviceType, java.lang.String deviceGroupId, java.lang.String deviceFilter)
deviceType - specifies the type of devices to be in the execution scope.deviceGroupId - specifies the device group, whose member devices to be in the execution scope.deviceFilter - devices that satisfy this device filter will be in the execution scope.Scope object equipped with supplied targets.public static DeviceScope createWithIsMemberCheck(java.lang.String deviceType, java.lang.String deviceGroupId, java.lang.String isMemberCheckScript)
deviceType - specifies the type of devices to be in the execution scope.deviceGroupId - specifies the device group, whose member devices to be in the execution scope.isMemberCheckScript - should be a groovy script that will be executed for each device
(restricted by deviceType and deviceGroupId) bound as 'target'; the script must return
boolean value specifying if the target device to be or not to be included in the execution scope.Scope object equipped with supplied targets.public static DeviceScope createWithIsMemberAndFilter(java.lang.String deviceType, java.lang.String deviceGroupId, java.lang.String isMemberCheckScript, java.lang.String filter)
filter
and the custom defined one - isMemberCheckScript.deviceType - specifies the type of devices to be in the execution scope.deviceGroupId - specifies the device group, whose member devices to be in the execution scope.isMemberCheckScript - should be a groovy script that will be executed for each device
(restricted by deviceType and deviceGroupId) bound as 'target'; the script must return
boolean value specifying if the target device to be or not to be included in the execution scope.Scope object equipped with supplied targets.public static DeviceScope createWithCustomListing(java.lang.String targetsListScript, java.lang.String isMemberCheckScript)
targetsListScript - groovy script that lists devices. The device objects must have methods
getDeviceType and getDeviceId in order to determine the target device.isMemberCheckScript - should be a groovy script that will be executed for each device
(listed by the targetsListScript script) bound as 'target'; the script must return
boolean value specifying if the target device to be or not to be included in the execution scope.Scope object equipped with supplied targets.public java.lang.String getDeviceGroupId()
public java.lang.String getDeviceType()
public java.lang.String getDeviceFilter()
public java.lang.String getTargetsListScript()
public java.lang.String getIsMemberCheckScript()
public java.lang.String getScopeType()
ScopegetScopeType in class Scopepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.