Package net.bluemind.directory.api
Interface IDirectory
@Path("/directory/{domain}")
public interface IDirectory
-
Method Summary
Modifier and TypeMethodDescriptionGet the domain'sContainerChangesetDeleteDirEntryby pathdeleteByEntryUid(String entryUid) Delete aDirEntryby uidfindByEntryUid(String entryUid) GetDirEntryby uidgetByEmail(String email) Fetch aDirEntryby its email addressgetByRoles(List<String> roles) getEntries(String path) FetchDirEntrys by their pathFetchDirEntryby its pathbyte[]getEntryIcon(String entryUid) Get aDirEntry's iconbyte[]getEntryPhoto(String entryUid) Get aDirEntry's photobyte[]Get aDirEntry's icongetMultiple(List<String> id) Fetch a list ofnet.bluemind.core.container.model(DirEntry) by their internal numerical idsgetRolesForDirEntry(String entryUid) Get all the roles associated to anDirEntrygetRolesForOrgUnit(String orgUnitUid) Get all the roles associated to anOrgUnitgetRoot()Fetch the rootDirEntrysearch(DirEntryQuery query) SearchDirEntrys byDirEntryQuery
-
Method Details
-
getRoot
Fetch the rootDirEntry- Returns:
DirEntry- Throws:
ServerFault- common error object
-
getEntry
FetchDirEntryby its path- Parameters:
path- path of the directory entry
domainUid/kind/entryUid to find a particular entry
domainUid/kind to find all entries of a particular kind
domainUid to find all entries of a particular domain- Returns:
DirEntryor null if not found- Throws:
ServerFault- common error object
-
getEntries
FetchDirEntrys by their path- Parameters:
path- path of the directory entries
domainUid/kind to find all entries of a particular kind
domainUid to find all entries of a particular domain- Returns:
DirEntrys- Throws:
ServerFault- common error object
-
delete
DeleteDirEntryby path- Parameters:
path- path of the directory entry (domainUid/kind/entryUid)
This action will fail if a shorter form of the path (like domain or domain/kind) is used and returns multiple entries.- Throws:
ServerFault- common error object
-
getVCard
@GET @Path("{uid}/_vcard") ItemValue<VCard> getVCard(@PathParam("uid") String uid) throws ServerFault - Parameters:
uid- the entry uid- Throws:
ServerFault- common error object
-
deleteByEntryUid
@DELETE @Path("_byentryuid/{entryUid}") TaskRef deleteByEntryUid(@PathParam("entryUid") String entryUid) throws ServerFault Delete aDirEntryby uid- Parameters:
uid- the entry uid- Throws:
ServerFault- common error object
-
changeset
@GET @Path("_changeset") ContainerChangeset<String> changeset(@QueryParam("since") Long since) throws ServerFault Get the domain'sContainerChangeset- Parameters:
since- timestamp of the first change we want to retrieve- Returns:
ContainerChangeset- Throws:
ServerFault- common error object
-
search
@POST @Path("_search") ListResult<ItemValue<DirEntry>> search(DirEntryQuery query) throws ServerFault SearchDirEntrys byDirEntryQuery- Parameters:
query- theDirEntryQuerysearch parameters- Returns:
- List of matching
DirEntrys - Throws:
ServerFault- common error object
-
findByEntryUid
@GET @Path("entry-uid/{entryUid}") DirEntry findByEntryUid(@PathParam("entryUid") String entryUid) throws ServerFault GetDirEntryby uid- Parameters:
entryUid- the uniqueDirEntryuid- Returns:
- matching
DirEntryor null if not found - Throws:
ServerFault- common error object
-
getEntryIcon
@GET @Path("entry-uid/{entryUid}/icon") @Produces("image/png") byte[] getEntryIcon(@PathParam("entryUid") String entryUid) throws ServerFault Get aDirEntry's icon- Parameters:
entryUid- the uniqueDirEntryuid- Returns:
- the image data in PNG format or null, if no icon is associated to the
DirEntry - Throws:
ServerFault- common error object
-
getEntryPhoto
@GET @Path("entry-uid/{entryUid}/photo") @Produces("image/png") byte[] getEntryPhoto(@PathParam("entryUid") String entryUid) throws ServerFault Get aDirEntry's photo- Parameters:
entryUid- the uniqueDirEntryuid- Returns:
- the image data in PNG format or null, if no photo is associated to
the
DirEntry - Throws:
ServerFault- common error object
-
getIcon
@GET @Path("_icon/{path}") @Produces("image/png") byte[] getIcon(@PathParam("path") String path) throws ServerFault Get aDirEntry's icon- Parameters:
path- path of the directory entry (domainUid/kind/entryUid)
This action will fail if a shorter form of the path (like domain or domain/kind) is used and returns multiple entries.- Returns:
- the image data in PNG format or null, if no icon is associated to the
DirEntry - Throws:
ServerFault- common error object
-
getRolesForDirEntry
@GET @Path("entry-uid/{entryUid}/rolesfor_") Set<String> getRolesForDirEntry(@PathParam("entryUid") String entryUid) throws ServerFault Get all the roles associated to anDirEntry- Parameters:
entryUid- the uniqueDirEntryuid- Returns:
- a set containing all roles associated to a
DirEntry - Throws:
ServerFault- common error object
-
getRolesForOrgUnit
@GET @Path("ou-uid/{ouUid}/rolesfor_") Set<String> getRolesForOrgUnit(@PathParam("ouUid") String orgUnitUid) throws ServerFault Get all the roles associated to anOrgUnit- Parameters:
orgUnitUid- the uniqueOrgUnit's id- Returns:
- a set containing all roles associated to an
OrgUnit - Throws:
ServerFault- common error object
-
getByRoles
- Parameters:
roles-- Returns:
- Throws:
ServerFault
-
getByEmail
Fetch aDirEntryby its email address -
getMultiple
Fetch a list ofnet.bluemind.core.container.model(DirEntry) by their internal numerical ids- Parameters:
id- list of internal numerical ids- Returns:
- list of matching
DirEntry's
-