Class ScriptPolicy
- java.lang.Object
-
- org.opennms.netmgt.provision.BasePolicy<OnmsNode>
-
- org.opennms.netmgt.provision.persist.policies.ScriptPolicy
-
- All Implemented Interfaces:
NodePolicy
,OnmsPolicy
@Component @Scope("prototype") public class ScriptPolicy 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 ScriptPolicy()
ScriptPolicy(Path scriptPath)
-
Method Summary
-
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
-
-
-
-
Constructor Detail
-
ScriptPolicy
public ScriptPolicy()
-
ScriptPolicy
public ScriptPolicy(Path scriptPath)
-
-
Method Detail
-
act
public OnmsNode act(OnmsNode node, Map<String,Object> attributes)
act
- Specified by:
act
in classBasePolicy<OnmsNode>
- Parameters:
node
- a T object.attributes
- that can be set on script.- Returns:
- a T object.
-
getScript
public String getScript()
-
setScript
public void setScript(String script)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getSysObjectId
public String getSysObjectId()
-
setSysObjectId
public void setSysObjectId(String sysObjectId)
-
getSysName
public String getSysName()
-
setSysName
public void setSysName(String sysName)
-
getSysDescription
public String getSysDescription()
-
setSysDescription
public void setSysDescription(String sysDescription)
-
getSysLocation
public String getSysLocation()
-
setSysLocation
public void setSysLocation(String sysLocation)
-
getSysContact
public String getSysContact()
-
setSysContact
public void setSysContact(String sysContact)
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
getLabelSource
public String getLabelSource()
-
setLabelSource
public void setLabelSource(String labelSource)
-
getNetBiosName
public String getNetBiosName()
-
setNetBiosName
public void setNetBiosName(String netBiosName)
-
getNetBiosDomain
public String getNetBiosDomain()
-
setNetBiosDomain
public void setNetBiosDomain(String netBiosDomain)
-
getOperatingSystem
public String getOperatingSystem()
-
setOperatingSystem
public void setOperatingSystem(String operatingSystem)
-
getForeignId
public String getForeignId()
-
setForeignId
public void setForeignId(String foreignId)
-
getForeignSource
public String getForeignSource()
-
setForeignSource
public void setForeignSource(String foreignSource)
-
setNodeDao
public void setNodeDao(NodeDao nodeDao)
-
setSessionUtils
public void setSessionUtils(SessionUtils sessionUtils)
-
-