Generally, you set options for the adapter type by mapping the incoming resource attributes to the standard Waveset account attributes or by creating your own custom attributes (called extended schema attributes).
Your resource must define resource attributes and set default values for resource attributes for which it makes sense to have default. The resource does not have to present the prototypeXML object.
The attributes in SkeletonActiveSyncResourceAdapter are mandatory. Do not delete these attribute definitions when customizing the file.
To map incoming resource attributes to one of the standard Waveset account attributes, use the syntax shown in the following example.
Where:
The <AccountAttributesTypes> element surrounds the prototypeXML string where you map the resource attribute to the Waveset account attribute.
The <AttributeDefinitionRef> element identifies the Waveset account attribute.
The following table describes the <AttributeDefinitionRef> element fields.
Element Field |
Description |
---|---|
name |
Identifies the Waveset account attribute to which the resource attribute is being mapped. (The left column on the resource schema page in the Waveset User Interface.) |
mapName |
Identifies the name of the incoming resource attribute. When editing the skeleton file, replace change-value-here with the resource attribute name. |
mapType |
Identifies the incoming attribute type, which can be string, int, or encrypted. |
For more information on mapping resource attributes to account attributes, see Map the Attributes.
To map incoming resource attributes to attributes other than a standard Waveset attribute, you must create an extended schema attribute. The following example illustrates how to map a resource attribute to an extended schema attribute.
<AccountAttributeType name=’HomeDirectory’ type=’string’ mapName=’HomeDirectory’ mapType=’string’>\n"+ </AccountAttributeType>\n"+ |
You do not have to declare an ObjectRef type. The mapName field identifies the custom account attribute HomeDirectory. You define the mapType field the same as you would when mapping an attribute to a standard account attribute.