|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cisco.provisioning.cpe.api.search.DeviceSearchType
public class DeviceSearchType
Defines search criteria for searching devices.
IPDevice.searchDevice(DeviceSearchType, SearchBookmark , int),
Serialized Form| Field Summary | |
|---|---|
static int |
BY_CLASS_OF_SERVICE
Specifies this is a search by class of service |
static int |
BY_DEVICE_TYPE
Specifies this is a search by DeviceType |
static int |
BY_DHCP_CRITERIA
Specifies this is a search by DHCP criteria |
static int |
BY_NODE
Specifies this is a search by node |
static int |
BY_PROV_GROUP
Specifies this is a search by provisioning group |
static int |
GET_DEVICES
Internal search engine will use this |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Determines if this DeviceSearchType object is equal to the specified object. |
AssociationType |
getAssociationType()
Return the AssociationType enum for this search type if the search type is DeviceSearchType.BY_DHCP_CRITERIA
DeviceSearchType.BY_CLASS_OF_SERVICE Otherwise, it will return null. |
static DeviceSearchType |
getByClassOfService(ClassOfServiceName cos,
AssociationType type,
ReturnParameters returnParameters)
Creates a DeviceSearchType which matches devices that are related to a class of service via a specified type of association |
static DeviceSearchType |
getByDeviceType(DeviceType deviceType,
ReturnParameters returnParameters)
Creates a DeviceSearchType which macthes devices with the specified deviceType. |
static DeviceSearchType |
getByDhcpCriteria(DhcpCriteriaName dhcpCriteria,
AssociationType type,
ReturnParameters returnParameters)
Creates a DeviceSearchType which matches devices that have the dhcp criteria name or a specific device type specified by the DhcpCriteriaName parameter. |
static DeviceSearchType |
getByNode(NodeName nodeID,
ReturnParameters returnParameters)
Create a DeviceSearchType which matches devices based on their association with the node specified by nodeID. |
static DeviceSearchType |
getByProvGroup(String provGroupName,
ReturnParameters returnParameters)
Creates a DeviceIDSearchType which matches devices based on their association with the Provisiong group specified by provGroupName parameter. |
ClassOfServiceName |
getClassOfService()
Returns the ClassOfServiceName object for this search type if the type is DeviceSearchType.BY_CLASS_OF_SERVICE Otherwise, it will return null. |
DeviceIDPattern |
getDeviceIDPattern()
Returns the DeviceIDPattern object for this search type if the type is DeviceSearchType.GET_DEVICES
Otherwise, it will return null. |
static DeviceSearchType |
getDevices(DeviceIDPattern deviceIDPattern,
ReturnParameters returnParameters)
Create a DeviceSearchType which searches devices with a Device ID pattern. |
DeviceType |
getDeviceType()
Returns a DeviceType that satisfy this search if the type is DeviceSearchType.BY_DEVICE_TYPE
Otherwise, it will return null. |
DhcpCriteriaName |
getDHCPCriteria()
Returns the DhcpCriteriaName object for this search type if the type is DeviceSearchType.BY_DHCP_CRITERIA Otherwise, it will return null. |
NodeName |
getNodeName()
Return the node name object. |
String |
getProvId()
Return the provisioning group name. |
ReturnParameters |
getReturnParameters()
Return the ReturnParameters object for this search type. |
int |
getType()
Returns the type constant that describes the type of this search |
int |
hashCode()
The hash code of this object. |
String |
toString()
Returns a String description of this search type |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int BY_DEVICE_TYPE
public static final int BY_CLASS_OF_SERVICE
public static final int BY_DHCP_CRITERIA
public static final int BY_NODE
public static final int BY_PROV_GROUP
public static final int GET_DEVICES
| Method Detail |
|---|
public int getType()
public NodeName getNodeName()
NodeNamepublic String getProvId()
public DeviceType getDeviceType()
DeviceSearchType.BY_DEVICE_TYPE
Otherwise, it will return null.
DeviceSearchType.BY_DEVICE_TYPE. Otherwise, null is returned.public DeviceIDPattern getDeviceIDPattern()
DeviceSearchType.GET_DEVICES
Otherwise, it will return null.
DeviceSearchType.GET_DEVICES. Otherwise, null is returned.public ClassOfServiceName getClassOfService()
DeviceSearchType.BY_CLASS_OF_SERVICE Otherwise, it will return null.
DeviceSearchType.BY_CLASS_OF_SERVICE. Otherwise, null is
returned.public DhcpCriteriaName getDHCPCriteria()
DeviceSearchType.BY_DHCP_CRITERIA Otherwise, it will return null.
DeviceSearchType.BY_DHCP_CRITERIA. Otherwise, null is returned.public AssociationType getAssociationType()
DeviceSearchType.BY_DHCP_CRITERIA
DeviceSearchType.BY_CLASS_OF_SERVICE Otherwise, it will return null.
public ReturnParameters getReturnParameters()
public static DeviceSearchType getByDeviceType(DeviceType deviceType,
ReturnParameters returnParameters)
deviceType - The specific DeviceType to qualify the search on. This value
is required and and cannot be set to null. If it is specified
as null the runtime exception
APIArgumentException will be
thrown.returnParameters - Specifies the returnParameters to customize the result set
coming back from this query
ReturnParameters This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.
public static DeviceSearchType getDevices(DeviceIDPattern deviceIDPattern,
ReturnParameters returnParameters)
deviceIDPattern - the pattern against which DeviceIDs are matched. This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.returnParameters - Specifies the returnParameters to customize the result set
coming back from this query
ReturnParameters This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.
public static DeviceSearchType getByNode(NodeName nodeID,
ReturnParameters returnParameters)
nodeID - The NodeNameobject representing the node
being queried. This value is required and can not set to null.
If it is specified as null the runtime exception
APIArgumentException will be
thrown.returnParameters - Specifies the returnParameters to customize the result set
coming back from this query
ReturnParameters This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.
public static DeviceSearchType getByProvGroup(String provGroupName,
ReturnParameters returnParameters)
provGroupName - The name of the Provisioning Group over which the search will
be performed. This value is rrequired and cannot set to null.
If it is specified as null the runtime exception
APIArgumentException will be
thrown.returnParameters - Specifies the returnParameters to customize the result set
coming back from this query
ReturnParameters This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.public String toString()
toString in class Objectpublic int hashCode()
Object.hashCode
for more information
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
public static DeviceSearchType getByClassOfService(ClassOfServiceName cos,
AssociationType type,
ReturnParameters returnParameters)
cos - Specifies the class of service name or a specific device type
which the search will be performed. This value is required and
cannot be set to null. If it is specified as null the runtime
exception APIArgumentException
will be thrown.type - Specifies the type of association of device to class of
service for which the search will be performed. This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.returnParameters - Specifies the returnParameters to customize the result set
coming back from this query
ReturnParameters This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.
public static DeviceSearchType getByDhcpCriteria(DhcpCriteriaName dhcpCriteria,
AssociationType type,
ReturnParameters returnParameters)
DhcpCriteriaName parameter.
dhcpCriteria - Specifies the dhcp criteria name or a specific device type
which the search will be performed. This value is required and
cannot be set to null. If it is specified as null the runtime
exception APIArgumentException
will be thrown.type - Specifies the type of dhcp criteria associated with the device
over which the search will be performed. This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.returnParameters - Specifies the returnParameters to customize the result set
coming back from this query
ReturnParameters This value is
required and cannot be set to null. If it is specified as null
the runtime exception
APIArgumentException will be
thrown.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||