The ConstantSpecifier resource contains one or more items of type String. It can be used to allow users to customize enumeration strings in FIM for multiple locales.

Schema

  Copy Code
<?xml version="1.0"?><xs:schema xmlns:rm="http://schemas.microsoft.com/2006/11/ResourceManagement" targetNamespace="http://schemas.microsoft.com/2006/11/ResourceManagement" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ConstantSpecifier">
	<xs:sequence>
	<xs:element minOccurs="0" name="ObjectID" type="rm:ReferenceType" />
	<xs:element minOccurs="1" name="ObjectType">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="BoundAttributeType" type="rm:ReferenceType" />
	<xs:element minOccurs="0" name="BoundObjectType" type="rm:ReferenceType" />
	<xs:element minOccurs="1" name="CreatedTime" type="xs:dateTime" />
	<xs:element minOccurs="0" name="Creator" type="rm:ReferenceType" />
	<xs:element minOccurs="0" name="MVObjectID">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="DeletedTime" type="xs:dateTime" />
	<xs:element minOccurs="0" name="Description">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="DetectedRulesList" type="rm:ReferenceCollectionType" />
	<xs:element minOccurs="0" name="DisplayName">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="ExpectedRulesList" type="rm:ReferenceCollectionType" />
	<xs:element minOccurs="0" name="ExpirationTime" type="xs:dateTime" />
	<xs:element minOccurs="0" name="Locale">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	<xs:element minOccurs="0" name="ResourceTime" type="xs:dateTime" />
	<xs:element minOccurs="1" name="ConstantValueKey">
		<xs:simpleType>
		<xs:restriction base="xs:string">
			<xs:pattern value=".{0,448}" />
		</xs:restriction>
		</xs:simpleType>
	</xs:element>
	</xs:sequence>
  </xs:complexType>
</xs:schema>

Properties

The following table lists the properties of the ConstantSpecifier resource:

Property Description

BoundAttributeType

Required property that is a reference to an AttributeTypeDescription resource. BoundAttributeType represents an attribute on the resource referred to by BoundObjectType.

BoundObjectType

Required property that is a reference to an ObjectTypeDescription resource.

ConstantValueKey

Required multi-valued string property. Each item represents an enumeration value of the attribute referred to by BoundAttributeType for the resource referred to by BoundObjectType. The String length must be no more than 448 characters.

DisplayName

Optional String property inherited from Resource. In the ConstantSpecifier resource, this property contains the localized value that will be displayed instead of the value in ConstantValueKey. The String length must be no more than 448 characters.

Locale

Optional String property inherited from Resource. In the ConstantSpecifier resource, this property indicates in which locale the DisplayName value will be displayed instead of the value in ConstantValueKey. The String length must be no more than 448 characters.

Parent Elements

None

Remarks

All of the resource types in FIM have the same attribute bindings as the Resource type by default. For more information, see Forefront Identity Manager Schema.

Example

The ConstantSpecifier resource allows users to create enumeration values for a resource attribute that varies by locale. For example, a new AttributeTypeDescription resource called “EyeColor” could be created and bound to a Person resource. The “EyeColor” attribute might have the values “Blue”, “Brown”, “Green”, and “Mixed”. However, if these values should display differently in different locales, a ConstantSpecifier resource could be created for each Locale. For each ConstantSpecifier representing a Locale, the BoundObjectType would be “Person” and the BoundAttributeType would be a reference to the “EyeColor” AttributeTypeDescription resource. The ConstantValueKey property would contain localized strings that represent the values “Green”, “Blue”, “Brown” and “Mixed”. The DisplayName value of the ConstantSpecifier would represent the display name for the “EyeColor” attribute for the locale.

The following example of a ConstantSpecifier specifies that whenever there is a value “Blue” for the attribute “EyeColor” in the context of “Person” resource type in German, display “Blau.”

  Copy Code
<ConstantSpecifier>
  <Locale>de-de</Locale>
  <ConstantValueKey>Blue</ConstantValueKey>  
  <DisplayName>Blau</DisplayName>
  <BoundObjectType>Reference to “Person” ObjectTypeDescription</BoundObjectType>
  <BoundAttributeType>Reference to “EyeColor” AttributeTypeDescription</BoundAttributeType >
</ConstantSpecifier>

See Also