com.cisco.provisioning.cpe.extensions.services
Class ObjectLookupHelper

java.lang.Object
  extended by com.cisco.provisioning.cpe.extensions.services.ObjectLookupHelper

public class ObjectLookupHelper
extends Object

Utility class for performing object lookup.


Constructor Summary
ObjectLookupHelper()
           
 
Method Summary
static ClassOfService getClassOfServiceByName(String name)
          Retrieves ClassOfService object from the database by name.
static DeviceType getDeviceTypeByName(String name)
          Retrieves DeviceType object from the database by name.
static DHCPCriteria getDHCPCriteriaByName(String name)
          Retrieves DHCPCriteria object from the database by name.
static File getFileByName(String name)
          Retrieves File object from the database by name.
static GlobalProperties getGlobalProperties()
          Returns GlobalProperties object or null if it does not exist.
static Node getNode(String name)
          Retrieves Node object from the database by name.
static NodeType getNodeTypeByName(String name)
          Retrieves NodeType object from the database by name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectLookupHelper

public ObjectLookupHelper()
Method Detail

getClassOfServiceByName

public static ClassOfService getClassOfServiceByName(String name)
Retrieves ClassOfService object from the database by name.

Parameters:
name - the name of the ClassOfService
Returns:
ClassOfService object or null if not found in database

getDeviceTypeByName

public static DeviceType getDeviceTypeByName(String name)
Retrieves DeviceType object from the database by name.

Parameters:
name - the name of the DeviceType
Returns:
DeviceType object or null if not found in database

getDHCPCriteriaByName

public static DHCPCriteria getDHCPCriteriaByName(String name)
Retrieves DHCPCriteria object from the database by name.

Parameters:
name - the name of the DHCPCriteria
Returns:
DHCPCriteria object or null if not found in database

getFileByName

public static File getFileByName(String name)
Retrieves File object from the database by name.

Parameters:
name - the name of the File
Returns:
File object or null if not found in database

getGlobalProperties

public static GlobalProperties getGlobalProperties()
Returns GlobalProperties object or null if it does not exist.

Returns:
GlobalProperties object.

getNode

public static Node getNode(String name)
Retrieves Node object from the database by name.

Parameters:
name - the name of the Node
Returns:
Node object or null if not found in database

getNodeTypeByName

public static NodeType getNodeTypeByName(String name)
Retrieves NodeType object from the database by name.

Parameters:
name - the name of the NodeType
Returns:
NodeType object or null if not found in database