Class PortalItemContentParameters

    • Method Detail

      • createFileContent

        public static PortalItemContentParameters createFileContent​(java.io.File file,
                                                                    java.lang.String fileName)
        Creates an instance of PortalItemContentParameters to use when adding a portal item for which the content data is a file.
        Parameters:
        file - a File containing the content data for the item
        fileName - the file name to use to store the data; must be unique within the particular user's folder to which the item is added
        Returns:
        an instance of PortalItemContentParameters
        Throws:
        java.lang.IllegalArgumentException - if file is null
        java.lang.IllegalArgumentException - if fileName is null or empty
        Since:
        100.3.0
        See Also:
        PortalUser.addPortalItemAsync(PortalItem, PortalItemContentParameters, PortalFolder)
      • getFile

        public java.io.File getFile()
        Gets the File containing the content.
        Returns:
        a File containing the content data, or null if content is not a file
        Since:
        100.3.0
      • getFileName

        public java.lang.String getFileName()
        Gets the file name to use to store the data.
        Returns:
        the file name, or null if content is not a file
        Since:
        100.3.0
      • getJsonText

        public java.lang.String getJsonText()
        Gets the JSON content data.
        Returns:
        the content data, or null if content is not JSON text
        Since:
        100.0.0
      • getUrl

        public java.lang.String getUrl()
        Gets the URL.
        Returns:
        the URL, or null if content is not a URL
        Since:
        100.3.0