Base class for pretty much all resources

Implements: CommonResource, PropFindableResource, AccessControlledResource, ReportableResource, LockableResource, OAuth2Resource


Properties

NameReturnsNotes
accessControlListMap<Principal,List<Priviledge>>
asListResourceList
attributesMap<String,Object>
createDateDateReturns null, but may be overridden in other classes
dirbooleanTrue iff this resource is a collection
hrefStringThe path to the resource within the website
linkStringReturns a HTML link to this resource, with its name as the text of the link
modifiedDateDateReturns null, but may be overridden in other classes
oAuth2ProvidersMap<String,OAuth2Provider>
pathPathReturns the path to the resource as a Path object, which has convenient methods for path manipulation
principalCollectionHrefsHrefListReturn the hrefs (either fully qualified URLs or absolute paths) to the collections which contain principals. This is to allow user agents to display a list of users to display. Most implementations will only have a single value which will be the path to the users folder. Eg: return Arrays.asList("/users/");
principalURLStringReturns the path to the owner of this resource, if there is a particular owner. Otherwise returns null
publicbooleanReturns false
readablebooleanIs the resource readable by the current user (which might be null for anonymous request)
realmString
uniqueIdString
writablebooleanTrue if the current user has WRITE_CONTENT permission on this resource

Methods

SignatureReturnsNotes
find(String path)ResourceFind a resource within the website by its path. If the given path is relative it will be evaluated relative to this resource. If absolute it will be evaluated from the website root
find(Path p)ResourceFind a resource by a path using a Path object
closest(String type)CommonResourceFind the closest parent (or this resource) which is the current type, ie where parent.is(type) == true
closest(Class<T> c)TFind the closest parent with the given class
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.