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) |
|||
Line 26: | Line 26: | ||
== Groups representation == | == Groups representation == | ||
− | + | <pre> | |
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
Line 68: | Line 68: | ||
</schema> | </schema> | ||
</source> | </source> | ||
+ | </pre> | ||
== Retrieve Groups == | == Retrieve Groups == |
Revision as of 13:41, 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
<source lang="xml"> <?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" xmlns:xmlmime="http://www.w3.org/2005/05/xmlmime"> <include schemaLocation="common.xsd" /> <import namespace="http://www.w3.org/2005/05/xmlmime" schemaLocation="xmlmime.xsd" /> <element name="group" type="tns:Group" /> <complexType name="Group"> <all> <element ref="tns:expirationTime" minOccurs="0" /> <element ref="tns:accessRightID" minOccurs="0" /> <element ref="tns:searchStrings" minOccurs="0" /> <element ref="tns:creationTime" minOccurs="0" /> <element ref="tns:lastModifiedTime" minOccurs="0" /> <element ref="tns:announceTo" minOccurs="0" /> <element ref="tns:memberType" minOccurs="0" /> <element ref="tns:currentNrOfMembers" minOccurs="0" /> <element ref="tns:maxNrOfMembers" minOccurs="0" /> <element ref="tns:members" minOccurs="0" /> <!-- subresources --> <element ref="tns:membersContentReference" minOccurs="0" /> <element ref="tns:subscriptionsReference" minOccurs="0" /> </all> <attribute ref="tns:id"/> </complexType> <element name="memberType" type="tns:MemberType" /> <element name="currentNrOfMembers" type="long" /> <element name="maxNrOfMembers" type="long" /> <element name="members" type="tns:AnyURIList" /> <element name="membersContentReference" type="anyURI"/> <simpleType name="MemberType"> <restriction base="string"> <enumeration value="APPLICATION" /> <enumeration value="CONTAINER" /> <enumeration value="ACCESS_RIGHT" /> <enumeration value="SERVER_CAPABILITY_LAYER" /> <enumeration value="SCL" /> </restriction> </simpleType> </schema> </source>