PropertyControl 数据对象

PropertyControl 用于指定要返回的实体属性。

PropertyControl 用于在 get API 的输入数据对象中,以指定要返回的实体的属性。

PropertyControl 数据对象的结构由以下内容组成:
properties
用于添加属性的名称。如果属性包含通配符值“*”,那么将返回实体的所有受支持属性。
contextProperties
用于添加上下文属性和元数据的名称,例如,具有元数据“lang”的属性。未定义任何内置的上下文属性。

XML 模式定义

以下是 PropertyControl 数据对象的 XML 模式定义:
<xsd:complexType name="PropertyControl">
    <xsd:complexContent>
        <xsd:extension base="Control">
	     <xsd:sequence>
	         <xsd:element name="properties" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
		  <xsd:element name="contextProperties" minOccurs="0" maxOccurs="unbounded">
		      <xsd:complexType>
		          <xsd:simpleContent>
			      <xsd:extension base="xsd:string">
				  <xsd:attribute ref="xml:lang" />
			      </xsd:extension>
			   </xsd:simpleContent>
		       </xsd:complexType>
		   </xsd:element>		
	      </xsd:sequence>
	  </xsd:extension>
     </xsd:complexContent>
</xsd:complexType>

样本数据对象

以下是一个样本 PropertyControl 数据对象,用在请求 uid、cn、sn 属性的 get 操作中:
<wim:controls xsi:type="wim:PropertyControl">
      <wim:properties>cn</wim:properties>
      <wim:properties>uid</wim:properties>
      <wim:properties>sn</wim:properties>
</wim:controls>


使用条款 | 反馈