Package org.opennms.netmgt.model
Class OnmsAssetRecord
- java.lang.Object
-
- org.opennms.netmgt.model.OnmsAssetRecord
-
- All Implemented Interfaces:
Serializable
@Entity public class OnmsAssetRecord extends Object implements Serializable
Represents the asset information for a node.- See Also:
- Serialized Form
- Hibernate class:
- table="assets"
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTOENABLEDConstantAUTOENABLED="A"static StringRSH_CONNECTIONConstantRSH_CONNECTION="rsh"static StringSSH_CONNECTIONConstantSSH_CONNECTION="ssh"static StringTELNET_CONNECTIONConstantTELNET_CONNECTION="telnet"
-
Constructor Summary
Constructors Constructor Description OnmsAssetRecord()default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAdditionalhardware()getAdditionalhardwareStringgetAddress1()Deprecated.StringgetAddress2()Deprecated.StringgetAdmin()getAdminStringgetAssetNumber()--# assetNumber : A business-specified asset number.StringgetAutoenable()getAutoenableStringgetBuilding()--# building : The building where this asset resides.StringgetCategory()--# category : A broad idea of what this asset does (examples are --# desktop, printer, server, infrastructure, etc.).StringgetCircuitId()--# circuitId : The electrical/network circuit this asset connects to.StringgetCity()Deprecated.StringgetComment()getCommentStringgetConnection()getConnectionStringgetCountry()Deprecated.StringgetCpu()getCpuStringgetDateInstalled()--# dateInstalled : The date the asset was installed.StringgetDepartment()--# department : The department this asset belongs to.StringgetDescription()--# description : A free-form description.StringgetDisplayCategory()getDisplayCategoryStringgetDivision()--# division : A broad geographical or organizational area.StringgetEnable()getEnableStringgetFloor()--# floor : The floor of the building where this asset resides.OnmsGeolocationgetGeolocation()StringgetHdd1()getHdd1StringgetHdd2()getHdd2StringgetHdd3()getHdd3StringgetHdd4()getHdd4StringgetHdd5()getHdd5StringgetHdd6()getHdd6IntegergetId()getIdStringgetInputpower()getInputpowerStringgetLastModifiedBy()--# userLastModified : The last user who modified this record.DategetLastModifiedDate()--# lastModifiedDate : The last time this record was modified.DoublegetLatitude()Deprecated.StringgetLease()--# lease : The lease number of this asset.StringgetLeaseExpires()--# leaseExpires : The date the lease expires for this asset.DoublegetLongitude()Deprecated.StringgetMaintcontract()--# maintcontract : The maintenance contract number for this asset.StringgetMaintContractExpiration()getMaintContractExpirationStringgetMaintContractNumber()Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10StringgetManagedObjectInstance()getManagedObjectInstanceStringgetManagedObjectType()getManagedObjectTypeStringgetManufacturer()--# manufacturer : Name of the manufacturer of this asset.StringgetModelNumber()--# modelNumber : The model number of this asset.OnmsNodegetNode()The node this asset information belongs to.StringgetNotifyCategory()getNotifyCategoryStringgetNumpowersupplies()getNumpowersuppliesStringgetOperatingSystem()--# operatingSystem : The operating system, if any.StringgetPassword()getPasswordStringgetPollerCategory()getPollerCategoryStringgetPort()--# port : For servers, the port in the slot it is installed in.StringgetRack()--# rack : For servers, the rack it is installed in.StringgetRackunitheight()getRackunitheightStringgetRam()getRamStringgetRegion()--# region : A broad geographical or organizational area.StringgetRoom()--# room : The room where this asset resides.StringgetSerialNumber()--# serialNumber : The serial number of this asset.StringgetSlot()--# slot : For servers, the slot in the rack it is installed in.StringgetSnmpcommunity()getSnmpcommunityStringgetState()Deprecated.StringgetStoragectrl()getStoragectrlStringgetSupportPhone()--# supportPhone : A support phone number for this asset.StringgetThresholdCategory()getThresholdCategoryStringgetUsername()getUsernameStringgetVendor()--# vendor : Vendor from whom this asset was purchased.StringgetVendorAssetNumber()getVendorAssetNumberStringgetVendorFax()--# vendorFax : A fax number for the vendor.StringgetVendorPhone()--# vendorPhone : A contact number for the vendor.StringgetZip()Deprecated.inthashCode()voidmergeRecord(OnmsAssetRecord newRecord)Used to merge the contents of one asset record to another.voidsetAdditionalhardware(String additionalhardware)setAdditionalhardwarevoidsetAddress1(String address1)Deprecated.voidsetAddress2(String address2)Deprecated.voidsetAdmin(String admin)setAdminvoidsetAssetNumber(String assetnumber)setAssetNumbervoidsetAutoenable(String autoenable)setAutoenablevoidsetBuilding(String building)setBuildingvoidsetCategory(String category)setCategoryvoidsetCircuitId(String circuitid)setCircuitIdvoidsetCity(String city)Deprecated.voidsetComment(String comment)setCommentvoidsetConnection(String connection)setConnectionvoidsetCountry(String country)Deprecated.voidsetCpu(String cpu)setCpuvoidsetDateInstalled(String dateinstalled)setDateInstalledvoidsetDepartment(String department)setDepartmentvoidsetDescription(String description)setDescriptionvoidsetDisplayCategory(String displaycategory)setDisplayCategoryvoidsetDivision(String division)setDivisionvoidsetEnable(String enable)setEnablevoidsetFloor(String floor)setFloorvoidsetGeolocation(OnmsGeolocation geolocation)voidsetHdd1(String hdd1)setHdd1voidsetHdd2(String hdd2)setHdd2voidsetHdd3(String hdd3)setHdd3voidsetHdd4(String hdd4)setHdd4voidsetHdd5(String hdd5)setHdd5voidsetHdd6(String hdd6)setHdd6voidsetId(Integer id)setIdvoidsetInputpower(String inputpower)setInputpowervoidsetLastModifiedBy(String userlastmodified)setLastModifiedByvoidsetLastModifiedDate(Date lastmodifieddate)setLastModifiedDatevoidsetLatitude(Double latitude)Deprecated.voidsetLease(String lease)setLeasevoidsetLeaseExpires(String leaseexpires)setLeaseExpiresvoidsetLongitude(Double longitude)Deprecated.voidsetMaintcontract(String maintcontract)setMaintContractvoidsetMaintContractExpiration(String maintcontractexpires)setMaintContractExpirationvoidsetMaintContractNumber(String maintcontract)Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10voidsetManagedObjectInstance(String moi)setManagedObjectInstancevoidsetManagedObjectType(String mot)setManagedObjectTypevoidsetManufacturer(String manufacturer)setManufacturervoidsetModelNumber(String modelnumber)setModelNumbervoidsetNode(OnmsNode node)Set the node associated with the asset recordvoidsetNotifyCategory(String notifycategory)setNotifyCategoryvoidsetNumpowersupplies(String numpowersupplies)setNumpowersuppliesvoidsetOperatingSystem(String operatingsystem)setOperatingSystemvoidsetPassword(String password)setPasswordvoidsetPollerCategory(String pollercategory)setPollerCategoryvoidsetPort(String port)setPortvoidsetRack(String rack)setRackvoidsetRackunitheight(String rackunitheight)voidsetRam(String ram)setRamvoidsetRegion(String region)setRegionvoidsetRoom(String room)setRoomvoidsetSerialNumber(String serialnumber)setSerialNumbervoidsetSlot(String slot)setSlotvoidsetSnmpcommunity(String snmpcommunity)setSnmpcommunityvoidsetState(String state)Deprecated.voidsetStoragectrl(String storagectrl)setStoragectrlvoidsetSupportPhone(String supportphone)setSupportPhonevoidsetThresholdCategory(String thresholdcategory)setThresholdCategoryvoidsetUsername(String username)setUsernamevoidsetVendor(String vendor)setVendorvoidsetVendorAssetNumber(String vendorassetnumber)setVendorAssetNumbervoidsetVendorFax(String vendorfax)setVendorFaxvoidsetVendorPhone(String vendorphone)setVendorPhonevoidsetZip(String zip)Deprecated.StringtoString()
-
-
-
Field Detail
-
AUTOENABLED
public static final String AUTOENABLED
ConstantAUTOENABLED="A"- See Also:
- Constant Field Values
-
SSH_CONNECTION
public static final String SSH_CONNECTION
ConstantSSH_CONNECTION="ssh"- See Also:
- Constant Field Values
-
TELNET_CONNECTION
public static final String TELNET_CONNECTION
ConstantTELNET_CONNECTION="telnet"- See Also:
- Constant Field Values
-
RSH_CONNECTION
public static final String RSH_CONNECTION
ConstantRSH_CONNECTION="rsh"- See Also:
- Constant Field Values
-
-
Method Detail
-
getNode
public OnmsNode getNode()
The node this asset information belongs to.- Returns:
- a
OnmsNodeobject.
-
setNode
public void setNode(OnmsNode node)
Set the node associated with the asset record- Parameters:
node- aOnmsNodeobject.
-
getCategory
public String getCategory()
--# category : A broad idea of what this asset does (examples are --# desktop, printer, server, infrastructure, etc.).- Returns:
- a
Stringobject.
-
setCategory
public void setCategory(String category)
setCategory
- Parameters:
category- aStringobject.
-
getManufacturer
public String getManufacturer()
--# manufacturer : Name of the manufacturer of this asset.- Returns:
- a
Stringobject.
-
setManufacturer
public void setManufacturer(String manufacturer)
setManufacturer
- Parameters:
manufacturer- aStringobject.
-
getVendor
public String getVendor()
--# vendor : Vendor from whom this asset was purchased.- Returns:
- a
Stringobject.
-
getModelNumber
public String getModelNumber()
--# modelNumber : The model number of this asset.- Returns:
- a
Stringobject.
-
setModelNumber
public void setModelNumber(String modelnumber)
setModelNumber
- Parameters:
modelnumber- aStringobject.
-
getSerialNumber
public String getSerialNumber()
--# serialNumber : The serial number of this asset.- Returns:
- a
Stringobject.
-
setSerialNumber
public void setSerialNumber(String serialnumber)
setSerialNumber
- Parameters:
serialnumber- aStringobject.
-
getDescription
public String getDescription()
--# description : A free-form description.- Returns:
- a
Stringobject.
-
setDescription
public void setDescription(String description)
setDescription
- Parameters:
description- aStringobject.
-
getCircuitId
public String getCircuitId()
--# circuitId : The electrical/network circuit this asset connects to.- Returns:
- a
Stringobject.
-
setCircuitId
public void setCircuitId(String circuitid)
setCircuitId
- Parameters:
circuitid- aStringobject.
-
getAssetNumber
public String getAssetNumber()
--# assetNumber : A business-specified asset number.- Returns:
- a
Stringobject.
-
setAssetNumber
public void setAssetNumber(String assetnumber)
setAssetNumber
- Parameters:
assetnumber- aStringobject.
-
getOperatingSystem
public String getOperatingSystem()
--# operatingSystem : The operating system, if any.- Returns:
- a
Stringobject.
-
setOperatingSystem
public void setOperatingSystem(String operatingsystem)
setOperatingSystem
- Parameters:
operatingsystem- aStringobject.
-
getRack
public String getRack()
--# rack : For servers, the rack it is installed in.- Returns:
- a
Stringobject.
-
getSlot
public String getSlot()
--# slot : For servers, the slot in the rack it is installed in.- Returns:
- a
Stringobject.
-
getPort
public String getPort()
--# port : For servers, the port in the slot it is installed in.- Returns:
- a
Stringobject.
-
getRegion
public String getRegion()
--# region : A broad geographical or organizational area.- Returns:
- a
Stringobject.
-
getDivision
public String getDivision()
--# division : A broad geographical or organizational area.- Returns:
- a
Stringobject.
-
setDivision
public void setDivision(String division)
setDivision
- Parameters:
division- aStringobject.
-
getDepartment
public String getDepartment()
--# department : The department this asset belongs to.- Returns:
- a
Stringobject.
-
setDepartment
public void setDepartment(String department)
setDepartment
- Parameters:
department- aStringobject.
-
getGeolocation
public OnmsGeolocation getGeolocation()
-
setGeolocation
public void setGeolocation(OnmsGeolocation geolocation)
-
getBuilding
public String getBuilding()
--# building : The building where this asset resides.- Returns:
- a
Stringobject.
-
setBuilding
public void setBuilding(String building)
setBuilding
- Parameters:
building- aStringobject.
-
getFloor
public String getFloor()
--# floor : The floor of the building where this asset resides.- Returns:
- a
Stringobject.
-
getRoom
public String getRoom()
--# room : The room where this asset resides.- Returns:
- a
Stringobject.
-
getVendorPhone
public String getVendorPhone()
--# vendorPhone : A contact number for the vendor.- Returns:
- a
Stringobject.
-
setVendorPhone
public void setVendorPhone(String vendorphone)
setVendorPhone
- Parameters:
vendorphone- aStringobject.
-
getVendorFax
public String getVendorFax()
--# vendorFax : A fax number for the vendor.- Returns:
- a
Stringobject.
-
setVendorFax
public void setVendorFax(String vendorfax)
setVendorFax
- Parameters:
vendorfax- aStringobject.
-
getVendorAssetNumber
public String getVendorAssetNumber()
getVendorAssetNumber
- Returns:
- a
Stringobject.
-
setVendorAssetNumber
public void setVendorAssetNumber(String vendorassetnumber)
setVendorAssetNumber
- Parameters:
vendorassetnumber- aStringobject.
-
getLastModifiedBy
public String getLastModifiedBy()
--# userLastModified : The last user who modified this record.- Returns:
- a
Stringobject.
-
setLastModifiedBy
public void setLastModifiedBy(String userlastmodified)
setLastModifiedBy
- Parameters:
userlastmodified- aStringobject.
-
getLastModifiedDate
public Date getLastModifiedDate()
--# lastModifiedDate : The last time this record was modified.- Returns:
- a
Dateobject.
-
setLastModifiedDate
public void setLastModifiedDate(Date lastmodifieddate)
setLastModifiedDate
- Parameters:
lastmodifieddate- aDateobject.
-
getDateInstalled
public String getDateInstalled()
--# dateInstalled : The date the asset was installed.- Returns:
- a
Stringobject.
-
setDateInstalled
public void setDateInstalled(String dateinstalled)
setDateInstalled
- Parameters:
dateinstalled- aStringobject.
-
getLease
public String getLease()
--# lease : The lease number of this asset.- Returns:
- a
Stringobject.
-
getLeaseExpires
public String getLeaseExpires()
--# leaseExpires : The date the lease expires for this asset.- Returns:
- a
Stringobject.
-
setLeaseExpires
public void setLeaseExpires(String leaseexpires)
setLeaseExpires
- Parameters:
leaseexpires- aStringobject.
-
getSupportPhone
public String getSupportPhone()
--# supportPhone : A support phone number for this asset.- Returns:
- a
Stringobject.
-
setSupportPhone
public void setSupportPhone(String supportphone)
setSupportPhone
- Parameters:
supportphone- aStringobject.
-
getMaintcontract
public String getMaintcontract()
--# maintcontract : The maintenance contract number for this asset.- Returns:
- a
Stringobject.
-
setMaintcontract
public void setMaintcontract(String maintcontract)
setMaintContract
- Parameters:
maintcontract- aStringobject.
-
getMaintContractNumber
public String getMaintContractNumber()
Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10--# maintContractNumber: The maintenance contract number for this asset.- Returns:
- a
Stringobject.
-
setMaintContractNumber
public void setMaintContractNumber(String maintcontract)
Deprecated.This field is provided for backwards compatibility with OpenNMS < 1.10setMaintContractNumber
- Parameters:
maintcontract- aStringobject.
-
getMaintContractExpiration
public String getMaintContractExpiration()
getMaintContractExpiration
- Returns:
- a
Stringobject.
-
setMaintContractExpiration
public void setMaintContractExpiration(String maintcontractexpires)
setMaintContractExpiration
- Parameters:
maintcontractexpires- aStringobject.
-
setDisplayCategory
public void setDisplayCategory(String displaycategory)
setDisplayCategory
- Parameters:
displaycategory- aStringobject.
-
setNotifyCategory
public void setNotifyCategory(String notifycategory)
setNotifyCategory
- Parameters:
notifycategory- aStringobject.
-
setPollerCategory
public void setPollerCategory(String pollercategory)
setPollerCategory
- Parameters:
pollercategory- aStringobject.
-
getThresholdCategory
public String getThresholdCategory()
getThresholdCategory
- Returns:
- a
Stringobject.
-
setThresholdCategory
public void setThresholdCategory(String thresholdcategory)
setThresholdCategory
- Parameters:
thresholdcategory- aStringobject.
-
setComment
public void setComment(String comment)
setComment
- Parameters:
comment- aStringobject.
-
getManagedObjectType
public String getManagedObjectType()
getManagedObjectType
- Returns:
- a
Stringobject.
-
setManagedObjectType
public void setManagedObjectType(String mot)
setManagedObjectType
- Parameters:
mot- aStringobject.
-
getManagedObjectInstance
public String getManagedObjectInstance()
getManagedObjectInstance
- Returns:
- a
Stringobject.
-
setManagedObjectInstance
public void setManagedObjectInstance(String moi)
setManagedObjectInstance
- Parameters:
moi- aStringobject.
-
setUsername
public void setUsername(String username)
setUsername
- Parameters:
username- aStringobject.
-
setPassword
public void setPassword(String password)
setPassword
- Parameters:
password- aStringobject.
-
setConnection
public void setConnection(String connection)
setConnection
- Parameters:
connection- aStringobject.
-
setAutoenable
public void setAutoenable(String autoenable)
setAutoenable
- Parameters:
autoenable- aStringobject.
-
setSnmpcommunity
public void setSnmpcommunity(String snmpcommunity)
setSnmpcommunity
- Parameters:
snmpcommunity- aStringobject.
-
setRackunitheight
public void setRackunitheight(String rackunitheight)
-
getAdditionalhardware
public String getAdditionalhardware()
getAdditionalhardware
- Returns:
- a
Stringobject.
-
setAdditionalhardware
public void setAdditionalhardware(String additionalhardware)
setAdditionalhardware
- Parameters:
additionalhardware- aStringobject.
-
setInputpower
public void setInputpower(String inputpower)
setInputpower
- Parameters:
inputpower- aStringobject.
-
getNumpowersupplies
public String getNumpowersupplies()
getNumpowersupplies
- Returns:
- a
Stringobject.
-
setNumpowersupplies
public void setNumpowersupplies(String numpowersupplies)
setNumpowersupplies
- Parameters:
numpowersupplies- aStringobject.
-
setStoragectrl
public void setStoragectrl(String storagectrl)
setStoragectrl
- Parameters:
storagectrl- aStringobject.
-
getAddress1
@Deprecated public String getAddress1()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setAddress1
@Deprecated public void setAddress1(String address1)
Deprecated.
-
getAddress2
@Deprecated public String getAddress2()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setAddress2
@Deprecated public void setAddress2(String address2)
Deprecated.
-
getCity
@Deprecated public String getCity()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setCity
@Deprecated public void setCity(String city)
Deprecated.
-
getState
@Deprecated public String getState()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setState
@Deprecated public void setState(String state)
Deprecated.
-
getZip
@Deprecated public String getZip()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setZip
@Deprecated public void setZip(String zip)
Deprecated.
-
getCountry
@Deprecated public String getCountry()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setCountry
@Deprecated public void setCountry(String country)
Deprecated.
-
getLongitude
@Deprecated public Double getLongitude()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setLongitude
@Deprecated public void setLongitude(Double longitude)
Deprecated.
-
getLatitude
@Deprecated public Double getLatitude()
Deprecated.PROXY METHOD: do not delete untilOnmsGeolocationis truly a separate table, or projection mapping will fail.
-
setLatitude
@Deprecated public void setLatitude(Double latitude)
Deprecated.
-
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- aOnmsAssetRecordobject.
-
-