Package com.day.cq.wcm.mobile.api.device
Interface DeviceGroupProvider
-
public interface DeviceGroupProvider
TheDeviceGroupProvider
provides access to existing device groups.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MOUNTPOINT_DEVICEGROUPS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeviceGroup
find(DeviceGroupPredicate predicate)
Tries to find a matchingDeviceGroup
using the providedDeviceGroupPredicate
.DeviceGroup
get(java.lang.String name)
Returns theDeviceGroup
as identified by itsname
.java.util.Collection<DeviceGroup>
getAll()
Returns allDeviceGroup
s known to this provider.
-
-
-
Field Detail
-
MOUNTPOINT_DEVICEGROUPS
static final java.lang.String MOUNTPOINT_DEVICEGROUPS
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
DeviceGroup get(java.lang.String name)
Returns theDeviceGroup
as identified by itsname
. If no device group matches the given name,null
is returned.- Parameters:
name
- The name of the desired device group.- Returns:
- The device group with the given name, or
null
if not found.
-
getAll
java.util.Collection<DeviceGroup> getAll()
Returns allDeviceGroup
s known to this provider.- Returns:
- A
Collection
containing all known device groups.
-
find
DeviceGroup find(DeviceGroupPredicate predicate)
Tries to find a matchingDeviceGroup
using the providedDeviceGroupPredicate
.- Parameters:
predicate
- The predicate to find a match with.- Returns:
- The matching
DeviceGroup
ornull
if none was found.
-
-