Interface MAPCreateDeviceModel
-
- All Superinterfaces:
MAPModel
- All Known Implementing Classes:
MAPCreateDeviceModelImpl
public interface MAPCreateDeviceModel extends MAPModel
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.console.service.model.MAPModel
ADDITIONAL_PROPERTIES_CLASSIFICAIION, ATTRIBUTE_NAME_CLIENT_TYPE, ATTRIBUTE_NAME_PARENT_TYPE, ATTRIBUTE_NAME_USER_AGENT, DEFAULT_PROFILE_NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcloneDevice(String origClientType, String clientType, String deviceName)Clones a device.voidcreateDevice(Map values)Create new device.SetgetCreateDeviceAttributeNames()Returns a set of attriute names for device creation.MapgetCreateDeviceDefaultValues()Returns a map of attribute name to its default values.StringgetCreateDevicePropertyXML(String profileName, String style)Returns the XML for create device property sheet.-
Methods inherited from interface com.sun.identity.console.service.model.MAPModel
canBeDeleted, getClientTypePrefix, getDeviceNamePrefix, getDeviceUserAgent, getStyleNames, hasDefaultSetting, isCustomizable
-
-
-
-
Method Detail
-
getCreateDevicePropertyXML
String getCreateDevicePropertyXML(String profileName, String style) throws AMConsoleException
Returns the XML for create device property sheet.- Parameters:
profileName- Name of Profile.style- Name of Style.- Returns:
- XML for create device property sheet.
- Throws:
AMConsoleException- if there are no attributes to display.
-
getCreateDeviceDefaultValues
Map getCreateDeviceDefaultValues()
Returns a map of attribute name to its default values.- Returns:
- a map of attribute name to its default values.
-
getCreateDeviceAttributeNames
Set getCreateDeviceAttributeNames()
Returns a set of attriute names for device creation.- Returns:
- a set of attriute names for device creation.
-
createDevice
void createDevice(Map values) throws AMConsoleException
Create new device.- Parameters:
values- Attribute Values for the new device.- Throws:
AMConsoleException- if device cannot be created.
-
cloneDevice
void cloneDevice(String origClientType, String clientType, String deviceName) throws AMConsoleException
Clones a device.- Parameters:
origClientType- Original Client Type.clientType- New Client Type.deviceName- Device Name.- Throws:
AMConsoleException- if device cannot be clone
-
-