Interface IAttachment

    • 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

        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

        String description()

        The attachment description.

        Getter method for the COM property "Description"

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

        void description​(String pVal)

        The attachment description.

        Setter method for the COM property "Description"

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

        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

        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​(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<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()

        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

        String directLink()

        The link or path to the attachment.

        Getter method for the COM property "DirectLink"

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

        String serverFileName()

        The attachment file name on the server machine.

        Getter method for the COM property "ServerFileName"

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

        int fileSize()

        The attachment file size in bytes.

        Getter method for the COM property "FileSize"

        Returns:
        Returns a value of type int
      • lastModified

        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​(String newName)

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

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