@HTTPService(name="user") public class UserService extends java.lang.Object
Constructor and Description |
---|
UserService() |
Modifier and Type | Method and Description |
---|---|
void |
deleteExternalAccountConnection(AuthenticationParameter authenticatedUser,
StringParameter serviceTypes)
This method can be used to remove external account connection for the authenticated user.
|
Response |
getExternalAccountConnections(AuthenticationParameter authenticatedUser,
StringParameter serviceTypes)
This method can be used to retrieve all external account connections known by the system for the authenticated user.
|
Response |
getUserDetails(AuthenticationParameter authenticatedUser,
LongParameter userIdFilter)
This method can be used to retrieve details for users.
|
Response |
register(InputStreamParameter xml)
The request is to be sent in the body of POST method.
|
void |
unregister(AuthenticationParameter authenticatedUser)
This method will immediately revoke user login permissions for the authenticated user and schedule the removal of all content owned by the user.
|
public UserService()
@HTTPServiceMethod(name="register", acceptedMethods="POST") public Response register(@HTTPMethodParameter(name="body",bodyParameter=true) InputStreamParameter xml)
xml
- Details of the new user. See UserCore.Registration
@HTTPServiceMethod(name="unregister", acceptedMethods="POST") public void unregister(@HTTPAuthenticationParameter AuthenticationParameter authenticatedUser)
authenticatedUser
- @HTTPServiceMethod(name="getExternalAccountConnections", acceptedMethods="GET") public Response getExternalAccountConnections(@HTTPAuthenticationParameter AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="service_type",required=false) StringParameter serviceTypes)
authenticatedUser
- serviceTypes
- optional service type filter ExternalAccountConnection.UserServiceType
ExternalAccountConnectionList
@HTTPServiceMethod(name="deleteExternalAccountConnection", acceptedMethods="DELETE") public void deleteExternalAccountConnection(@HTTPAuthenticationParameter AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="service_type") StringParameter serviceTypes)
authenticatedUser
- serviceTypes
- the service to remove ExternalAccountConnection.UserServiceType
@HTTPServiceMethod(name="getUserDetails", acceptedMethods="GET") public Response getUserDetails(@HTTPAuthenticationParameter AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="user_id",required=false) LongParameter userIdFilter)
authenticatedUser
- userIdFilter
- If parameter is missing, details for the authenticated user will be returned. Normal users only have permissions to their own accounts, an attempt to access details for other users will result in error.UserIdentityList
Copyright © 2015 Tampere University of Technology, Pori Department.