|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cisco.provisioning.cpe.extensions.services.DiscoveredDataHelper
public class DiscoveredDataHelper
Provides helper methods for manipulation of discovered data.
| Constructor Summary | |
|---|---|
DiscoveredDataHelper()
|
|
| Method Summary | |
|---|---|
static List<com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption> |
getAllDiscoveredValueAsDhcpOption(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
Returns the list of DHCP option instances that match the given discovered data by dictionary and name. |
static Map<DHCPDict,List<DHCPData>> |
getDiscoveredDataByDictionary(List<? extends DiscoveredData> discoveredDataList)
Convert a list of DHCP discovered data into a map of discovered data keyed by DHCP dictionary. |
static Map<String,Map<String,String>> |
getDiscoveredDataStringsByDictionary(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry,
DiscoveredDataType discoveredDataType,
List<? extends DiscoveredData> discoveredData,
boolean rawDataOnly)
Return a Map of DHCP discovered data name/values by dictionary for logging and tracing messages. |
static com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption |
getDiscoveredValueAsDhcpOption(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry,
DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
Returns the DHCP option class for the given discovered data by dictionary and name. |
static com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption |
getDiscoveredValueAsDhcpOption(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
Returns the DHCP option class for the given discovered data by dictionary and name. |
static com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption |
getDiscoveredValueAsDhcpOption(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name,
long enterpriseNumber)
Returns the DHCP option class for the given discovered data by dictionary name, and enterprise number. |
static Object |
getDiscoveredValueAsObject(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
Returns the object value for the given discovered data by dictionary and name. |
static Object |
getDiscoveredValueAsObject(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
String name)
Returns the object value for the given discovered data by name. |
static boolean |
hasDiscoveredData(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData)
Returns true if the specified discovered data type is available. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscoveredDataHelper()
| Method Detail |
|---|
public static boolean hasDiscoveredData(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData)
type - the type of discovered data that is requireddiscoveredData - the map of discovered data
public static Map<DHCPDict,List<DHCPData>> getDiscoveredDataByDictionary(List<? extends DiscoveredData> discoveredDataList)
discoveredDataList - the list of discovered DHCP data
public static Map<String,Map<String,String>> getDiscoveredDataStringsByDictionary(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry,
DiscoveredDataType discoveredDataType,
List<? extends DiscoveredData> discoveredData,
boolean rawDataOnly)
registry - the DHCP Option RegistrydiscoveredDataType - the type of discovered data that is requireddiscoveredData - the map of discovered datarawDataOnly - true if raw DHCP discovered data is desired
public static Object getDiscoveredValueAsObject(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
String name)
type - the type of discovered data that is requireddiscoveredData - the map of discovered dataname - the name of the discovered data item
public static Object getDiscoveredValueAsObject(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
type - the type of discovered data that is requireddiscoveredData - the map of discovered datadictionary - the dictionary containing the discovered dataname - the name of the discovered data attribute/option
public static com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption getDiscoveredValueAsDhcpOption(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
type - the type of discovered data that is requireddiscoveredData - the map of discovered datadictionary - the dictionary containing the discovered dataname - the name of the discovered data attribute/option
public static com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption getDiscoveredValueAsDhcpOption(com.cisco.provisioning.cpe.base.net.dhcp.DhcpOptionDefinitionRegistry registry,
DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
registry - the DHCP Option Registrytype - the type of discovered data that is requireddiscoveredData - the map of discovered datadictionary - the dictionary containing the discovered dataname - the name of the discovered data attribute/option
public static com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption getDiscoveredValueAsDhcpOption(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name,
long enterpriseNumber)
type - the type of discovered data that is requireddiscoveredData - the map of discovered datadictionary - the dictionary containing the discovered dataname - the name of the discovered data attribute/optionenterpriseNumber - the private enterprise number
public static List<com.cisco.provisioning.cpe.base.net.dhcp.DhcpOption> getAllDiscoveredValueAsDhcpOption(DiscoveredDataType type,
Map<DiscoveredDataType,List<? extends DiscoveredData>> discoveredData,
DHCPDict dictionary,
String name)
type - the type of discovered data that is requireddiscoveredData - the map of discovered datadictionary - the dictionary containing the discovered dataname - the name of the discovered data attribute/option
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||