Class ClientItem

    • Constructor Summary

      Constructors 
      Constructor Description
      ClientItem​(Session session, RemoteItem remote, LocalAdapterFactory factory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a local adapter for the given remote item.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void accept​(ItemVisitor visitor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Accepts the visitor to visit this item.
      Item getAncestor​(int level)
      Deprecated, for removal: This API element is subject to removal in a future version.
      int getDepth()
      Deprecated, for removal: This API element is subject to removal in a future version.
      String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Node getParent()
      Deprecated, for removal: This API element is subject to removal in a future version.
      String getPath()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Session getSession()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the current session without contacting the remote item.
      boolean isModified()
      Deprecated, for removal: This API element is subject to removal in a future version.
      boolean isNew()
      Deprecated, for removal: This API element is subject to removal in a future version.
      boolean isNode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns false by default without contacting the remote item.
      boolean isSame​(Item item)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether this instance represents the same repository item as the given other instance.
      void refresh​(boolean keepChanges)
      Deprecated, for removal: This API element is subject to removal in a future version.
      void remove()
      Deprecated, for removal: This API element is subject to removal in a future version.
      void save()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Constructor Detail

      • ClientItem

        public ClientItem​(Session session,
                          RemoteItem remote,
                          LocalAdapterFactory factory)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a local adapter for the given remote item.
        Parameters:
        session - current session
        remote - remote item
        factory - local adapter factory
    • Method Detail

      • getSession

        public Session getSession()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the current session without contacting the remote item.
        Specified by:
        getSession in interface Item
      • isNode

        public boolean isNode()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns false by default without contacting the remote item. This method should be overridden by Node subclasses.
        Specified by:
        isNode in interface Item
        Returns:
        false
      • isNew

        public boolean isNew()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        isNew in interface Item
      • isModified

        public boolean isModified()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        isModified in interface Item
      • isSame

        public boolean isSame​(Item item)
                       throws RepositoryException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether this instance represents the same repository item as the given other instance. A simple heuristic is used to first check some generic conditions (null values, instance equality, type equality), after which the item paths are compared to determine sameness. A RuntimeException is thrown if the item paths cannot be retrieved.
        Specified by:
        isSame in interface Item
        Throws:
        RepositoryException
        See Also:
        Item.getPath()
      • accept

        public void accept​(ItemVisitor visitor)
                    throws RepositoryException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Accepts the visitor to visit this item. Node and Property subclasses should override this method to call the appropriate ItemVisitor methods, as the default implementation does nothing.
        Specified by:
        accept in interface Item
        Throws:
        RepositoryException