Class AbstractNodeBase<F>

  • Direct Known Subclasses:
    Node, ProjectNode

    public abstract class AbstractNodeBase<F>
    extends Object
    Base class for all node objects stored in an AFS tree.
    Author:
    Geoffroy Jamgotchian
    • Field Detail

      • codeVersion

        protected int codeVersion
    • Constructor Detail

      • AbstractNodeBase

        public AbstractNodeBase​(NodeInfo info,
                                AppStorage storage,
                                int codeVersion)
    • Method Detail

      • getParent

        public abstract Optional<F> getParent()
      • getId

        public String getId()
        An ID uniquely identifying this node in the file system tree.
      • getName

        public String getName()
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getModificationDate

        public ZonedDateTime getModificationDate()
      • getVersion

        public int getVersion()
      • getCodeVersion

        protected int getCodeVersion()
      • isAheadOfVersion

        public boolean isAheadOfVersion()
      • getPath

        public abstract NodePath getPath()
      • isFolder

        public abstract boolean isFolder()
      • rename

        public void rename​(String name)
      • archive

        public void archive​(Path dir,
                            boolean useZip,
                            boolean archiveDependencies,
                            Map<String,​List<String>> outputBlackList)
      • unarchive

        public void unarchive​(Path dir,
                              boolean isZipped)
      • archive

        public void archive​(Path dir)
      • unarchive

        public void unarchive​(Path dir)