Interface FileStoreEnabled

    • Method Detail

      • getFileSet

        FileSet getFileSet()
        Get the file set that collects all files that holds data for this item. If no file set exists a new one is created and automatically saved to the database when DbControl.commit() is called. To check if an item has files without creating a new file set use the hasFileSet() method.
        Returns:
        A file set
      • hasFileSet

        boolean hasFileSet()
        Check if this item has a file set. Always call this method before getFileSet() to avoid creating a new file set when there is no need for it.
        Returns:
        TRUE if a file set exists, FALSE if not
      • getPlatform

        Platform getPlatform()
        Get the platform the item is related to. The platform is used to limit the DataFileType:s that can be added to the file set.
        Returns:
        A platform or null if the items is not related to any platform.
      • getVariant

        PlatformVariant getVariant()
        Get the platform variant the item is related to. The platform is used to limit the DataFileType:s that can be added to the file set.
        Returns:
        A platform or null if the items is not related to any variant.
      • getParentFileSets

        Collection<FileSet> getParentFileSets()
        Get the file sets of parent item(s) that are related to the current item. If the item has no parent(s) or if the parent has no file set, null or an empty collection is returned.
        Returns:
        A collection of FileSet or null