Class ManageableResource

java.lang.Object
com.janeirodigital.shapetrees.core.resources.InstanceResource
com.janeirodigital.shapetrees.core.resources.ManageableResource
Direct Known Subclasses:
ManagedResource, MissingManageableResource, UnmanagedResource

public class ManageableResource extends InstanceResource
A ManageableResource represents a regular resource that could be managed by one or more shape trees. Each possible state is represented by typed subclasses; ManagedResource, UnmanagedResource, and MissingManageableResource. When the state is known, the appropriate typed subclass should be used.
  • Constructor Details

    • ManageableResource

      public ManageableResource(URL url, ShapeTreeResourceType resourceType, ResourceAttributes attributes, String body, String name, boolean exists, Optional<URL> managerResourceUrl)
      Construct a manageable resource.
      Parameters:
      url - URL of the resource
      resourceType - Identified shape tree resource type
      attributes - Associated resource attributes
      body - Body of the resource
      name - Name of the resource
      exists - Whether the resource exists
      managerResourceUrl - URL of the shape tree manager resource
  • Method Details

    • isContainer

      public boolean isContainer()
    • getManagerResourceUrl

      public Optional<URL> getManagerResourceUrl()