org.opennms.netmgt.model
Class OnmsAssetRecord

java.lang.Object
  extended by org.opennms.netmgt.model.OnmsAssetRecord
All Implemented Interfaces:
Serializable

public class OnmsAssetRecord
extends Object
implements Serializable

Represents the asset information for a node.

Version:
$Id: $
Author:
ranger
See Also:
Serialized Form

Field Summary
static String AUTOENABLED
          Constant AUTOENABLED="A"
static String RSH_CONNECTION
          Constant RSH_CONNECTION="rsh"
static String SSH_CONNECTION
          Constant SSH_CONNECTION="ssh"
static String TELNET_CONNECTION
          Constant TELNET_CONNECTION="telnet"
 
Constructor Summary
OnmsAssetRecord()
          default constructor
 
Method Summary
 boolean equals(Object obj)
          
 String getAddress1()
          --# address1 : Address of geographical location of asset, line 1.
 String getAddress2()
          --# address2 : Address of geographical location of asset, line 2.
 String getAssetNumber()
          --# assetNumber : A business-specified asset number.
 String getAutoenable()
          getAutoenable
 String getBuilding()
          --# building : The building where this asset resides.
 String getCategory()
          --# category : A broad idea of what this asset does (examples are --# desktop, printer, server, infrastructure, etc.).
 String getCircuitId()
          --# circuitId : The electrical/network circuit this asset connects to.
 String getCity()
          --# city : The city where this asset resides.
 String getComment()
          getComment
 String getConnection()
          getConnection
 String getDateInstalled()
          --# dateInstalled : The date the asset was installed.
 String getDepartment()
          --# department : The department this asset belongs to.
 String getDescription()
          --# description : A free-form description.
 String getDisplayCategory()
          getDisplayCategory
 String getDivision()
          --# division : A broad geographical or organizational area.
 String getEnable()
          getEnable
 String getFloor()
          --# floor : The floor of the building where this asset resides.
 Integer getId()
          getId
 String getLastModifiedBy()
          --# userLastModified : The last user who modified this record.
 Date getLastModifiedDate()
          --# lastModifiedDate : The last time this record was modified.
 String getLease()
          --# lease : The lease number of this asset.
 String getLeaseExpires()
          --# leaseExpires : The date the lease expires for this asset.
 String getMaintContractExpiration()
          getMaintContractExpiration
 String getMaintContractNumber()
          --# maintContract : The maintenance contract number for this asset.
 String getManagedObjectInstance()
          getManagedObjectInstance
 String getManagedObjectType()
          getManagedObjectType
 String getManufacturer()
          --# manufacturer : Name of the manufacturer of this asset.
 String getModelNumber()
          --# modelNumber : The model number of this asset.
 OnmsNode getNode()
          The node this asset information belongs to.
 String getNotifyCategory()
          getNotifyCategory
 String getOperatingSystem()
          --# operatingSystem : The operating system, if any.
 String getPassword()
          getPassword
 String getPollerCategory()
          getPollerCategory
 String getPort()
          --# port : For servers, the port in the slot it is installed in.
 String getRack()
          --# rack : For servers, the rack it is installed in.
 String getRegion()
          --# region : A broad geographical or organizational area.
 String getRoom()
          --# room : The room where this asset resides.
 String getSerialNumber()
          --# serialNumber : The serial number of this asset.
 String getSlot()
          --# slot : For servers, the slot in the rack it is installed in.
 String getState()
          --# state : The state where this asset resides.
 String getSupportPhone()
          --# supportPhone : A support phone number for this asset.
 String getThresholdCategory()
          getThresholdCategory
 String getUsername()
          getUsername
 String getVendor()
          --# vendor : Vendor from whom this asset was purchased.
 String getVendorAssetNumber()
          getVendorAssetNumber
 String getVendorFax()
          --# vendorFax : A fax number for the vendor.
 String getVendorPhone()
          --# vendorPhone : A contact number for the vendor.
 String getZip()
          --# zip : The zip code where this asset resides.
 void mergeRecord(OnmsAssetRecord newRecord)
          Used to merge the contents of one asset record to another.
 void setAddress1(String address1)
          setAddress1
 void setAddress2(String address2)
          setAddress2
 void setAssetNumber(String assetnumber)
          setAssetNumber
 void setAutoenable(String autoenable)
          setAutoenable
 void setBuilding(String building)
          setBuilding
 void setCategory(String category)
          setCategory
 void setCircuitId(String circuitid)
          setCircuitId
 void setCity(String city)
          setCity
 void setComment(String comment)
          setComment
 void setConnection(String connection)
          setConnection
 void setDateInstalled(String dateinstalled)
          setDateInstalled
 void setDepartment(String department)
          setDepartment
 void setDescription(String description)
          setDescription
 void setDisplayCategory(String displaycategory)
          setDisplayCategory
 void setDivision(String division)
          setDivision
 void setEnable(String enable)
          setEnable
 void setFloor(String floor)
          setFloor
protected  void setId(Integer id)
          setId
 void setLastModifiedBy(String userlastmodified)
          setLastModifiedBy
 void setLastModifiedDate(Date lastmodifieddate)
          setLastModifiedDate
 void setLease(String lease)
          setLease
 void setLeaseExpires(String leaseexpires)
          setLeaseExpires
 void setMaintContractExpiration(String maintcontractexpires)
          setMaintContractExpiration
 void setMaintContractNumber(String maintcontract)
          setMaintContractNumber
 void setManagedObjectInstance(String moi)
          setManagedObjectInstance
 void setManagedObjectType(String mot)
          setManagedObjectType
 void setManufacturer(String manufacturer)
          setManufacturer
 void setModelNumber(String modelnumber)
          setModelNumber
 void setNode(OnmsNode node)
          Set the node associated with the asset record
 void setNotifyCategory(String notifycategory)
          setNotifyCategory
 void setOperatingSystem(String operatingsystem)
          setOperatingSystem
 void setPassword(String password)
          setPassword
 void setPollerCategory(String pollercategory)
          setPollerCategory
 void setPort(String port)
          setPort
 void setRack(String rack)
          setRack
 void setRegion(String region)
          setRegion
 void setRoom(String room)
          setRoom
 void setSerialNumber(String serialnumber)
          setSerialNumber
 void setSlot(String slot)
          setSlot
 void setState(String state)
          setState
 void setSupportPhone(String supportphone)
          setSupportPhone
 void setThresholdCategory(String thresholdcategory)
          setThresholdCategory
 void setUsername(String username)
          setUsername
 void setVendor(String vendor)
          setVendor
 void setVendorAssetNumber(String vendorassetnumber)
          setVendorAssetNumber
 void setVendorFax(String vendorfax)
          setVendorFax
 void setVendorPhone(String vendorphone)
          setVendorPhone
 void setZip(String zip)
          setZip
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTOENABLED

public static final String AUTOENABLED
Constant AUTOENABLED="A"

See Also:
Constant Field Values

SSH_CONNECTION

public static final String SSH_CONNECTION
Constant SSH_CONNECTION="ssh"

See Also:
Constant Field Values

TELNET_CONNECTION

public static final String TELNET_CONNECTION
Constant TELNET_CONNECTION="telnet"

See Also:
Constant Field Values

RSH_CONNECTION

public static final String RSH_CONNECTION
Constant RSH_CONNECTION="rsh"

See Also:
Constant Field Values
Constructor Detail

OnmsAssetRecord

public OnmsAssetRecord()
default constructor

Method Detail

getId

public Integer getId()

getId

Returns:
a Integer object.

setId

protected void setId(Integer id)

setId

Parameters:
id - a Integer object.

getNode

public OnmsNode getNode()
The node this asset information belongs to.

Returns:
a OnmsNode object.

setNode

public void setNode(OnmsNode node)
Set the node associated with the asset record

Parameters:
node - a OnmsNode object.

getCategory

public String getCategory()
--# category : A broad idea of what this asset does (examples are --# desktop, printer, server, infrastructure, etc.).

Returns:
a String object.

setCategory

public void setCategory(String category)

setCategory

Parameters:
category - a String object.

getManufacturer

public String getManufacturer()
--# manufacturer : Name of the manufacturer of this asset.

Returns:
a String object.

setManufacturer

public void setManufacturer(String manufacturer)

setManufacturer

Parameters:
manufacturer - a String object.

getVendor

public String getVendor()
--# vendor : Vendor from whom this asset was purchased.

Returns:
a String object.

setVendor

public void setVendor(String vendor)

setVendor

Parameters:
vendor - a String object.

getModelNumber

public String getModelNumber()
--# modelNumber : The model number of this asset.

Returns:
a String object.

setModelNumber

public void setModelNumber(String modelnumber)

setModelNumber

Parameters:
modelnumber - a String object.

getSerialNumber

public String getSerialNumber()
--# serialNumber : The serial number of this asset.

Returns:
a String object.

setSerialNumber

public void setSerialNumber(String serialnumber)

setSerialNumber

Parameters:
serialnumber - a String object.

getDescription

public String getDescription()
--# description : A free-form description.

Returns:
a String object.

setDescription

public void setDescription(String description)

setDescription

Parameters:
description - a String object.

getCircuitId

public String getCircuitId()
--# circuitId : The electrical/network circuit this asset connects to.

Returns:
a String object.

setCircuitId

public void setCircuitId(String circuitid)

setCircuitId

Parameters:
circuitid - a String object.

getAssetNumber

public String getAssetNumber()
--# assetNumber : A business-specified asset number.

Returns:
a String object.

setAssetNumber

public void setAssetNumber(String assetnumber)

setAssetNumber

Parameters:
assetnumber - a String object.

getOperatingSystem

public String getOperatingSystem()
--# operatingSystem : The operating system, if any.

Returns:
a String object.

setOperatingSystem

public void setOperatingSystem(String operatingsystem)

setOperatingSystem

Parameters:
operatingsystem - a String object.

getRack

public String getRack()
--# rack : For servers, the rack it is installed in.

Returns:
a String object.

setRack

public void setRack(String rack)

setRack

Parameters:
rack - a String object.

getSlot

public String getSlot()
--# slot : For servers, the slot in the rack it is installed in.

Returns:
a String object.

setSlot

public void setSlot(String slot)

setSlot

Parameters:
slot - a String object.

getPort

public String getPort()
--# port : For servers, the port in the slot it is installed in.

Returns:
a String object.

setPort

public void setPort(String port)

setPort

Parameters:
port - a String object.

getRegion

public String getRegion()
--# region : A broad geographical or organizational area.

Returns:
a String object.

setRegion

public void setRegion(String region)

setRegion

Parameters:
region - a String object.

getDivision

public String getDivision()
--# division : A broad geographical or organizational area.

Returns:
a String object.

setDivision

public void setDivision(String division)

setDivision

Parameters:
division - a String object.

getDepartment

public String getDepartment()
--# department : The department this asset belongs to.

Returns:
a String object.

setDepartment

public void setDepartment(String department)

setDepartment

Parameters:
department - a String object.

getAddress1

public String getAddress1()
--# address1 : Address of geographical location of asset, line 1.

Returns:
a String object.

setAddress1

public void setAddress1(String address1)

setAddress1

Parameters:
address1 - a String object.

getAddress2

public String getAddress2()
--# address2 : Address of geographical location of asset, line 2.

Returns:
a String object.

setAddress2

public void setAddress2(String address2)

setAddress2

Parameters:
address2 - a String object.

getCity

public String getCity()
--# city : The city where this asset resides.

Returns:
a String object.

setCity

public void setCity(String city)

setCity

Parameters:
city - a String object.

getState

public String getState()
--# state : The state where this asset resides.

Returns:
a String object.

setState

public void setState(String state)

setState

Parameters:
state - a String object.

getZip

public String getZip()
--# zip : The zip code where this asset resides.

Returns:
a String object.

setZip

public void setZip(String zip)

setZip

Parameters:
zip - a String object.

getBuilding

public String getBuilding()
--# building : The building where this asset resides.

Returns:
a String object.

setBuilding

public void setBuilding(String building)

setBuilding

Parameters:
building - a String object.

getFloor

public String getFloor()
--# floor : The floor of the building where this asset resides.

Returns:
a String object.

setFloor

public void setFloor(String floor)

setFloor

Parameters:
floor - a String object.

getRoom

public String getRoom()
--# room : The room where this asset resides.

Returns:
a String object.

setRoom

public void setRoom(String room)

setRoom

Parameters:
room - a String object.

getVendorPhone

public String getVendorPhone()
--# vendorPhone : A contact number for the vendor.

Returns:
a String object.

setVendorPhone

public void setVendorPhone(String vendorphone)

setVendorPhone

Parameters:
vendorphone - a String object.

getVendorFax

public String getVendorFax()
--# vendorFax : A fax number for the vendor.

Returns:
a String object.

setVendorFax

public void setVendorFax(String vendorfax)

setVendorFax

Parameters:
vendorfax - a String object.

getVendorAssetNumber

public String getVendorAssetNumber()

getVendorAssetNumber

Returns:
a String object.

setVendorAssetNumber

public void setVendorAssetNumber(String vendorassetnumber)

setVendorAssetNumber

Parameters:
vendorassetnumber - a String object.

getLastModifiedBy

public String getLastModifiedBy()
--# userLastModified : The last user who modified this record.

Returns:
a String object.

setLastModifiedBy

public void setLastModifiedBy(String userlastmodified)

setLastModifiedBy

Parameters:
userlastmodified - a String object.

getLastModifiedDate

public Date getLastModifiedDate()
--# lastModifiedDate : The last time this record was modified.

Returns:
a Date object.

setLastModifiedDate

public void setLastModifiedDate(Date lastmodifieddate)

setLastModifiedDate

Parameters:
lastmodifieddate - a Date object.

getDateInstalled

public String getDateInstalled()
--# dateInstalled : The date the asset was installed.

Returns:
a String object.

setDateInstalled

public void setDateInstalled(String dateinstalled)

setDateInstalled

Parameters:
dateinstalled - a String object.

getLease

public String getLease()
--# lease : The lease number of this asset.

Returns:
a String object.

setLease

public void setLease(String lease)

setLease

Parameters:
lease - a String object.

getLeaseExpires

public String getLeaseExpires()
--# leaseExpires : The date the lease expires for this asset.

Returns:
a String object.

setLeaseExpires

public void setLeaseExpires(String leaseexpires)

setLeaseExpires

Parameters:
leaseexpires - a String object.

getSupportPhone

public String getSupportPhone()
--# supportPhone : A support phone number for this asset.

Returns:
a String object.

setSupportPhone

public void setSupportPhone(String supportphone)

setSupportPhone

Parameters:
supportphone - a String object.

getMaintContractNumber

public String getMaintContractNumber()
--# maintContract : The maintenance contract number for this asset.

Returns:
a String object.

setMaintContractNumber

public void setMaintContractNumber(String maintcontract)

setMaintContractNumber

Parameters:
maintcontract - a String object.

getMaintContractExpiration

public String getMaintContractExpiration()

getMaintContractExpiration

Returns:
a String object.

setMaintContractExpiration

public void setMaintContractExpiration(String maintcontractexpires)

setMaintContractExpiration

Parameters:
maintcontractexpires - a String object.

getDisplayCategory

public String getDisplayCategory()

getDisplayCategory

Returns:
a String object.

setDisplayCategory

public void setDisplayCategory(String displaycategory)

setDisplayCategory

Parameters:
displaycategory - a String object.

getNotifyCategory

public String getNotifyCategory()

getNotifyCategory

Returns:
a String object.

setNotifyCategory

public void setNotifyCategory(String notifycategory)

setNotifyCategory

Parameters:
notifycategory - a String object.

getPollerCategory

public String getPollerCategory()

getPollerCategory

Returns:
a String object.

setPollerCategory

public void setPollerCategory(String pollercategory)

setPollerCategory

Parameters:
pollercategory - a String object.

getThresholdCategory

public String getThresholdCategory()

getThresholdCategory

Returns:
a String object.

setThresholdCategory

public void setThresholdCategory(String thresholdcategory)

setThresholdCategory

Parameters:
thresholdcategory - a String object.

getComment

public String getComment()

getComment

Returns:
a String object.

setComment

public void setComment(String comment)

setComment

Parameters:
comment - a String object.

getManagedObjectType

public String getManagedObjectType()

getManagedObjectType

Returns:
a String object.

setManagedObjectType

public void setManagedObjectType(String mot)

setManagedObjectType

Parameters:
mot - a String object.

getManagedObjectInstance

public String getManagedObjectInstance()

getManagedObjectInstance

Returns:
a String object.

setManagedObjectInstance

public void setManagedObjectInstance(String moi)

setManagedObjectInstance

Parameters:
moi - a String object.

getUsername

public String getUsername()

getUsername

Returns:
a String object.

setUsername

public void setUsername(String username)

setUsername

Parameters:
username - a String object.

getPassword

public String getPassword()

getPassword

Returns:
a String object.

setPassword

public void setPassword(String password)

setPassword

Parameters:
password - a String object.

getEnable

public String getEnable()

getEnable

Returns:
a String object.

setEnable

public void setEnable(String enable)

setEnable

Parameters:
enable - a String object.

getConnection

public String getConnection()

getConnection

Returns:
a String object.

setConnection

public void setConnection(String connection)

setConnection

Parameters:
connection - a String object.

getAutoenable

public String getAutoenable()

getAutoenable

Returns:
a String object.

setAutoenable

public void setAutoenable(String autoenable)

setAutoenable

Parameters:
autoenable - a String object.

toString

public String toString()

Overrides:
toString in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

mergeRecord

public void mergeRecord(OnmsAssetRecord newRecord)
Used to merge the contents of one asset record to another. If equals implementation returns false, the merge is aborted.

Parameters:
newRecord - a OnmsAssetRecord object.


Copyright © 2011. All Rights Reserved.