|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DeviceGroup
represents a collection of devices. It is used to publish services to a group of devices. A DeviceGroup
is ortogonal to Group
. Both objects can be used to define fine granularity access control to services.
Group
Field Summary |
Fields inherited from interface oracle.panama.model.ModelObject |
TYPEID |
Method Summary | |
void |
addDevice(Device device) Assign a device to a device group, if the device is already inside the group, it's a no-op. |
void |
addDynamicAttribute(java.lang.String name, java.lang.String value) Adds an dynamic attribute to the device group. |
java.util.HashMap |
getAllDynamicAttributes() Return all the attributes for this device group. |
java.lang.String |
getDescription() Get the description for the device group. |
Device[] |
getDevices() Get the list of devices that's already been assigned to the group. |
java.lang.String |
getDynamicAttribute(java.lang.String name) Get the dynamic attribute's value given it's name. |
void |
removeDevice(Device device) Remove a device from the device group, if the device is not inside the group, it's a no-op. |
void |
removeDynamicAttribute(java.lang.String name) Remove the dynamic attribute. |
void |
setDescription(java.lang.String description) Set the description for the device group |
Methods inherited from interface oracle.panama.model.ModelObject |
delete, getCreatedDate, getId, getLastModifiedDate, getName, getTypeId, getTypeName, isSystem, setName, setSystem, undoAll |
Methods inherited from interface oracle.panama.model.XMLObject |
setXML, toXML |
Method Detail |
public void addDevice(Device device)
device
- The device to be added to the group.java.lang.IllegalArgumentException
- if the device parameter is null.public void addDynamicAttribute(java.lang.String name, java.lang.String value)
name
- The name of the attribute. The name has to be unique per device group!value
- The value of the attribute.public java.util.HashMap getAllDynamicAttributes()
public java.lang.String getDescription()
public Device[] getDevices()
public java.lang.String getDynamicAttribute(java.lang.String name)
name
- The name of the attribute interested.public void removeDevice(Device device)
device
- The device to be removed from the group.java.lang.IllegalArgumentException
- if the device parameter is null.public void removeDynamicAttribute(java.lang.String name)
name
- The name of the attribute to be removedpublic void setDescription(java.lang.String description)
description
- The description for the device group.
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |