public class DirectoryService extends java.lang.Object implements IDirectory
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<DirectoryDecorator> |
decorators |
| Constructor and Description |
|---|
DirectoryService(BmContext context,
Container dirContainer,
ItemValue<Domain> domain) |
| Modifier and Type | Method and Description |
|---|---|
ContainerChangelog |
changelog(java.lang.Long since)
Get the domain's
ContainerChangelog |
ContainerChangeset<java.lang.String> |
changeset(java.lang.Long since)
Get the domain's
ContainerChangeset |
TaskRef |
delete(java.lang.String path)
Delete
DirEntry by path |
TaskRef |
deleteByEntryUid(java.lang.String entryUid)
Delete a
DirEntry by uid |
DirEntry |
findByEntryUid(java.lang.String entryUid)
Get
DirEntry by uid |
DirEntry |
getByEmail(java.lang.String email)
Fetch a
DirEntry by its email address |
java.util.List<ItemValue<DirEntry>> |
getByRoles(java.util.List<java.lang.String> roles) |
java.util.List<DirEntry> |
getEntries(java.lang.String path)
Fetch
DirEntrys by their path |
DirEntry |
getEntry(java.lang.String path)
Fetch
DirEntry by its path |
byte[] |
getEntryIcon(java.lang.String entryUid)
Get a
DirEntry's icon |
byte[] |
getEntryPhoto(java.lang.String entryUid)
Get a
DirEntry's photo |
byte[] |
getIcon(java.lang.String path)
Get a
DirEntry's icon |
java.util.List<ItemValue<DirEntry>> |
getMultiple(java.util.List<java.lang.String> id)
Fetch a list of
net.bluemind.core.container.model(DirEntry)
by their internal numerical ids |
java.util.Set<java.lang.String> |
getRolesForDirEntry(java.lang.String entryUid)
Get all the roles associated to an
DirEntry |
java.util.Set<java.lang.String> |
getRolesForOrgUnit(java.lang.String orgUnitUid)
Get all the roles associated to an
OrgUnit |
DirEntry |
getRoot()
Fetch the root
DirEntry |
ItemValue<VCard> |
getVCard(java.lang.String uid)
|
ListResult<ItemValue<DirEntry>> |
search(DirEntryQuery query)
Search
DirEntrys by DirEntryQuery |
TaskRef |
xfer(java.lang.String entryUid,
java.lang.String serverUid)
|
public static java.util.List<DirectoryDecorator> decorators
public DirEntry getRoot() throws ServerFault
IDirectoryDirEntrygetRoot in interface IDirectoryDirEntryServerFault - common error objectpublic DirEntry getEntry(java.lang.String path) throws ServerFault
IDirectoryDirEntry by its pathgetEntry in interface IDirectorypath - path of the directory entry DirEntry or null if not foundServerFault - common error objectpublic java.util.List<DirEntry> getEntries(java.lang.String path) throws ServerFault
IDirectoryDirEntrys by their pathgetEntries in interface IDirectorypath - path of the directory entries DirEntrysServerFault - common error objectpublic TaskRef delete(java.lang.String path) throws ServerFault
IDirectoryDirEntry by pathdelete in interface IDirectorypath - path of the directory entry (domainUid/kind/entryUid)ServerFault - common error objectpublic ItemValue<VCard> getVCard(java.lang.String uid) throws ServerFault
IDirectorygetVCard in interface IDirectoryuid - the entry uidServerFault - common error objectpublic TaskRef deleteByEntryUid(java.lang.String entryUid) throws ServerFault
IDirectoryDirEntry by uiddeleteByEntryUid in interface IDirectoryServerFault - common error objectpublic ContainerChangelog changelog(java.lang.Long since) throws ServerFault
IDirectoryContainerChangelogchangelog in interface IDirectorysince - timestamp of the first change we want to retrieveContainerChangelogServerFault - common error objectpublic ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
IDirectoryContainerChangesetchangeset in interface IDirectorysince - timestamp of the first change we want to retrieveContainerChangesetServerFault - common error objectpublic ListResult<ItemValue<DirEntry>> search(DirEntryQuery query) throws ServerFault
IDirectoryDirEntrys by DirEntryQuerysearch in interface IDirectoryquery - the DirEntryQuery search parametersDirEntrysServerFault - common error objectpublic DirEntry findByEntryUid(java.lang.String entryUid) throws ServerFault
IDirectoryDirEntry by uidfindByEntryUid in interface IDirectoryentryUid - the unique DirEntry uidDirEntry or null if not foundServerFault - common error objectpublic byte[] getEntryIcon(java.lang.String entryUid)
throws ServerFault
IDirectoryDirEntry's icongetEntryIcon in interface IDirectoryentryUid - the unique DirEntry uidDirEntryServerFault - common error objectpublic byte[] getEntryPhoto(java.lang.String entryUid)
throws ServerFault
IDirectoryDirEntry's photogetEntryPhoto in interface IDirectoryentryUid - the unique DirEntry uidDirEntryServerFault - common error objectpublic byte[] getIcon(java.lang.String path)
throws ServerFault
IDirectoryDirEntry's icongetIcon in interface IDirectorypath - path of the directory entry (domainUid/kind/entryUid)DirEntryServerFault - common error objectpublic java.util.Set<java.lang.String> getRolesForDirEntry(java.lang.String entryUid)
throws ServerFault
IDirectoryDirEntrygetRolesForDirEntry in interface IDirectoryentryUid - the unique DirEntry uidDirEntryServerFault - common error objectpublic java.util.Set<java.lang.String> getRolesForOrgUnit(java.lang.String orgUnitUid)
throws ServerFault
IDirectoryOrgUnitgetRolesForOrgUnit in interface IDirectoryorgUnitUid - the unique OrgUnit's idOrgUnitServerFault - common error objectpublic DirEntry getByEmail(java.lang.String email)
IDirectoryDirEntry by its email addressgetByEmail in interface IDirectoryemail - the DirEntry's email addressDirEntry or null, if not foundpublic java.util.List<ItemValue<DirEntry>> getMultiple(java.util.List<java.lang.String> id)
IDirectorynet.bluemind.core.container.model(DirEntry)
by their internal numerical idsgetMultiple in interface IDirectoryid - list of internal numerical idsDirEntry'spublic TaskRef xfer(java.lang.String entryUid, java.lang.String serverUid) throws ServerFault
IDirectoryDirEntry to a different
Server This transfers all database related
data as well as all emails to the new server. This action can potentially
take a very long timexfer in interface IDirectoryentryUid - the unique DirEntry uidserverUid - the unique Server uidTaskRef referencing this
operationServerFault - common error objectpublic java.util.List<ItemValue<DirEntry>> getByRoles(java.util.List<java.lang.String> roles) throws ServerFault
getByRoles in interface IDirectoryServerFaultCopyright © 2024. All Rights Reserved.