Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "OM2M/Groups"
< OM2M
(→Groups representation) |
(→Groups representation) |
||
Line 29: | Line 29: | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
− | <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://uri.etsi.org/m2m" xmlns:tns="http://uri.etsi.org/m2m | + | <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://uri.etsi.org/m2m" xmlns:tns="http://uri.etsi.org/m2m"> |
− | + | <include schemaLocation="common.xsd" /> | |
− | + | <element name="groups" type="tns:Groups" /> | |
− | + | <complexType name="Groups"> | |
− | + | <all> | |
− | + | <element ref="tns:accessRightID" minOccurs="0"/> | |
− | + | <element ref="tns:creationTime" minOccurs="0"/> | |
− | + | <element ref="tns:lastModifiedTime" minOccurs="0"/> | |
− | + | <!-- subresources --> | |
− | + | <element ref="tns:groupCollection" minOccurs="0" /> | |
− | + | <element ref="tns:groupAnncCollection" minOccurs="0" /> | |
− | + | <element ref="tns:subscriptionsReference" minOccurs="0"/> | |
− | + | </all> | |
− | + | </complexType> | |
− | + | <element name="groupCollection" type="tns:NamedReferenceCollection" /> | |
− | + | <element name="groupAnncCollection" type="tns:NamedReferenceCollection" /> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</schema> | </schema> | ||
</source> | </source> | ||
== Retrieve Groups == | == Retrieve Groups == |
Revision as of 13:43, 16 April 2014
Groups resource
The Groups resource is a collection of group resources and/or groupAnnc resources. The following combinations are possible:
- < sclBase>/ groups: contains only local group resource.
- < sclBase>/ scls/< scl>/ groups: contains groupAnnc resource announced by the remote < scl>.
- < sclBase>/ applications/< app>/ groups: contains only group resource created by the application corresponding to < app>.
- < sclBase>/ scls/< scl>/ applications/< applicationAnnc>/ groups: contains only groupAnnc resource, representing the announcement of a group residing in the remote < scl>.
Attribute Name | Type | Multiplicity | Create | Update | Response |
groupCollection | NamedReferenceCollection | 0..unbounded | N/A | NP | M |
groupAnncCollection | NamedReferenceCollection | 0..unbounded | N/A | NP | M |
subscriptionReference | AnyURI | 1 | N/A | NP | M |
accessRightID | AnyURI | 0..1 | N/A | O | O |
creationTime | DateTime | 1 | N/A | NP | M |
lastModifiedTime | DateTime | 1 | N/A | NP | M |
Groups representation
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://uri.etsi.org/m2m" xmlns:tns="http://uri.etsi.org/m2m"> <include schemaLocation="common.xsd" /> <element name="groups" type="tns:Groups" /> <complexType name="Groups"> <all> <element ref="tns:accessRightID" minOccurs="0"/> <element ref="tns:creationTime" minOccurs="0"/> <element ref="tns:lastModifiedTime" minOccurs="0"/> <!-- subresources --> <element ref="tns:groupCollection" minOccurs="0" /> <element ref="tns:groupAnncCollection" minOccurs="0" /> <element ref="tns:subscriptionsReference" minOccurs="0"/> </all> </complexType> <element name="groupCollection" type="tns:NamedReferenceCollection" /> <element name="groupAnncCollection" type="tns:NamedReferenceCollection" /> </schema>