Class NodeMetadataSettingPolicy
- java.lang.Object
-
- org.opennms.netmgt.provision.BasePolicy<OnmsNode>
-
- org.opennms.netmgt.provision.persist.policies.NodeMetadataSettingPolicy
-
- All Implemented Interfaces:
NodePolicy
,OnmsPolicy
@Component @Scope("prototype") public class NodeMetadataSettingPolicy extends BasePolicy<OnmsNode> implements NodePolicy
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.BasePolicy
BasePolicy.Match
-
-
Field Summary
-
Fields inherited from interface org.opennms.netmgt.provision.NodePolicy
RUN_IN_TRANSACTION
-
-
Constructor Summary
Constructors Constructor Description NodeMetadataSettingPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OnmsNode
act(OnmsNode node, java.util.Map<java.lang.String,java.lang.Object> attributes)
actjava.lang.String
getForeignId()
java.lang.String
getForeignSource()
java.lang.String
getLabel()
java.lang.String
getLabelSource()
java.lang.String
getMetadataContext()
java.lang.String
getMetadataKey()
java.lang.String
getMetadataValue()
java.lang.String
getNetBiosDomain()
java.lang.String
getNetBiosName()
java.lang.String
getOperatingSystem()
java.lang.String
getSysContact()
java.lang.String
getSysDescription()
java.lang.String
getSysLocation()
java.lang.String
getSysName()
java.lang.String
getSysObjectId()
java.lang.String
getType()
void
setForeignId(java.lang.String foreignId)
void
setForeignSource(java.lang.String foreignSource)
void
setLabel(java.lang.String label)
void
setLabelSource(java.lang.String labelSource)
void
setMetadataContext(java.lang.String metadataContext)
void
setMetadataKey(java.lang.String metadataKey)
void
setMetadataValue(java.lang.String metadataValue)
void
setNetBiosDomain(java.lang.String netBiosDomain)
void
setNetBiosName(java.lang.String netBiosName)
void
setOperatingSystem(java.lang.String operatingSystem)
void
setSysContact(java.lang.String sysContact)
void
setSysDescription(java.lang.String sysDescription)
void
setSysLocation(java.lang.String sysLocation)
void
setSysName(java.lang.String sysName)
void
setSysObjectId(java.lang.String sysObjectId)
void
setType(java.lang.String type)
-
Methods inherited from class org.opennms.netmgt.provision.BasePolicy
apply, getCriteria, getCriteria, getMatch, getMatchBehavior, match, matches, putCriteria, setMatch, setMatchBehavior
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.NodePolicy
apply
-
-
-
-
Method Detail
-
act
public OnmsNode act(OnmsNode node, java.util.Map<java.lang.String,java.lang.Object> attributes)
Description copied from class:BasePolicy
act
- Specified by:
act
in classBasePolicy<OnmsNode>
- Parameters:
node
- a T object.attributes
- that can be set on script.- Returns:
- a T object.
-
setMetadataKey
public void setMetadataKey(java.lang.String metadataKey)
-
getMetadataKey
public java.lang.String getMetadataKey()
-
setMetadataValue
public void setMetadataValue(java.lang.String metadataValue)
-
getMetadataValue
public java.lang.String getMetadataValue()
-
setMetadataContext
public void setMetadataContext(java.lang.String metadataContext)
-
getMetadataContext
public java.lang.String getMetadataContext()
-
getType
public java.lang.String getType()
-
setType
public void setType(java.lang.String type)
-
getSysObjectId
public java.lang.String getSysObjectId()
-
setSysObjectId
public void setSysObjectId(java.lang.String sysObjectId)
-
getSysName
public java.lang.String getSysName()
-
setSysName
public void setSysName(java.lang.String sysName)
-
getSysDescription
public java.lang.String getSysDescription()
-
setSysDescription
public void setSysDescription(java.lang.String sysDescription)
-
getSysLocation
public java.lang.String getSysLocation()
-
setSysLocation
public void setSysLocation(java.lang.String sysLocation)
-
getSysContact
public java.lang.String getSysContact()
-
setSysContact
public void setSysContact(java.lang.String sysContact)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getLabelSource
public java.lang.String getLabelSource()
-
setLabelSource
public void setLabelSource(java.lang.String labelSource)
-
getNetBiosName
public java.lang.String getNetBiosName()
-
setNetBiosName
public void setNetBiosName(java.lang.String netBiosName)
-
getNetBiosDomain
public java.lang.String getNetBiosDomain()
-
setNetBiosDomain
public void setNetBiosDomain(java.lang.String netBiosDomain)
-
getOperatingSystem
public java.lang.String getOperatingSystem()
-
setOperatingSystem
public void setOperatingSystem(java.lang.String operatingSystem)
-
getForeignId
public java.lang.String getForeignId()
-
setForeignId
public void setForeignId(java.lang.String foreignId)
-
getForeignSource
public java.lang.String getForeignSource()
-
setForeignSource
public void setForeignSource(java.lang.String foreignSource)
-
-