@Path(value="/users/{domainUid}")
public interface IUser
extends IDirEntryPhotoSupport, IDirEntryExtIdSupport, IRestoreDirEntryWithMailboxSupport<User>, IGroupMember
User API. {domainUid} corresponds to the fully qualified domain name| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
allUids()
Retrieve all existing
User uids |
ItemValue<User> |
byEmail(java.lang.String email)
Fetches a
User by its email |
ItemValue<User> |
byExtId(java.lang.String extId)
Fetches a
User by its external id |
ItemValue<User> |
byLogin(java.lang.String login)
Fetches a
User by its login |
void |
create(java.lang.String uid,
User user)
Creates a new
User with the given uid. |
void |
createWithExtId(java.lang.String uid,
java.lang.String extId,
User user)
Creates a new
User with the given uid. |
TaskRef |
delete(java.lang.String uid)
Deletes a
User. |
ItemValue<User> |
getComplete(java.lang.String uid)
Fetches a
User by its unique id |
byte[] |
getIcon(java.lang.String uid)
Retrieves a
User's icon/avatar |
java.util.Set<java.lang.String> |
getResolvedRoles(java.lang.String uid)
Retrieves a list of all roles owned by a
User. |
java.util.Set<java.lang.String> |
getRoles(java.lang.String uid)
Retrieves a list of all roles directly owned by a
User |
java.util.Set<java.lang.String> |
getUsersWithRoles(java.util.List<java.lang.String> roles)
Deprecated.
This method may return group entities as well. Use
IDirectory.getByRoles(List)
instead |
VCard |
getVCard(java.lang.String uid)
|
void |
setPassword(java.lang.String uid,
ChangePassword password)
Update a
User's password |
void |
setRoles(java.lang.String uid,
java.util.Set<java.lang.String> roles)
Sets the
User's roles. |
void |
update(java.lang.String uid,
User user)
Modifies an existing
User |
void |
updateAccountType(java.lang.String uid,
BaseDirEntry.AccountType accountType)
Modifies a
User's net.bluemind.directory.api.AccountType |
void |
updateVCard(java.lang.String uid,
VCard userVCard)
Updates a
User's contact informations |
deletePhoto, getPhoto, setPhotosetExtIdget, restorememberOf, memberOfGroups@PUT
@Path(value="{uid}")
void create(@PathParam(value="uid")
java.lang.String uid,
User user)
throws ServerFault
User with the given uid. Also creates default calendar,
todo elements and the User's mailbox if routing is internaluid - the user's unique iduser - user dataServerFault - standard error object (unchecked exception)@PUT
@Path(value="{uid}/{extid}/createwithextid")
void createWithExtId(@PathParam(value="uid")
java.lang.String uid,
@PathParam(value="extid")
java.lang.String extId,
User user)
throws ServerFault
uid - the user's unique idextId - an external id. Usually used to link the user to an external
systemuser - user dataServerFault - standard error object@POST
@Path(value="{uid}")
void update(@PathParam(value="uid")
java.lang.String uid,
User user)
throws ServerFault
Useruid - the user's unique iduser - the new user valuesServerFault - standard error object (unchecked exception)@GET
@Path(value="{uid}/complete")
ItemValue<User> getComplete(@PathParam(value="uid")
java.lang.String uid)
throws ServerFault
User by its unique idgetComplete in interface IRestoreDirEntryWithMailboxSupport<User>uid - the user's unique idServerFault - standard error object (unchecked exception)@GET
@Path(value="byEmail/{email}")
ItemValue<User> byEmail(@PathParam(value="email")
java.lang.String email)
throws ServerFault
User by its emailemail - the user's emailServerFault - standard error object (unchecked exception)@GET
@Path(value="byExtId/{extid}")
ItemValue<User> byExtId(@PathParam(value="extid")
java.lang.String extId)
throws ServerFault
User by its external idextId - the user's external idServerFault - standard error object (unchecked exception)@GET
@Path(value="byLogin/{login}")
ItemValue<User> byLogin(@PathParam(value="login")
java.lang.String login)
throws ServerFault
User by its loginlogin - the user's loginServerFault - standard error object (unchecked exception)@DELETE
@Path(value="{uid}")
TaskRef delete(@PathParam(value="uid")
java.lang.String uid)
throws ServerFault
User. Also deletes all user related objects and the user's
mailboxdelete in interface IRestoreDirEntryWithMailboxSupport<User>uid - the user's unique idServerFault - standard error object (unchecked exception)@GET
@Path(value="_alluids")
java.util.List<java.lang.String> allUids()
throws ServerFault
User uidsUser uidsServerFault - standard error object (unchecked exception)@POST
@Path(value="{uid}/roles")
void setRoles(@PathParam(value="uid")
java.lang.String uid,
java.util.Set<java.lang.String> roles)
throws ServerFault
User's roles. Replaces all existing role assignmentsuid - the user's unique idroles - a set of roles to be assigned to the userServerFault - standard error object (unchecked exception)@Deprecated
@POST
@Path(value="_roleusers")
java.util.Set<java.lang.String> getUsersWithRoles(java.util.List<java.lang.String> roles)
throws ServerFault
IDirectory.getByRoles(List)
insteadUsers owning all of the provided rolesroles - a list of rolesServerFault - standard error object (unchecked exception)@GET
@Path(value="{uid}/roles_resolved")
java.util.Set<java.lang.String> getResolvedRoles(@PathParam(value="uid")
java.lang.String uid)
throws ServerFault
User. Also includes roles
indirectly assigned to the User, for example by its
Group membershipsuid - the user's unique idServerFault - standard error object (unchecked exception)@GET
@Path(value="{uid}/roles")
java.util.Set<java.lang.String> getRoles(@PathParam(value="uid")
java.lang.String uid)
throws ServerFault
Userthe - user's unique idServerFault - standard error object (unchecked exception)@POST
@Path(value="{uid}/password_")
void setPassword(@PathParam(value="uid")
java.lang.String uid,
ChangePassword password)
throws ServerFault
User's passworduid - user's unique idpassword - object containing the current and new passwordServerFault - standard error object (unchecked exception)@GET
@Path(value="{uid}/icon")
@Produces(value="image/png")
byte[] getIcon(@PathParam(value="uid")
java.lang.String uid)
throws ServerFault
User's icon/avatargetIcon in interface IDirEntryPhotoSupportuid - user's unique idServerFault - standard error object (unchecked exception)@POST
@Path(value="{uid}/vcard")
void updateVCard(@PathParam(value="uid")
java.lang.String uid,
VCard userVCard)
throws ServerFault
User's contact informationsuid - user's unique iduserVCard - the new contact informationsServerFault - standard error object (unchecked exception)@GET
@Path(value="{uid}/vcard")
VCard getVCard(@PathParam(value="uid")
java.lang.String uid)
throws ServerFault
uid - user's unique idServerFault - standard error object (unchecked exception)@POST
@Path(value="_updateAccountType/{uid}")
void updateAccountType(@PathParam(value="uid")
java.lang.String uid,
BaseDirEntry.AccountType accountType)
throws ServerFault
User's net.bluemind.directory.api.AccountTypeuid - user's unique idaccountType - the new account typeServerFault - standard error object (unchecked exception)Copyright © 2024. All Rights Reserved.