Class FileServerData

    • Field Detail

      • MAX_CONNECTION_MANAGER_FACTORY_LENGTH

        public static final int MAX_CONNECTION_MANAGER_FACTORY_LENGTH
        See Also:
        Constant Field Values
      • connectionManagerFactory

        private String connectionManagerFactory
      • username

        private String username
      • password

        private String password
      • rootPath

        private String rootPath
      • sshFingerprint

        private String sshFingerprint
      • fingerprintType

        private String fingerprintType
      • sshPrivateKey

        private byte[] sshPrivateKey
      • sshPrivateKeyPassword

        private String sshPrivateKeyPassword
      • sshPrivateKeyFormat

        private String sshPrivateKeyFormat
      • serverCertificate

        private byte[] serverCertificate
      • clientCertificate

        private byte[] clientCertificate
      • clientPassword

        private String clientPassword
    • Constructor Detail

      • FileServerData

        public FileServerData()
    • Method Detail

      • getConnectionManagerFactory

        public String getConnectionManagerFactory()
        Get the ID of the connection manager factory that should be used to retreieve the file contents and metadata. If null auto-detection is used to find a suitable connection manager factory.
        Since:
        3.0
        Hibernate: property
        column="`cm_factory`" type="string" length="255" not-null="false"
      • setConnectionManagerFactory

        public void setConnectionManagerFactory​(String connectionManagerFactory)
      • getHost

        public String getHost()
        Get the name:port of the actual host to use for all files using this server (overrides the host specified in the file url)
        Since:
        3.0
        Hibernate: property
        column="`host`" type="string" length="255" not-null="false"
      • setHost

        public void setHost​(String host)
      • getUsername

        public String getUsername()
        Get the username that is used to login to the server. If null no login is required.
        Hibernate: property
        column="`username`" type="string" length="255" not-null="false"
      • setUsername

        public void setUsername​(String username)
      • getPassword

        @PropertyPathProtected
        public String getPassword()
        Get the password that is used to login to the server.
        Hibernate: property
        column="`password`" type="string" length="255" not-null="false"
      • setPassword

        public void setPassword​(String password)
      • getRootPath

        public String getRootPath()
        Get the root path that must be added to all URI:s using this file server.
        Since:
        3.3
        Hibernate: property
        column="`root_path`" type="string" length="255" not-null="false"
      • setRootPath

        public void setRootPath​(String rootPath)
      • getSshFingerprint

        public String getSshFingerprint()
        Get the fingerprint of the SSH public key for the server that must be verified when (if) it is accessed via the SSH protocol.
        Since:
        3.3
        Hibernate: property
        column="`ssh_fingerprint`" type="string" length="47" not-null="false"
      • setSshFingerprint

        public void setSshFingerprint​(String sshFingerprint)
      • getFingerprintType

        public String getFingerprintType()
        Get the type of SSH fingerprint.
        Since:
        3.11
        Hibernate: property
        column="`ssh_fingerprint_type`" type="string" length="255" not-null="false"
      • setFingerprintType

        public void setFingerprintType​(String fingerprintType)
      • getSshPrivateKey

        @PropertyPathProtected
        public byte[] getSshPrivateKey()
        Get the SSH private key that we need to send to the server to make the server accept our connection.
        Since:
        3.13
        Hibernate: property
        column="`ssh_private_key`" type="binary" length="65535" not-null="false"
      • setSshPrivateKey

        public void setSshPrivateKey​(byte[] sshPrivateKey)
      • getSshPrivateKeyPassword

        @PropertyPathProtected
        public String getSshPrivateKeyPassword()
        Get the password that is used to unlock the SSH private key.
        Since:
        3.13
        Hibernate: property
        column="`ssh_private_key_password`" type="string" length="255" not-null="false"
      • setSshPrivateKeyPassword

        public void setSshPrivateKeyPassword​(String sshPrivateKeyPassword)
      • getSshPrivateKeyFormat

        public String getSshPrivateKeyFormat()
        Get the private key format.
        Since:
        3.13
        Hibernate: property
        column="`ssh_private_key_format`" type="string" length="255" not-null="false"
      • setSshPrivateKeyFormat

        public void setSshPrivateKeyFormat​(String sshPrivateKeyFormat)
      • getServerCertificate

        public byte[] getServerCertificate()
        Get the public server certificate indicating that we should trust https connections to the server.
        Hibernate: property
        column="`server_certificate`" type="binary" length="65535" not-null="false"
      • setServerCertificate

        public void setServerCertificate​(byte[] serverCertificate)
      • getClientCertificate

        @PropertyPathProtected
        public byte[] getClientCertificate()
        Get the client certificate that we need to send to the server to make the server accept our connection.
        Hibernate: property
        column="`client_certificate`" type="binary" length="65535" not-null="false"
      • setClientCertificate

        public void setClientCertificate​(byte[] clientCertificate)
      • getClientCertificatePassword

        @PropertyPathProtected
        public String getClientCertificatePassword()
        Get the password that is used to unlock the client certificate.
        Hibernate: property
        column="`client_password`" type="string" length="255" not-null="false"
      • setClientCertificatePassword

        public void setClientCertificatePassword​(String clientPassword)
      • getFiles

        Set<FileData> getFiles()
        This is the inverse end.
        See Also:
        FileData.getFileServer()
        Hibernate: set
        lazy="true" inverse="true"
        Hibernate: collection-key
        column="`fileserver_id`"
        Hibernate: collection-one-to-many
        class="net.sf.basedb.core.data.FileData"