Class AbstractMailAgent<T extends AbstractMailAgent<T,U,V>,U extends AbstractMailProtocol<T,U,V>,V extends org.openremote.model.asset.agent.AgentLink<V>>

java.lang.Object
org.openremote.model.asset.Asset<T>
org.openremote.model.asset.agent.Agent<T,U,V>
org.openremote.agent.protocol.mail.AbstractMailAgent<T,U,V>
All Implemented Interfaces:
org.openremote.model.asset.AssetInfo, org.openremote.model.IdentifiableEntity<T>
Direct Known Subclasses:
MailAgent

public abstract class AbstractMailAgent<T extends AbstractMailAgent<T,U,V>,U extends AbstractMailProtocol<T,U,V>,V extends org.openremote.model.asset.agent.AgentLink<V>> extends org.openremote.model.asset.agent.Agent<T,U,V>
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.openremote.model.asset.Asset

    org.openremote.model.asset.Asset.AssetDeserializer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.openremote.model.value.AttributeDescriptor<Integer>
     
    static final org.openremote.model.value.AttributeDescriptor<Boolean>
     
    static final @NotNull org.openremote.model.value.AttributeDescriptor<String>
     
    static final org.openremote.model.value.AttributeDescriptor<String>
     
    static final @NotNull org.openremote.model.value.AttributeDescriptor<Integer>
     
    static final org.openremote.model.value.AttributeDescriptor<Boolean>
     
    static final @NotNull org.openremote.model.value.AttributeDescriptor<String>
     
    static final org.openremote.model.value.AttributeDescriptor<Boolean>
     
    static final @NotNull org.openremote.model.value.AttributeDescriptor<org.openremote.model.auth.UsernamePassword>
     

    Fields inherited from class org.openremote.model.asset.agent.Agent

    BIND_HOST, BIND_PORT, DISABLED, MESSAGE_CHARSET, MESSAGE_CONVERT_BINARY, MESSAGE_CONVERT_HEX, MESSAGE_DELIMITERS, MESSAGE_MAX_LENGTH, MESSAGE_STRIP_DELIMITER, OAUTH_GRANT, POLLING_MILLIS, SERIAL_BAUDRATE, SERIAL_PORT, STATUS, UPDATE_ON_WRITE

    Fields inherited from class org.openremote.model.asset.Asset

    accessPublicRead, attributes, createdOn, EMAIL, id, LOCATION, MANUFACTURER, MODEL, name, NOTES, parentId, path, realm, TAGS, type, version
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
     
     
     
     
    setHost(String value)
     
     
     
     
     
     
    setUsernamePassword(org.openremote.model.auth.UsernamePassword value)
     

    Methods inherited from class org.openremote.model.asset.agent.Agent

    getAgentLink, getAgentStatus, getBindHost, getBindPort, getHost, getOAuthGrant, getPollingMillis, getPort, getProtocolInstance, getSerialBaudrate, getSerialPort, getUsernamePassword, isConfigurationAttribute, isDisabled, isUpdateOnWrite, setBindHost, setBindPort, setDisabled, setOAuthGrant, setSerialBaudrate, setSerialPort, setUpdateOnWrite

    Methods inherited from class org.openremote.model.asset.Asset

    addAttributes, addOrReplaceAttributes, getAssetClass, getAssetName, getAssetType, getAttribute, getAttribute, getAttributeNames, getAttributes, getAttributesString, getCreatedOn, getEmail, getId, getLocation, getManufacturer, getMetaString, getModel, getName, getNotes, getParentId, getPath, getRealm, getTags, getType, getVersion, hasAttribute, hasAttribute, isAccessPublicRead, pathContains, postLoadCallback, setAccessPublicRead, setAttributes, setAttributes, setAttributes, setCreatedOn, setEmail, setId, setLocation, setManufacturer, setModel, setName, setNotes, setParent, setParentId, setRealm, setTags, setVersion, toString, toStringAll

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • PROTOCOL

      @NotNull public static final @NotNull org.openremote.model.value.AttributeDescriptor<String> PROTOCOL
    • USERNAME_AND_PASSWORD

      @NotNull public static final @NotNull org.openremote.model.value.AttributeDescriptor<org.openremote.model.auth.UsernamePassword> USERNAME_AND_PASSWORD
    • HOST

      @NotNull public static final @NotNull org.openremote.model.value.AttributeDescriptor<String> HOST
    • PORT

      @NotNull public static final @NotNull org.openremote.model.value.AttributeDescriptor<Integer> PORT
    • CHECK_INTERVAL_SECONDS

      public static final org.openremote.model.value.AttributeDescriptor<Integer> CHECK_INTERVAL_SECONDS
    • DELETE_PROCESSED_MAIL

      public static final org.openremote.model.value.AttributeDescriptor<Boolean> DELETE_PROCESSED_MAIL
    • PREFER_HTML

      public static final org.openremote.model.value.AttributeDescriptor<Boolean> PREFER_HTML
    • MAIL_FOLDER_NAME

      public static final org.openremote.model.value.AttributeDescriptor<String> MAIL_FOLDER_NAME
    • START_TLS

      public static final org.openremote.model.value.AttributeDescriptor<Boolean> START_TLS
  • Constructor Details

    • AbstractMailAgent

      protected AbstractMailAgent()
    • AbstractMailAgent

      public AbstractMailAgent(String name)
  • Method Details

    • getProtocol

      public Optional<String> getProtocol()
    • setProtocol

      public T setProtocol(String value)
    • getCheckIntervalSeconds

      public Optional<Integer> getCheckIntervalSeconds()
    • setCheckIntervalSeconds

      public T setCheckIntervalSeconds(Integer value)
    • getDeleteProcessedMail

      public Optional<Boolean> getDeleteProcessedMail()
    • setDeleteProcessedMail

      public T setDeleteProcessedMail(Boolean value)
    • getPreferHTML

      public Optional<Boolean> getPreferHTML()
    • setPreferHTML

      public T setPreferHTML(Boolean value)
    • getStartTLS

      public Optional<Boolean> getStartTLS()
    • setStartTLS

      public T setStartTLS(Boolean value)
    • getMailFolderName

      public Optional<String> getMailFolderName()
    • setMailFolderName

      public T setMailFolderName(String value)
    • setUsernamePassword

      public T setUsernamePassword(org.openremote.model.auth.UsernamePassword value)
      Overrides:
      setUsernamePassword in class org.openremote.model.asset.agent.Agent<T extends AbstractMailAgent<T,U,V>,U extends AbstractMailProtocol<T,U,V>,V extends org.openremote.model.asset.agent.AgentLink<V>>
    • setHost

      public T setHost(String value)
      Overrides:
      setHost in class org.openremote.model.asset.agent.Agent<T extends AbstractMailAgent<T,U,V>,U extends AbstractMailProtocol<T,U,V>,V extends org.openremote.model.asset.agent.AgentLink<V>>
    • setPort

      public T setPort(Integer value)
      Overrides:
      setPort in class org.openremote.model.asset.agent.Agent<T extends AbstractMailAgent<T,U,V>,U extends AbstractMailProtocol<T,U,V>,V extends org.openremote.model.asset.agent.AgentLink<V>>