Package net.bluemind.externaluser.api
Interface IExternalUser
- All Superinterfaces:
IGroupMember
,IRestoreCrudSupport<ExternalUser>
,IRestoreItemCrudSupport<ExternalUser>
,IRestoreSupport<ExternalUser>
@Path("/externaluser/{domainUid}")
public interface IExternalUser
extends IRestoreItemCrudSupport<ExternalUser>, IGroupMember
ExternalUser API. The main use case for this kind of
DirEntry
entity is to add an external
email to a group.-
Method Summary
Modifier and TypeMethodDescriptionFetch aExternalUser
by its external id.void
create
(String uid, ExternalUser externalUser) Creates a newExternalUser
.void
createWithExtId
(String uid, String extId, ExternalUser externalUser) Creates a newExternalUser
with the given uid.void
Delete an external user.getComplete
(String uid) Fetch aExternalUser
by its uid.void
update
(String uid, ExternalUser externalUser) Modify an existing external user.Methods inherited from interface net.bluemind.group.api.IGroupMember
memberOf, memberOfGroups
Methods inherited from interface net.bluemind.core.container.api.IRestoreSupport
get, restore
-
Method Details
-
create
@PUT @Path("{uid}") void create(@PathParam("uid") String uid, ExternalUser externalUser) throws ServerFault Creates a newExternalUser
.- Parameters:
uid
-ExternalUser
's unique idexternalUser
-ExternalUser
- Throws:
ServerFault
- standard error object
-
createWithExtId
@PUT @Path("{uid}/{extid}/createwithextid") void createWithExtId(@PathParam("uid") String uid, @PathParam("extid") String extId, ExternalUser externalUser) throws ServerFault Creates a newExternalUser
with the given uid. Associates an external id to theExternalUser
.- Parameters:
uid
- theExternalUser
's unique idextId
- an external id. Usually used to link theExternalUser
to an external systemexternalUser
-ExternalUser
- Throws:
ServerFault
- standard error object
-
update
@POST @Path("{uid}") void update(@PathParam("uid") String uid, ExternalUser externalUser) throws ServerFault Modify an existing external user.- Parameters:
uid
-ExternalUser
's unique idexternalUser
- updatedExternalUser
- Throws:
ServerFault
- standard error object
-
delete
Delete an external user.- Specified by:
delete
in interfaceIRestoreCrudSupport<ExternalUser>
- Parameters:
uid
-ExternalUser
's unique id- Throws:
ServerFault
-
getComplete
@GET @Path("{uid}/complete") ItemValue<ExternalUser> getComplete(@PathParam("uid") String uid) throws ServerFault Fetch aExternalUser
by its uid.- Specified by:
getComplete
in interfaceIRestoreItemCrudSupport<ExternalUser>
- Parameters:
uid
-ExternalUser
's unique id- Returns:
ExternalUser
invalid reference
net.bluemind.core.container.api.ItemValue
ExternalUser
does not exist- Throws:
ServerFault
- standard error object
-
byExtId
@GET @Path("byExtId/{extid}") ItemValue<ExternalUser> byExtId(@PathParam("extid") String extId) throws ServerFault Fetch aExternalUser
by its external id.- Parameters:
extId
- the external user's external id. Usually used to link theExternalUser
to an external system- Returns:
ExternalUser
invalid reference
net.bluemind.core.container.api.ItemValue
ExternalUser
does not exist- Throws:
ServerFault
- standard error object (unchecked exception)
-