Interface ModifyingResourceProvider

    • Method Detail

      • create

        Resource create​(ResourceResolver resolver,
                        java.lang.String path,
                        java.util.Map<java.lang.String,​java.lang.Object> properties)
                 throws PersistenceException
        Deprecated.
        Create a new resource at the given path. The new resource is put into the transient space of this provider until commit(ResourceResolver) is called. A resource provider should value ResourceResolver.PROPERTY_RESOURCE_TYPE to set the resource type of a resource.
        Parameters:
        resolver - The current resource resolver.
        path - The resource path.
        properties - Optional properties
        Returns:
        The new resource.
        Throws:
        PersistenceException - If anything fails
      • revert

        void revert​(ResourceResolver resolver)
        Deprecated.
        Revert all transient changes: create, delete and updates.
        Parameters:
        resolver - The current resource resolver.
      • hasChanges

        boolean hasChanges​(ResourceResolver resolver)
        Deprecated.
        Are there any transient changes?
        Parameters:
        resolver - The current resource resolver.
        Returns:
        true if there are pending changes.