Adds a template definition to be used for device registration.
void SUPDeviceUser.addDeviceTemplate(templateName, templateDescription, PropertyItem VO propertyItems)
If successful, returns silently. If unsuccessful, returns SUPAdminException.
//Create template
List<PropertyItemVO> propertyItems = new ArrayList<PropertyItemVO>();
PropertyItemVO item = new PropertyItemVO();
item.setPropertyID(1);
item.setPropertyValue("smithj-dell");
propertyItems.add(item);
deviceUser.addDeviceTemplate("testTemplate2", "this is the test template", propertyItems);
When creating a registration template, you can define template settings by passing a list of PropertyItemVO objects. Each PropertyItemVO is identified by its property ID, which is a unique, predefined ID.
For example, ID 1 is the "server name" property of a message-based synchronization device. To view all predefined property IDs, use com.sybase.sup.admin.scc.client.SUPDeviceUser.getPropertyDefinitions() to view property metadata.