Class ItemDelegate

    • Method Detail

      • checkUpdate

        protected boolean checkUpdate()
        Checks whether the session has changed since this delegate instance was last accessed, thus triggering an update of the internal state of this delegate.
        Returns:
        true if the session was recently updated, false if not
      • update

        protected void update()
        Called by checkUpdate() to update the internal state of this delegate.
      • checkAlive

        public void checkAlive()
                        throws RepositoryException
        Performs a sanity check on this item and the associated session.
        Throws:
        RepositoryException - if this item has been rendered invalid for some reason or the associated session has been logged out
      • getName

        @NotNull
        public abstract @NotNull String getName()
        Get the name of this item
        Returns:
        oak name of this item
      • getPath

        @NotNull
        public abstract @NotNull String getPath()
        Get the path of this item
        Returns:
        oak path of this item
      • getParent

        @Nullable
        public abstract @Nullable NodeDelegate getParent()
        Get the parent of this item or null.
        Returns:
        parent of this item or null for root or if the parent is not accessible.
      • getStatus

        @Nullable
        public abstract @Nullable Tree.Status getStatus()
        Get the status of this item.
        Returns:
        Tree.Status of this item or null if not available.
      • exists

        public abstract boolean exists()
        Determine whether the underlying item exists
        Returns:
        true the underlying tree exists, false otherwise.