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
DirEntry s 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
DirEntry s by DirEntryQuery |
TaskRef |
xfer(java.lang.String entryUid,
java.lang.String serverUid)
|
public static java.util.List<DirectoryDecorator> decorators
public DirEntry getRoot() throws ServerFault
IDirectory
DirEntry
getRoot
in interface IDirectory
DirEntry
ServerFault
- common error objectpublic DirEntry getEntry(java.lang.String path) throws ServerFault
IDirectory
DirEntry
by its pathgetEntry
in interface IDirectory
path
- 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
IDirectory
DirEntry
s by their pathgetEntries
in interface IDirectory
path
- path of the directory entries DirEntry
sServerFault
- common error objectpublic TaskRef delete(java.lang.String path) throws ServerFault
IDirectory
DirEntry
by pathdelete
in interface IDirectory
path
- path of the directory entry (domainUid/kind/entryUid)ServerFault
- common error objectpublic ItemValue<VCard> getVCard(java.lang.String uid) throws ServerFault
IDirectory
getVCard
in interface IDirectory
uid
- the entry uidServerFault
- common error objectpublic TaskRef deleteByEntryUid(java.lang.String entryUid) throws ServerFault
IDirectory
DirEntry
by uiddeleteByEntryUid
in interface IDirectory
ServerFault
- common error objectpublic ContainerChangelog changelog(java.lang.Long since) throws ServerFault
IDirectory
ContainerChangelog
changelog
in interface IDirectory
since
- timestamp of the first change we want to retrieveContainerChangelog
ServerFault
- common error objectpublic ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
IDirectory
ContainerChangeset
changeset
in interface IDirectory
since
- timestamp of the first change we want to retrieveContainerChangeset
ServerFault
- common error objectpublic ListResult<ItemValue<DirEntry>> search(DirEntryQuery query) throws ServerFault
IDirectory
DirEntry
s by DirEntryQuery
search
in interface IDirectory
query
- the DirEntryQuery
search parametersDirEntry
sServerFault
- common error objectpublic DirEntry findByEntryUid(java.lang.String entryUid) throws ServerFault
IDirectory
DirEntry
by uidfindByEntryUid
in interface IDirectory
entryUid
- the unique DirEntry
uidDirEntry
or null if not foundServerFault
- common error objectpublic byte[] getEntryIcon(java.lang.String entryUid) throws ServerFault
IDirectory
DirEntry
's icongetEntryIcon
in interface IDirectory
entryUid
- the unique DirEntry
uidDirEntry
ServerFault
- common error objectpublic byte[] getEntryPhoto(java.lang.String entryUid) throws ServerFault
IDirectory
DirEntry
's photogetEntryPhoto
in interface IDirectory
entryUid
- the unique DirEntry
uidDirEntry
ServerFault
- common error objectpublic byte[] getIcon(java.lang.String path) throws ServerFault
IDirectory
DirEntry
's icongetIcon
in interface IDirectory
path
- path of the directory entry (domainUid/kind/entryUid)DirEntry
ServerFault
- common error objectpublic java.util.Set<java.lang.String> getRolesForDirEntry(java.lang.String entryUid) throws ServerFault
IDirectory
DirEntry
getRolesForDirEntry
in interface IDirectory
entryUid
- the unique DirEntry
uidDirEntry
ServerFault
- common error objectpublic java.util.Set<java.lang.String> getRolesForOrgUnit(java.lang.String orgUnitUid) throws ServerFault
IDirectory
OrgUnit
getRolesForOrgUnit
in interface IDirectory
orgUnitUid
- the unique OrgUnit
's idOrgUnit
ServerFault
- common error objectpublic DirEntry getByEmail(java.lang.String email)
IDirectory
DirEntry
by its email addressgetByEmail
in interface IDirectory
email
- the DirEntry
's email addressDirEntry
or null, if not foundpublic java.util.List<ItemValue<DirEntry>> getMultiple(java.util.List<java.lang.String> id)
IDirectory
net.bluemind.core.container.model
(DirEntry
)
by their internal numerical idsgetMultiple
in interface IDirectory
id
- list of internal numerical idsDirEntry
'spublic TaskRef xfer(java.lang.String entryUid, java.lang.String serverUid) throws ServerFault
IDirectory
DirEntry
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 IDirectory
entryUid
- 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 IDirectory
ServerFault
Copyright © 2021. All Rights Reserved.