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 uidfindItemValueByEntryUid(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 idsgetMultipleLight(List<String> id) Fetch a list ofnet.bluemind.core.container.model(DirEntry) by their internal numerical ids without decorator executing db querygetRolesForDirEntry(String entryUid) Get all the roles associated to anDirEntrygetRolesForOrgUnit(String orgUnitUid) Get all the roles associated to anOrgUnitgetRoot()Fetch the rootDirEntrysearch(DirEntryQuery query) SearchDirEntrys byDirEntryQuerynet.bluemind.core.api.ListResult<String> searchUids(DirEntryQuery query) SearchDirEntrys byDirEntryQuery
-
Method Details
-
getRoot
-
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:
net.bluemind.core.api.fault.ServerFault- common error object
-
getEntries
@POST @Path("_childs") List<DirEntry> getEntries(String path) throws net.bluemind.core.api.fault.ServerFault 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:
net.bluemind.core.api.fault.ServerFault- common error object
-
delete
@DELETE @Path("{path}") TaskRef delete(@PathParam("path") String path) throws net.bluemind.core.api.fault.ServerFault 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:
net.bluemind.core.api.fault.ServerFault- common error object
-
getVCard
-
deleteByEntryUid
-
changeset
@GET @Path("_changeset") ContainerChangeset<String> changeset(@QueryParam("since") Long since) throws net.bluemind.core.api.fault.ServerFault Get the domain'sContainerChangeset- Parameters:
since- timestamp of the first change we want to retrieve- Returns:
ContainerChangeset- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
search
@POST @Path("_search") net.bluemind.core.api.ListResult<ItemValue<DirEntry>> search(DirEntryQuery query) throws net.bluemind.core.api.fault.ServerFault SearchDirEntrys byDirEntryQuery- Parameters:
query- theDirEntryQuerysearch parameters- Returns:
- List of matching
DirEntrys - Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
searchUids
@POST @Path("_searchUids") net.bluemind.core.api.ListResult<String> searchUids(DirEntryQuery query) throws net.bluemind.core.api.fault.ServerFault SearchDirEntrys byDirEntryQuery- Parameters:
query- theDirEntryQuerysearch parameters- Returns:
- List of matching
DirEntrys uids - Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
findByEntryUid
-
findItemValueByEntryUid
-
getEntryIcon
-
getEntryPhoto
-
getIcon
@GET @Path("_icon/{path}") @Produces("image/png") byte[] getIcon(@PathParam("path") String path) throws net.bluemind.core.api.fault.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:
net.bluemind.core.api.fault.ServerFault- common error object
-
getRolesForDirEntry
-
getRolesForOrgUnit
-
getByRoles
-
getByEmail
-
getMultiple
-
getMultipleLight
-