Interface IAttachment

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com4j.Com4jObject attachmentStorage()
      Deprecated.
      java.lang.Object data()
      If the attachment is a file, an array of bytes.
      java.lang.String description()
      The attachment description.
      void description​(java.lang.String pVal)
      The attachment description.
      java.lang.String directLink()
      The link or the attachment file name on the server machine.
      java.lang.String fileName()
      If a file, the file location.
      void fileName​(java.lang.String pVal)
      If a file, the file location.
      int fileSize()
      Obsolete.Use IAttachment3 FileSizeEx instead.
      java.util.Date lastModified()
      The last modified time.
      void load​(boolean synchronize, com4j.Holder<java.lang.String> rootPath)
      Downloads an attachment file to a client machine.
      java.lang.String name​(int viewFormat)
      The attachment name.
      void rename​(java.lang.String newName)
      Renames the attachment on the server.
      void save​(boolean synchronize)
      Uploads a file to the server.
      java.lang.String serverFileName()
      The path to the attachment on the server machine.
      int type()
      The attachment type.
      void type​(int pVal)
      The attachment type.
      • Methods inherited from interface com4j.Com4jObject

        advise, dispose, equals, getComThread, getIUnknownPointer, getPointer, getPtr, hashCode, is, queryInterface, setName, toString
    • Method Detail

      • type

        int type()

        The attachment type. Either File or URL.

        Getter method for the COM property "Type"

        Returns:
        Returns a value of type int
      • type

        void type​(int pVal)

        The attachment type. Either File or URL.

        Setter method for the COM property "Type"

        Parameters:
        pVal - Mandatory int parameter.
      • name

        java.lang.String name​(@DefaultValue("0")
                              int viewFormat)

        The attachment name.

        Getter method for the COM property "Name"

        Parameters:
        viewFormat - Optional parameter. Default value is 0
        Returns:
        Returns a value of type java.lang.String
      • description

        java.lang.String description()

        The attachment description.

        Getter method for the COM property "Description"

        Returns:
        Returns a value of type java.lang.String
      • description

        void description​(java.lang.String pVal)

        The attachment description.

        Setter method for the COM property "Description"

        Parameters:
        pVal - Mandatory java.lang.String parameter.
      • data

        java.lang.Object data()

        If the attachment is a file, an array of bytes. If a reference to file, the path or URL.

        Getter method for the COM property "Data"

        Returns:
        Returns a value of type java.lang.Object
      • fileName

        java.lang.String fileName()

        If a file, the file location. If a virtual file, the location for the attachment before it is uploaded to the server. If a URL, the link address.

        Getter method for the COM property "FileName"

        Returns:
        Returns a value of type java.lang.String
      • fileName

        void fileName​(java.lang.String pVal)

        If a file, the file location. If a virtual file, the location for the attachment before it is uploaded to the server. If a URL, the link address.

        Setter method for the COM property "FileName"

        Parameters:
        pVal - Mandatory java.lang.String parameter.
      • load

        void load​(boolean synchronize,
                  com4j.Holder<java.lang.String> rootPath)

        Downloads an attachment file to a client machine.

        Parameters:
        synchronize - Mandatory boolean parameter.
        rootPath - Mandatory Holder parameter.
      • save

        void save​(boolean synchronize)

        Uploads a file to the server.

        Parameters:
        synchronize - Mandatory boolean parameter.
      • attachmentStorage

        com4j.Com4jObject attachmentStorage()

        Deprecated. The ExtendedStorage object of this attachment. Applies only to file attachments.

        Getter method for the COM property "AttachmentStorage"

        Returns:
        Returns a value of type com4j.Com4jObject
      • directLink

        java.lang.String directLink()

        The link or the attachment file name on the server machine.

        Getter method for the COM property "DirectLink"

        Returns:
        Returns a value of type java.lang.String
      • serverFileName

        java.lang.String serverFileName()

        The path to the attachment on the server machine.

        Getter method for the COM property "ServerFileName"

        Returns:
        Returns a value of type java.lang.String
      • fileSize

        int fileSize()

        Obsolete.Use IAttachment3 FileSizeEx instead. The attachment file size in bytes.

        Getter method for the COM property "FileSize"

        Returns:
        Returns a value of type int
      • lastModified

        java.util.Date lastModified()

        The last modified time.

        Getter method for the COM property "LastModified"

        Returns:
        Returns a value of type java.util.Date
      • rename

        void rename​(java.lang.String newName)

        Renames the attachment on the server. The attachment must be uploaded before calling this method.

        Parameters:
        newName - Mandatory java.lang.String parameter.