public class FolderHierarchyService extends java.lang.Object implements IInternalFolderHierarchy
| Modifier and Type | Field and Description |
|---|---|
protected Container |
container |
protected BmContext |
context |
protected FolderHierarchyEventProducer |
eventProducer |
protected FolderHierarchyStore |
folderStore |
protected static java.util.List<IFolderHook> |
hooks |
protected static org.slf4j.Logger |
logger |
protected java.lang.String |
mailboxUid |
protected SecurityContext |
securityContext |
protected FolderStoreService |
storeService |
| Constructor and Description |
|---|
FolderHierarchyService(BmContext context,
Container container,
java.lang.String mailboxUid) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
allUids() |
ItemValue<Folder> |
byContentUri(java.lang.String uri) |
ItemValue<Folder> |
byId(java.lang.Long id) |
java.util.List<ItemValue<Folder>> |
byParentId(java.lang.Long pid) |
ItemValue<Folder> |
byUid(java.lang.Long uid) |
ContainerChangelog |
changelog(java.lang.Long since)
ChangeLog of the container since
|
ContainerChangeset<java.lang.String> |
changeset(java.lang.Long since)
ChangeSet of the container since
|
ContainerChangeset<java.lang.Long> |
changesetById(java.lang.Long since)
ChangeSet of the container since
|
void |
create(java.lang.String uid,
Folder folder)
Creates a new
Folder entry. |
ItemValue<Folder> |
createFolder(ContainerDescriptor cd,
java.lang.Long parentId)
Creates a folder corresponding to the given container
Not exposed over http
|
void |
delete(java.lang.String uid)
Delete
Folder entry |
void |
deleteAll()
Delete the entire hierarchy
|
ItemValue<Folder> |
getComplete(java.lang.String uid)
Fetch a
Folder from its unique uid |
protected static java.util.List<IFolderHook> |
getHooks() |
java.util.List<ItemValue<Folder>> |
multipleGet(java.util.List<java.lang.String> uids)
Fetch multiple
Folders from theirs uniques uids |
void |
reset() |
ListResult<ItemValue<Folder>> |
search(FolderQuery query)
Searches for the
Folders items in the container using the given
query |
void |
update(java.lang.String uid,
Folder folder)
Modifies an existing
Folder entry. |
protected static final org.slf4j.Logger logger
protected final FolderHierarchyStore folderStore
protected final FolderStoreService storeService
protected final BmContext context
protected final java.lang.String mailboxUid
protected final SecurityContext securityContext
protected final Container container
protected final FolderHierarchyEventProducer eventProducer
protected static final java.util.List<IFolderHook> hooks
public FolderHierarchyService(BmContext context, Container container, java.lang.String mailboxUid) throws ServerFault
ServerFaultpublic void create(java.lang.String uid,
Folder folder)
throws ServerFault
IInternalFolderHierarchyFolder entry.create in interface IInternalFolderHierarchyuid - uid of the entryfolder - value of the entryServerFaultpublic void update(java.lang.String uid,
Folder folder)
throws ServerFault
IInternalFolderHierarchyFolder entry.update in interface IInternalFolderHierarchyuid - uid of the entryfolder - value of the entryServerFaultpublic ItemValue<Folder> getComplete(java.lang.String uid) throws ServerFault
IFolderHierarchyFolder from its unique uidgetComplete in interface IFolderHierarchyItemValueServerFaultpublic java.util.List<ItemValue<Folder>> multipleGet(java.util.List<java.lang.String> uids) throws ServerFault
IFolderHierarchyFolders from theirs uniques uidsmultipleGet in interface IFolderHierarchyList> ServerFaultpublic void delete(java.lang.String uid)
throws ServerFault
IInternalFolderHierarchyFolder entrydelete in interface IInternalFolderHierarchyServerFaultpublic void deleteAll()
throws ServerFault
IInternalFolderHierarchydeleteAll in interface IInternalFolderHierarchyServerFaultprotected static java.util.List<IFolderHook> getHooks()
public ContainerChangelog changelog(java.lang.Long since) throws ServerFault
IFolderHierarchychangelog in interface IFolderHierarchysince - timestamp of first changes we want to retrieveContainerChangelogServerFaultpublic ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
IFolderHierarchychangeset in interface IFolderHierarchysince - timestamp of first changes we want to retrieveServerFaultpublic ContainerChangeset<java.lang.Long> changesetById(java.lang.Long since) throws ServerFault
IFolderHierarchychangesetById in interface IFolderHierarchysince - timestamp of first changes we want to retrieveServerFaultpublic ItemValue<Folder> byContentUri(java.lang.String uri) throws ServerFault
byContentUri in interface IFolderHierarchyServerFaultpublic java.util.List<ItemValue<Folder>> byParentId(java.lang.Long pid) throws ServerFault
byParentId in interface IFolderHierarchyServerFaultpublic ItemValue<Folder> byUid(java.lang.Long uid) throws ServerFault
byUid in interface IFolderHierarchyServerFaultpublic ItemValue<Folder> byId(java.lang.Long id) throws ServerFault
byId in interface IFolderHierarchyServerFaultpublic ListResult<ItemValue<Folder>> search(FolderQuery query) throws ServerFault
IFolderHierarchyFolders items in the container using the given
querysearch in interface IFolderHierarchyquery - the search criteriaFolder objectsServerFaultpublic ItemValue<Folder> createFolder(ContainerDescriptor cd, java.lang.Long parentId) throws ServerFault
IInternalFolderHierarchycreateFolder in interface IInternalFolderHierarchycd - the containerparentId - the parent idServerFaultpublic java.util.List<java.lang.String> allUids()
throws ServerFault
allUids in interface IFolderHierarchyServerFaultpublic void reset()
throws ServerFault
reset in interface IFolderHierarchyServerFaultCopyright © 2021. All Rights Reserved.