<xsd:element name="sharedresource_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The sharedresource_state element defines the different metadata associate with a Windows shared resource. This includes the share type, permissions, and max uses. This state mirror the SHARE_INFO_2 structure. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="netname" type="oval-def:EntityStateStringType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>This element specifies the name associated with a particular shared resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srstenetname" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:netname">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the netname entity of a sharedresource_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="shared_type" type="win-def:EntityStateSharedResourceTypeType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The type of the shared resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteshared_type" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:shared_type">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the shared_type entity of a sharedresource_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="max_uses" type="oval-def:EntityStateIntType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The maximum number of concurrent connections that the shared resource can accommodate.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srstemax_uses" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:max_uses">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the max_uses entity of a sharedresource_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="current_uses" type="oval-def:EntityStateIntType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The number of current connections to the resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srstecurrent_uses" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:current_uses">
<sch:assert test="@datatype='int'">
<sch:value-of select="../@id" /> - datatype attribute for the current_uses entity of a sharedresource_state should be 'int'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="local_path" type="oval-def:EntityStateStringType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The local path for the shared resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srstelocal_path" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:local_path">
<sch:assert test="not(@datatype) or @datatype='string'">
<sch:value-of select="../@id" /> - datatype attribute for the local_path entity of a sharedresource_state should be 'string'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_read_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to read data from a resource and, by default, to execute the resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_read_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_read_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_read_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_write_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to write data to the resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_write_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_write_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_write_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_create_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to create an instance of the resource (such as a file); data can be written to the resource as the resource is created.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_create_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_create_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_create_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_exec_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to execute the resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_exec_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_exec_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_exec_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_delete_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to delete the resource.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_delete_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_delete_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_delete_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_atrib_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to modify the resource's attributes (such as the date and time when a file was last modified).</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_atrib_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_atrib_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_atrib_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_perm_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to modify the permissions (read, write, create, execute, and delete) assigned to a resource for a user or application.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_perm_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_perm_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_perm_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="access_all_permission" type="oval-def:EntityStateBoolType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Permission to read, write, create, execute, and delete resources, and to modify their attributes and permissions.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="srsteaccess_all_permission" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="win-def:sharedresource_state/win-def:access_all_permission">
<sch:assert test="not(@datatype) or @datatype='bool'">
<sch:value-of select="../@id" /> - datatype attribute for the access_all_permission entity of a sharedresource_state should be 'bool'</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|