Class NXCObjectCreationData

java.lang.Object
org.netxms.client.NXCObjectCreationData

public class NXCObjectCreationData extends Object
NetXMS object creation data
  • Field Details

    • CF_DISABLE_ICMP

      public static int CF_DISABLE_ICMP
    • CF_DISABLE_NXCP

      public static int CF_DISABLE_NXCP
    • CF_DISABLE_SNMP

      public static int CF_DISABLE_SNMP
    • CF_CREATE_UNMANAGED

      public static int CF_CREATE_UNMANAGED
    • CF_ENTER_MAINTENANCE

      public static int CF_ENTER_MAINTENANCE
    • CF_AS_ZONE_PROXY

      public static int CF_AS_ZONE_PROXY
    • CF_DISABLE_ETHERNET_IP

      public static int CF_DISABLE_ETHERNET_IP
    • CF_SNMP_SETTINGS_LOCKED

      public static int CF_SNMP_SETTINGS_LOCKED
    • CF_EXTERNAL_GATEWAY

      public static int CF_EXTERNAL_GATEWAY
    • CF_DISABLE_SSH

      public static int CF_DISABLE_SSH
    • CF_DISABLE_MODBUS_TCP

      public static int CF_DISABLE_MODBUS_TCP
    • CF_DISABLE_VNC

      public static int CF_DISABLE_VNC
  • Constructor Details

    • NXCObjectCreationData

      public NXCObjectCreationData(int objectClass, String name, long parentId)
      Constructor.
      Parameters:
      objectClass - Class of new object (one of NXCObject.OBJECT_xxx constants)
      name - Name of new object
      parentId - Parent object ID
      See Also:
  • Method Details

    • updateFromModificationData

      public void updateFromModificationData(NXCObjectModificationData data)
      Update creation data from modify object
      Parameters:
      data - modifyt data
    • getObjectClass

      public int getObjectClass()
      Returns:
      the objectClass
    • setObjectClass

      public void setObjectClass(int objectClass)
      Parameters:
      objectClass - the objectClass to set
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getParentId

      public long getParentId()
      Returns:
      the parentId
    • setParentId

      public void setParentId(long parentId)
      Parameters:
      parentId - the parentId to set
    • getComments

      public String getComments()
      Returns:
      the comments
    • setComments

      public void setComments(String comments)
      Parameters:
      comments - the comments to set
    • getCreationFlags

      public int getCreationFlags()
      Returns:
      the creationFlags
    • setCreationFlags

      public void setCreationFlags(int creationFlags)
      Parameters:
      creationFlags - Node creation flags (combination of NXCObjectCreationData.CF_xxx constants)
    • getIpAddress

      public InetAddressEx getIpAddress()
      Returns:
      the ipAddress
    • setIpAddress

      public void setIpAddress(InetAddressEx ipAddress)
      Parameters:
      ipAddress - the ipAddress to set
    • getAgentProxyId

      public long getAgentProxyId()
      Returns:
      the agentProxyId
    • setAgentProxyId

      public void setAgentProxyId(long agentProxyId)
      Parameters:
      agentProxyId - the agentProxyId to set
    • getSnmpProxyId

      public long getSnmpProxyId()
      Returns:
      the snmpProxyId
    • setSnmpProxyId

      public void setSnmpProxyId(long snmpProxyId)
      Parameters:
      snmpProxyId - the snmpProxyId to set
    • getMqttProxyId

      public long getMqttProxyId()
      Returns:
      the mqttProxyId
    • setMqttProxyId

      public void setMqttProxyId(long mqttProxyId)
      Parameters:
      mqttProxyId - the mqttProxyId to set
    • getIcmpProxyId

      public long getIcmpProxyId()
      Returns:
      the icmpProxyId
    • setIcmpProxyId

      public void setIcmpProxyId(long icmpProxyId)
      Parameters:
      icmpProxyId - the icmpProxyId to set
    • getSshProxyId

      public long getSshProxyId()
      Returns:
      the sshProxyId
    • setSshProxyId

      public void setSshProxyId(long sshProxyId)
      Parameters:
      sshProxyId - the sshProxyId to set
    • getVncProxyId

      public long getVncProxyId()
      Returns:
      the vncProxyId
    • setVncProxyId

      public void setVncProxyId(long vncProxyId)
      Parameters:
      vncProxyId - the vncProxyId to set
    • getWebServiceProxyId

      public long getWebServiceProxyId()
      Returns:
      the webServiceProxyId
    • setWebServiceProxyId

      public void setWebServiceProxyId(long webServiceProxyId)
      Parameters:
      webServiceProxyId - the webServiceProxyId to set
    • getMapType

      public MapType getMapType()
      Returns:
      the mapType
    • setMapType

      public void setMapType(MapType mapType)
      Parameters:
      mapType - the mapType to set
    • getMapCanvasType

      public MapCanvasType getMapCanvasType()
      Returns:
      the canvas type for new network map objects
    • setMapCanvasType

      public void setMapCanvasType(MapCanvasType mapCanvasType)
      Parameters:
      mapCanvasType - the canvas type for new network map objects
    • getSeedObjectIds

      public Long[] getSeedObjectIds()
      Returns:
      the seedObjectIds
    • setSeedObjectId

      public void setSeedObjectId(long seedObjectId)
      Parameters:
      seedObjectId - the seedObjectId to set
    • setSeedObjectIds

      public void setSeedObjectIds(Collection<Long> seedObjectIds)
      Parameters:
      seedObjectIds - the seed node object Ids to set
    • getZoneUIN

      public int getZoneUIN()
      Returns:
      the zoneId
    • setZoneUIN

      public void setZoneUIN(int zoneUIN)
      Parameters:
      zoneUIN - the zoneId to set
    • getServiceType

      public int getServiceType()
      Returns:
      the serviceType
    • setServiceType

      public void setServiceType(int serviceType)
      Parameters:
      serviceType - the serviceType to set
    • getIpProtocol

      public int getIpProtocol()
      Returns:
      the ipProtocol
    • setIpProtocol

      public void setIpProtocol(int ipProtocol)
      Parameters:
      ipProtocol - the ipProtocol to set
    • getIpPort

      public int getIpPort()
      Returns:
      the ipPort
    • setIpPort

      public void setIpPort(int ipPort)
      Parameters:
      ipPort - the ipPort to set
    • getRequest

      public String getRequest()
      Returns:
      the request
    • setRequest

      public void setRequest(String request)
      Parameters:
      request - the request to set
    • getResponse

      public String getResponse()
      Returns:
      the response
    • setResponse

      public void setResponse(String response)
      Parameters:
      response - the response to set
    • getLinkedNodeId

      public long getLinkedNodeId()
      Returns:
      the linkedNodeId
    • setLinkedNodeId

      public void setLinkedNodeId(long linkedNodeId)
      Parameters:
      linkedNodeId - the linkedNodeId to set
    • getPrimaryName

      public String getPrimaryName()
      Returns:
      the primaryName
    • setPrimaryName

      public void setPrimaryName(String primaryName)
      Parameters:
      primaryName - the primaryName to set
    • setObjectAlias

      public void setObjectAlias(String alias)
      Parameters:
      alias - the alias to set
    • getObjectAlias

      public String getObjectAlias()
      Returns:
      the alias
    • isTemplate

      public boolean isTemplate()
      Returns:
      the template
    • setTemplate

      public void setTemplate(boolean template)
      Parameters:
      template - the template to set
    • getMacAddress

      public MacAddress getMacAddress()
      Returns:
      the macAddress
    • setMacAddress

      public void setMacAddress(MacAddress macAddress)
      Parameters:
      macAddress - the macAddress to set
    • getIfIndex

      public int getIfIndex()
      Returns:
      the ifIndex
    • setIfIndex

      public void setIfIndex(int ifIndex)
      Parameters:
      ifIndex - the ifIndex to set
    • getIfType

      public int getIfType()
      Returns:
      the ifType
    • setIfType

      public void setIfType(int ifType)
      Parameters:
      ifType - the ifType to set
    • getModule

      public int getModule()
      Returns:
      interface module number
    • setModule

      public void setModule(int module)
      Parameters:
      module - interface module number
    • getChassis

      public int getChassis()
      Returns:
      the chassis
    • setChassis

      public void setChassis(int chassis)
      Parameters:
      chassis - the chassis to set
    • getPIC

      public int getPIC()
      Returns:
      the pic
    • setPIC

      public void setPIC(int pic)
      Parameters:
      pic - the pic to set
    • getPort

      public int getPort()
      Returns:
      the port
    • setPort

      public void setPort(int port)
      Parameters:
      port - the port to set
    • isPhysicalPort

      public boolean isPhysicalPort()
      Returns:
      the physicalPort
    • setPhysicalPort

      public void setPhysicalPort(boolean physicalPort)
      Parameters:
      physicalPort - the physicalPort to set
    • isCreateStatusDci

      public boolean isCreateStatusDci()
      Returns:
      the createStatusDci
    • setCreateStatusDci

      public void setCreateStatusDci(boolean createStatusDci)
      Parameters:
      createStatusDci - the createStatusDci to set
    • getAgentPort

      public int getAgentPort()
      Returns:
      the agentPort
    • setAgentPort

      public void setAgentPort(int agentPort)
      Parameters:
      agentPort - the agentPort to set
    • getSnmpPort

      public int getSnmpPort()
      Returns:
      the snmpPort
    • setSnmpPort

      public void setSnmpPort(int snmpPort)
      Parameters:
      snmpPort - the snmpPort to set
    • getDeviceId

      public final String getDeviceId()
      Returns:
      the deviceId
    • setDeviceId

      public final void setDeviceId(String deviceId)
      Parameters:
      deviceId - the deviceId to set
    • getHeight

      public int getHeight()
      Returns:
      the height
    • setHeight

      public void setHeight(int height)
      Parameters:
      height - the height to set
    • getFlags

      public int getFlags()
      Returns:
      the flags
    • setFlags

      public void setFlags(int flags)
      Parameters:
      flags - the flags to set
    • getControllerId

      public long getControllerId()
      Returns:
      the controllerId
    • setControllerId

      public void setControllerId(long controllerId)
      Parameters:
      controllerId - the controllerId to set
    • getChassisId

      public long getChassisId()
      Returns:
      the chassisId
    • setChassisId

      public void setChassisId(long chassisId)
      Parameters:
      chassisId - the chassisId to set
    • getSshLogin

      public String getSshLogin()
      Returns:
      the sshLogin
    • setSshLogin

      public void setSshLogin(String sshLogin)
      Parameters:
      sshLogin - the sshLogin to set
    • getSshPassword

      public String getSshPassword()
      Returns:
      the sshPassword
    • setSshPassword

      public void setSshPassword(String sshPassword)
      Parameters:
      sshPassword - the sshPassword to set
    • getVncPassword

      public String getVncPassword()
      Returns:
      the vncPassword
    • setVncPassword

      public void setVncPassword(String vncPassword)
      Parameters:
      vncPassword - the vncPassword to set
    • getDeviceClass

      public SensorDeviceClass getDeviceClass()
      Returns:
      the deviceClass
    • setDeviceClass

      public void setDeviceClass(SensorDeviceClass deviceClass)
      Parameters:
      deviceClass - the deviceClass to set
    • getDeviceAddress

      public String getDeviceAddress()
      Returns:
      the deviceAddress
    • setDeviceAddress

      public void setDeviceAddress(String deviceAddress)
      Parameters:
      deviceAddress - the deviceAddress to set
    • setVendor

      public void setVendor(String vendor)
      Parameters:
      vendor - the vendor to set
    • getModel

      public String getModel()
      Returns:
      the model
    • setModel

      public void setModel(String model)
      Parameters:
      model - the model to set
    • setSerialNumber

      public void setSerialNumber(String serialNumber)
      Parameters:
      serialNumber - the serialNumber to set
    • getVendor

      public final String getVendor()
      Returns:
      the vendor
    • getSerialNumber

      public final String getSerialNumber()
      Returns:
      the serialNumber
    • getGatewayNodeId

      public long getGatewayNodeId()
      Returns:
      the sensorProxy
    • setGatewayNodeId

      public void setGatewayNodeId(long gatewayNodeId)
      Parameters:
      gatewayNodeId - the sensorProxy to set
    • getEtherNetIpPort

      public int getEtherNetIpPort()
      Returns:
      the etherNetIpPort
    • setEtherNetIpPort

      public void setEtherNetIpPort(int etherNetIpPort)
      Parameters:
      etherNetIpPort - the etherNetIpPort to set
    • getEtherNetIpAddress

      public InetAddress getEtherNetIpAddress()
      Returns:
      the etherNetIpAddress (can be null if not set)
    • setEtherNetIpAddress

      public void setEtherNetIpAddress(InetAddress etherNetIpAddress)
      Parameters:
      etherNetIpAddress - the etherNetIpAddress to set (null to clear)
    • getEtherNetIpProxyId

      public long getEtherNetIpProxyId()
      Returns:
      the etherNetIpProxyId
    • setEtherNetIpProxyId

      public void setEtherNetIpProxyId(long etherNetIpProxyId)
      Parameters:
      etherNetIpProxyId - the etherNetIpProxyId to set
    • getModbusTcpPort

      public int getModbusTcpPort()
      Returns:
      the modbusTcpPort
    • setModbusTcpPort

      public void setModbusTcpPort(int modbusTcpPort)
      Parameters:
      modbusTcpPort - the modbusTcpPort to set
    • getModbusUnitId

      public short getModbusUnitId()
      Returns:
      the modbusUnitId
    • setModbusUnitId

      public void setModbusUnitId(short modbusUnitId)
      Parameters:
      modbusUnitId - the modbusUnitId to set
    • getModbusProxyId

      public long getModbusProxyId()
      Returns:
      the modbusProxyId
    • setModbusProxyId

      public void setModbusProxyId(long modbusProxyId)
      Parameters:
      modbusProxyId - the modbusProxyId to set
    • getSshPort

      public int getSshPort()
      Returns:
      the sshPort
    • setSshPort

      public void setSshPort(int sshPort)
      Parameters:
      sshPort - the sshPort to set
    • getVncPort

      public int getVncPort()
      Returns:
      the vncPort
    • setVncPort

      public void setVncPort(int vncPort)
      Parameters:
      vncPort - the vncPort to set
    • getInstanceDiscoveryMethod

      public int getInstanceDiscoveryMethod()
      Returns:
      the instanceDiscoveryMethod
    • setInstanceDiscoveryMethod

      public void setInstanceDiscoveryMethod(int instanceDiscoveryMethod)
      Parameters:
      instanceDiscoveryMethod - the instanceDiscoveryMethod to set
    • getAssetId

      public long getAssetId()
      Returns:
      the assetId
    • setAssetId

      public void setAssetId(long assetId)
      Parameters:
      assetId - the assetId to set
    • getAssetProperties

      public Map<String,String> getAssetProperties()
      Returns:
      the assetProperties
    • setAssetProperties

      public void setAssetProperties(Map<String,String> assetProperties)
      Parameters:
      assetProperties - the assetProperties to set
    • getLinkedObjectId

      public long getLinkedObjectId()
      Get ID of object that will be linked to newly created asset (only for asset creation).
      Returns:
      ID of object that will be linked to newly created asset
    • setLinkedObjectId

      public void setLinkedObjectId(long linkedObjectId)
      Set ID of object that will be linked to newly created asset (only for asset creation). Server will update asset identification (serial number or MAC address) from that object and run auto fill scripts after linking.
      Parameters:
      linkedObjectId - ID of object that will be linked to newly created asset
    • getConnectorName

      public String getConnectorName()
      Returns:
      the connectorName
    • setConnectorName

      public void setConnectorName(String connectorName)
      Parameters:
      connectorName - the connectorName to set
    • getCredentials

      public String getCredentials()
      Returns:
      the credentials
    • setCredentials

      public void setCredentials(String credentials)
      Parameters:
      credentials - the credentials to set
    • getDiscoveryFilter

      public String getDiscoveryFilter()
      Returns:
      the discoveryFilter
    • setDiscoveryFilter

      public void setDiscoveryFilter(String discoveryFilter)
      Parameters:
      discoveryFilter - the discoveryFilter to set
    • getRemovalPolicy

      public int getRemovalPolicy()
      Returns:
      the removalPolicy
    • setRemovalPolicy

      public void setRemovalPolicy(int removalPolicy)
      Parameters:
      removalPolicy - the removalPolicy to set
    • getGracePeriod

      public int getGracePeriod()
      Returns:
      the gracePeriod
    • setGracePeriod

      public void setGracePeriod(int gracePeriod)
      Parameters:
      gracePeriod - the gracePeriod to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: