Managing device types

You can manage device types using a wizard or by importing or editing DeviceTypes.xml in the <LBI_HOME>\<SmartNotication_HOME>\conf directory.

The device types wizard is included for listing, deleting, and importing device types and editing device type templates. You can launch this utility by accessing Smart Notification > Admin > Device Type Administration.

Device types can also be added or edited by importing their definitions specified in DeviceTypes.xml. You can import device types during repository setup.

This is an example of DeviceTypes.xml. This sample document specifies email (unlimited) as the default device type:

<device-types default="E-Mail (Unlimited)>
  <device-type 
   name="XML Ouput" 
   driver="com.lawson.lsn.deliveryengine.drivers.XmlDeviceDriver"  
   formatter="com.lawson.lsn.deliveryengine.drivers.XmlDeviceDriver" 
   administrative="true"
  />
  <device-type 
   name="HTML File" 
   driver="com.lawson.lsn.deliveryengine.drivers.FileDeviceDriver" 
   formatter="com.lawson.lsn.rendering.HtmlFormatter" 
   administrative="true" 
   extension-map="text/html=.html;text/*=.txt;*.txt" 
  />
  <device-type
   name="E-Mail (Unlimited)" 
   driver="com.lawson.lsn.deliveryengine.drivers.EmailDeviceDriver" 
   formatter="com.lawson.lsn.rendering.HtmlFormatter" 
   protocol="smtp" host="lawson.com" 
   from="messaging@lawson.com" confirmation-mode="auto"
  />
  <device-type
   name="E-Mail (Plain Text)" 
   driver="com.lawson.lsn.deliveryengine.drivers.EmailDeviceDriver" 
   formatter="com.lawson.lsn.rendering.PlainTextFormatter" 
   protocol="smtp" 
   host="lawson.com" 
   from="messaging@lawson.com" confirmation-mode="auto"
   detail_level="high" 
  />
  <device-type
   name="E-Mail (Values Only)" 
   driver="com.lawson.lsn.deliveryengine.drivers.EmailDeviceDriver" 
   formatter="com.lawson.lsn.rendering.ValuesOnlyFormatter" 
   protocol="smtp" 
   host="lawson.com" 
   from="messaging@lawson.com" confirmation-mode="auto"
   detail_level="low" 
  />
<device-types>

General device type attributes and descriptions

This table describes the attributes included in the above sample XML file. All other parameters that are not addressed in this table are specific to the named device driver and formatter and communicate deployment-related settings.

Attribute Description
name This attribute uniquely identifies the device type. This attribute is required.
driver This required attribute names the device-driver implementation to be used to delivery content.

For more information about setting up standard driver types, see: Setting up email device drivers or Setting up file device drivers.

formatter This required attribute names the formatter implementation to be used to generate content.

For more information about setting up standard formatters, see Setting up standard formatters.

administrative This boolean attribute indicates whether the device type is administrative.

This attribute is optional.

confirmation-mode This attribute indicates whether to confirm the device automatically, rather than requiring each user to confirm the device manually.

This attribute is optional.

Note: If you decide to include this attribute, the value must be auto.