Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "OM2M/Groups"

(Groups resource)
Line 28: Line 28:
  
 
<source lang="xml">
 
<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>
 
</source>
  
 
== Retrieve Groups ==
 
== Retrieve Groups ==

Revision as of 13:40, 16 April 2014

Groups resource

The Groups resource is a collection of group resources and/or groupAnnc resources. The following combinations are possible:


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"
    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>

Retrieve Groups

Back to the top