Class PortalFile

  • All Implemented Interfaces:
    Serializable, Comparable<File>

    @Deprecated
    public class PortalFile
    extends File
    Deprecated.
    since 8.0.0 it is not recommended to be used anymore due to the filesystem abstraction layer. Every file operation should use the IFile interface, that can be obtained from IFileSystemManager.getFile(PortalFilePath). The direct usage of Java file API can produce unpredictable portal behavior, when not using the LumisPortal default filesystem implementations. The new filesystem API is highly recommended to be used instead.
    A file that resides inside the portal's controlled file system.

    Extends the File, embedding the raising of events and portal cluster replication.

    Since:
    4.1.0
    Version:
    $Revision: 17047 $ $Date: 2015-03-03 11:22:22 -0300 (Tue, 03 Mar 2015) $
    See Also:
    Serialized Form
    • Constructor Detail

      • PortalFile

        @Deprecated
        public PortalFile​(File parent,
                          String child)
        Deprecated.
        Creates a new portal file from a parent file and a child pathname string.

        If the parent file is an instance of a portal file, the result portal file will have the same PortalBaseFolder, but adds the child string to the parent's relative path. The resulting relative path must be valid and still reside inside the same PortalBaseFolder.

        Example: If parent has base folder DATA and relative path "/path", and child is "child.txt", the resulting portal file will have base folder DATA and relative path "/path/child.txt".

        Parameters:
        parent - the parent file.
        child - the child pathname string.
        Throws:
        NullPointerException - if parent or child is null.
        Since:
        6.2.0
    • Method Detail

      • getPortalFilePath

        @Deprecated
        public PortalFilePath getPortalFilePath()
        Deprecated.
        Returns the path for this portal file.
        Returns:
        the path.
        Since:
        4.1.0
      • getParentPortalFile

        @Deprecated
        public PortalFile getParentPortalFile()
        Deprecated.
        Returns the PortalFile that is parent of this one. If this file's parent is not a valid PortalFile (because this PortalFile is a relative root), null is returned;
        Returns:
        the PortalFile that is parent of this one, or null if this PortalFile does not have a parent PortalFile.
        Since:
        4.1.0
      • recursiveDelete

        @Deprecated
        public void recursiveDelete()
        Deprecated.
        Recursively deletes this file and any child of it.
        Since:
        4.1.0