@Override protected Integer getId(final HwEntityAttributeType outage) { return outage.getId(); }
/** * Sets the type class. * * @param typeClass the type class */ public void setTypeClass(String typeClass) { m_attributeType.setAttributeClass(typeClass); }
/** * Initialize vendor attributes. */ private void initializeVendorAttributes() { m_vendorAttributes.clear(); for (HwEntityAttributeType type : m_hwEntityAttributeTypeDao.findAll()) { LOG.debug("Loading attribute type {}", type); m_vendorAttributes.put(type.getSnmpObjId(), type); } for (HwExtension ext : m_hwInventoryAdapterConfigDao.getConfiguration().getExtensions()) { for (MibObj obj : ext.getMibObjects()) { HwEntityAttributeType type = m_vendorAttributes.get(obj.getOid()); if (type == null) { type = new HwEntityAttributeType(obj.getOid().toString(), obj.getAlias(), obj.getType()); LOG.info("Creating attribute type {}", type); m_hwEntityAttributeTypeDao.save(type); m_vendorAttributes.put(type.getSnmpObjId(), type); } } } }
/** * Gets the type class. * * @return the type class */ @Transient @XmlAttribute(name="class") public String getTypeClass() { return m_attributeType.getAttributeClass(); }
@Override protected void generateId(final HwEntityAttributeType outage) { outage.setId(m_id.incrementAndGet()); }
/** * Sets the type name. * * @param typeName the type name */ public void setTypeName(String typeName) { m_attributeType.setName(typeName); }
/** * Sets the type OID. * * @param typeOid the type OID */ public void setTypeOid(String typeOid) { m_attributeType.setOid(typeOid); }
/** * Gets the type OID. * * @return the type OID */ @Transient @XmlAttribute(name="oid") public String getTypeOid() { return m_attributeType.getOid(); }
/** * Gets the attribute class. * * @param typeName the type name * @return the attribute class */ public String getAttributeClass(String typeName) { final OnmsHwEntityAttribute attr = getAttribute(typeName); return attr == null ? null : attr.getType().getAttributeClass(); }
@Override protected void generateId(final HwEntityAttributeType outage) { outage.setId(m_id.incrementAndGet()); }
/** * Gets the type name. * * @return the type name */ @Transient @XmlAttribute(name="name") public String getTypeName() { return m_attributeType.getName(); }
@Override protected Integer getId(final HwEntityAttributeType outage) { return outage.getId(); }
v = getValue(entry.getKey()); if (v != null && !v.toDisplayString().trim().isEmpty()) { String typeName = entry.getValue().getName(); if (replacementMap.containsKey(typeName)) { String property = replacementMap.get(typeName);