Package com.day.cq.wcm.mobile.api.device
Interface DeviceGroupProvider
-
public interface DeviceGroupProviderTheDeviceGroupProviderprovides access to existing device groups.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMOUNTPOINT_DEVICEGROUPS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeviceGroupfind(DeviceGroupPredicate predicate)Tries to find a matchingDeviceGroupusing the providedDeviceGroupPredicate.DeviceGroupget(java.lang.String name)Returns theDeviceGroupas identified by itsname.java.util.Collection<DeviceGroup>getAll()Returns allDeviceGroups 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 theDeviceGroupas identified by itsname. If no device group matches the given name,nullis returned.- Parameters:
name- The name of the desired device group.- Returns:
- The device group with the given name, or
nullif not found.
-
getAll
java.util.Collection<DeviceGroup> getAll()
Returns allDeviceGroups known to this provider.- Returns:
- A
Collectioncontaining all known device groups.
-
find
DeviceGroup find(DeviceGroupPredicate predicate)
Tries to find a matchingDeviceGroupusing the providedDeviceGroupPredicate.- Parameters:
predicate- The predicate to find a match with.- Returns:
- The matching
DeviceGroupornullif none was found.
-
-