Class UserSelfServiceImpl
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.UserSelfServiceImpl
- All Implemented Interfaces:
JAXRSService
,UserSelfService
-
Field Summary
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compliance
(ComplianceQuery query) Checks compliance of the given username and / or password with applicable policies.void
confirmPasswordReset
(String token, String password) Reset the password value for the user matching the provided token, if available and still valid.Self-registration for new user.delete()
Self-deletes user.mustChangePassword
(PasswordPatch password) Changes own password when change was forced by an administrator.read()
Returns the user making the service call.void
requestPasswordReset
(String username, String securityAnswer) Provides answer for the security question configured for user matching the given username, if any.Self-perform a status update.Self-updates user.Self-updates user.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
-
Field Details
-
logic
-
syncopeLogic
-
-
Constructor Details
-
UserSelfServiceImpl
-
-
Method Details
-
create
Description copied from interface:UserSelfService
Self-registration for new user.- Specified by:
create
in interfaceUserSelfService
- Parameters:
createReq
- user to be created- Returns:
- Response object featuring Location header of self-registered user as well as the user itself enriched with propagation status information
-
read
Description copied from interface:UserSelfService
Returns the user making the service call.- Specified by:
read
in interfaceUserSelfService
- Returns:
- calling user data, including own UUID, entitlements and delegations
-
update
Description copied from interface:UserSelfService
Self-updates user.- Specified by:
update
in interfaceUserSelfService
- Parameters:
updateReq
- modification to be applied to self- Returns:
- Response object featuring the updated user
-
update
Description copied from interface:UserSelfService
Self-updates user.- Specified by:
update
in interfaceUserSelfService
- Parameters:
user
- complete update- Returns:
- Response object featuring the updated user
-
status
Description copied from interface:UserSelfService
Self-perform a status update.- Specified by:
status
in interfaceUserSelfService
- Parameters:
statusR
- status update details- Returns:
- Response object featuring the updated user enriched with propagation status information
-
delete
Description copied from interface:UserSelfService
Self-deletes user.- Specified by:
delete
in interfaceUserSelfService
- Returns:
- Response object featuring the deleted user
-
mustChangePassword
Description copied from interface:UserSelfService
Changes own password when change was forced by an administrator.- Specified by:
mustChangePassword
in interfaceUserSelfService
- Parameters:
password
- the password value to update- Returns:
- Response object featuring the updated user
-
compliance
Description copied from interface:UserSelfService
Checks compliance of the given username and / or password with applicable policies.- Specified by:
compliance
in interfaceUserSelfService
- Parameters:
query
- compliance query
-
requestPasswordReset
Description copied from interface:UserSelfService
Provides answer for the security question configured for user matching the given username, if any. If provided answer matches the one stored for that user, a password reset token is internally generated, otherwise an error is returned.- Specified by:
requestPasswordReset
in interfaceUserSelfService
- Parameters:
username
- username for which the security answer is providedsecurityAnswer
- actual answer text
-
confirmPasswordReset
Description copied from interface:UserSelfService
Reset the password value for the user matching the provided token, if available and still valid. If the token actually matches one of users, and if it is still valid at the time of submission, the matching user's password value is set as provided. The new password value will need anyway to comply with all relevant password policies.- Specified by:
confirmPasswordReset
in interfaceUserSelfService
- Parameters:
token
- password reset tokenpassword
- new password to be set
-