Class ManagerResource
java.lang.Object
com.janeirodigital.shapetrees.core.resources.InstanceResource
com.janeirodigital.shapetrees.core.resources.ManagerResource
- Direct Known Subclasses:
MissingManagerResource
A ManagerResource represents a resource that is associated with
a regular MangeableResource, and contains metadata in the form
of a ShapeTreeManager that assigns one or more shape trees to the
associated ManageableResource. When it exists, the associated
resource is considered to be managed. When it doesn't, the associated
resource is considered to be unmanaged.
-
Constructor Summary
ConstructorsConstructorDescriptionManagerResource
(URL url, ShapeTreeResourceType resourceType, ResourceAttributes attributes, String body, String name, boolean exists, URL managedResourceUrl) Construct a manager resource -
Method Summary
Modifier and TypeMethodDescriptionGet a ShapeTreeManager from the body of the ManagerResourceMethods inherited from class com.janeirodigital.shapetrees.core.resources.InstanceResource
getAttributes, getBody, getGraph, getName, getResourceType, getUrl, isExists
-
Constructor Details
-
ManagerResource
public ManagerResource(URL url, ShapeTreeResourceType resourceType, ResourceAttributes attributes, String body, String name, boolean exists, URL managedResourceUrl) Construct a manager resource- Parameters:
url
- URL of the resourceresourceType
- Identified shape tree resource typeattributes
- Associated resource attributesbody
- Body of the resourcename
- Name of the resourceexists
- Whether the resource existsmanagedResourceUrl
- URL of the associated managed resource
-
-
Method Details
-
getManager
Get a ShapeTreeManager from the body of the ManagerResource- Returns:
- Shape tree manager
- Throws:
ShapeTreeException
-
getManagedResourceUrl
-