public class AnnoCollectionResource extends AnnoResource implements CollectionResource, PutableResource, MakeCollectionableResource, LockingCollectionResource, DeletableCollectionResource, ExtMakeCalendarResource
AccessControlledResource.Priviledgeacl, annoFactory, jsonResult, nameOverride, parent, realm, sourceNONE, READ_BROWSE, READ_CONTENT, READ_WRITE| Constructor and Description |
|---|
AnnoCollectionResource(AnnotationResourceFactory outer,
Object source,
AnnoCollectionResource parent) |
| Modifier and Type | Method and Description |
|---|---|
Resource |
child(String childName) |
LockToken |
createAndLock(String name,
LockTimeout timeout,
LockInfo lockInfo) |
CollectionResource |
createCalendar(String newName,
Map<QName,String> fieldsToSet) |
CollectionResource |
createCollection(String newName) |
Resource |
createNew(String newName,
InputStream inputStream,
Long length,
String contentType) |
Resource |
find(String s) |
protected ResourceList |
findChildren(boolean isChildLookup) |
Resource |
findPath(Path p)
Locate a resource from the given path evaluated relative to this
resource.
|
List<? extends Resource> |
getChildren() |
List<? extends Resource> |
getChildren(boolean isChildLookup) |
Map<String,CommonResource> |
getChildrenMap() |
Map<String,ResourceList> |
getChildrenOfType() |
ResourceList |
getFiles() |
ResourceList |
getResourceList() |
AnnoCollectionResource |
getRoot() |
ResourceList |
getSubFolders() |
protected void |
initChildren(boolean isChildLookup)
Called when the children list is first accessed
This will create the children ResourceList and populate it with known
child resources
|
boolean |
isLockedOutRecursive(Request request) |
authenticate, authenticate, authorise, checkRedirect, copyTo, delete, getAccessControlList, getAnnoFactory, getAsList, getContentLength, getContentType, getContentType, getCreateDate, getCurrentLock, getDisplayName, getHref, getLink, getMaxAgeSeconds, getModifiedDate, getName, getNameOverride, getParent, getPrincipalCollectionHrefs, getPrincipalURL, getPriviledges, getRealm, getSource, getUniqueId, is, isCompatible, isDigestAllowed, lock, moveTo, processForm, refreshLock, sendContent, setAccessControlList, setDisplayName, setNameOverride, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentLock, lock, refreshLock, unlockdeleteauthenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueIdpublic AnnoCollectionResource(AnnotationResourceFactory outer, Object source, AnnoCollectionResource parent)
public Resource child(String childName) throws NotAuthorizedException, BadRequestException
child in interface CollectionResourceNotAuthorizedExceptionBadRequestExceptionpublic List<? extends Resource> getChildren() throws NotAuthorizedException, BadRequestException
getChildren in interface CollectionResourceNotAuthorizedExceptionBadRequestExceptionpublic List<? extends Resource> getChildren(boolean isChildLookup) throws NotAuthorizedException, BadRequestException
public ResourceList getResourceList() throws NotAuthorizedException, BadRequestException
public ResourceList getSubFolders() throws NotAuthorizedException, BadRequestException
public ResourceList getFiles() throws NotAuthorizedException, BadRequestException
protected ResourceList findChildren(boolean isChildLookup) throws NotAuthorizedException, BadRequestException
protected void initChildren(boolean isChildLookup)
throws NotAuthorizedException,
BadRequestException
isChildLookup - - indicates this is being called in the context of a
call to load a single child by nameNotAuthorizedExceptionBadRequestExceptionpublic Map<String,CommonResource> getChildrenMap() throws NotAuthorizedException, BadRequestException
public Map<String,ResourceList> getChildrenOfType() throws NotAuthorizedException, BadRequestException
public CollectionResource createCollection(String newName) throws NotAuthorizedException, ConflictException, BadRequestException
createCollection in interface MakeCollectionableResourceNotAuthorizedExceptionConflictExceptionBadRequestExceptionpublic CollectionResource createCalendar(String newName, Map<QName,String> fieldsToSet) throws NotAuthorizedException, ConflictException, BadRequestException
createCalendar in interface ExtMakeCalendarResourceNotAuthorizedExceptionConflictExceptionBadRequestExceptionpublic Resource createNew(String newName, InputStream inputStream, Long length, String contentType) throws IOException, ConflictException, NotAuthorizedException, BadRequestException
createNew in interface PutableResourceIOExceptionConflictExceptionNotAuthorizedExceptionBadRequestExceptionpublic AnnoCollectionResource getRoot()
getRoot in class AnnoResourcepublic LockToken createAndLock(String name, LockTimeout timeout, LockInfo lockInfo) throws NotAuthorizedException
createAndLock in interface LockingCollectionResourceNotAuthorizedExceptionpublic boolean isLockedOutRecursive(Request request)
isLockedOutRecursive in interface DeletableCollectionResourcepublic Resource find(String s) throws NotAuthorizedException, BadRequestException
public Resource findPath(Path p) throws NotAuthorizedException, BadRequestException
p - NotAuthorizedExceptionBadRequestExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.