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
 
 @Service public class UserSelfServiceImpl extends AbstractService implements UserSelfService 
- 
- 
Field SummaryFields Modifier and Type Field Description protected UserLogiclogicprotected SyncopeLogicsyncopeLogic- 
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractServiceLOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
 - 
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSServiceCRLF, 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 SummaryConstructors Constructor Description UserSelfServiceImpl(UserLogic logic, SyncopeLogic syncopeLogic)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompliance(ComplianceQuery query)Checks compliance of the given username and / or password with applicable policies.voidconfirmPasswordReset(String token, String password)Reset the password value for the user matching the provided token, if available and still valid.javax.ws.rs.core.Responsecreate(UserCR createReq)Self-registration for new user.javax.ws.rs.core.Responsedelete()Self-deletes user.javax.ws.rs.core.ResponsemustChangePassword(PasswordPatch password)Changes own password when change was forced by an administrator.javax.ws.rs.core.Responseread()Returns the user making the service call.voidrequestPasswordReset(String username, String securityAnswer)Provides answer for the security question configured for user matching the given username, if any.javax.ws.rs.core.Responsestatus(StatusR statusR)Self-perform a status update.javax.ws.rs.core.Responseupdate(UserUR updateReq)Self-updates user.javax.ws.rs.core.Responseupdate(UserTO user)Self-updates user.- 
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractServiceapplyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
 
- 
 
- 
- 
- 
Field Detail- 
logicprotected final UserLogic logic 
 - 
syncopeLogicprotected final SyncopeLogic syncopeLogic 
 
- 
 - 
Constructor Detail- 
UserSelfServiceImplpublic UserSelfServiceImpl(UserLogic logic, SyncopeLogic syncopeLogic) 
 
- 
 - 
Method Detail- 
createpublic javax.ws.rs.core.Response create(UserCR createReq) Description copied from interface:UserSelfServiceSelf-registration for new user.- Specified by:
- createin interface- UserSelfService
- 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
 
 - 
readpublic javax.ws.rs.core.Response read() Description copied from interface:UserSelfServiceReturns the user making the service call.- Specified by:
- readin interface- UserSelfService
- Returns:
- calling user data, including own UUID, entitlements and delegations
 
 - 
updatepublic javax.ws.rs.core.Response update(UserUR updateReq) Description copied from interface:UserSelfServiceSelf-updates user.- Specified by:
- updatein interface- UserSelfService
- Parameters:
- updateReq- modification to be applied to self
- Returns:
- Response object featuring the updated user
 
 - 
updatepublic javax.ws.rs.core.Response update(UserTO user) Description copied from interface:UserSelfServiceSelf-updates user.- Specified by:
- updatein interface- UserSelfService
- Parameters:
- user- complete update
- Returns:
- Response object featuring the updated user
 
 - 
statuspublic javax.ws.rs.core.Response status(StatusR statusR) Description copied from interface:UserSelfServiceSelf-perform a status update.- Specified by:
- statusin interface- UserSelfService
- Parameters:
- statusR- status update details
- Returns:
- Response object featuring the updated user enriched with propagation status information
 
 - 
deletepublic javax.ws.rs.core.Response delete() Description copied from interface:UserSelfServiceSelf-deletes user.- Specified by:
- deletein interface- UserSelfService
- Returns:
- Response object featuring the deleted user
 
 - 
mustChangePasswordpublic javax.ws.rs.core.Response mustChangePassword(PasswordPatch password) Description copied from interface:UserSelfServiceChanges own password when change was forced by an administrator.- Specified by:
- mustChangePasswordin interface- UserSelfService
- Parameters:
- password- the password value to update
- Returns:
- Response object featuring the updated user
 
 - 
compliancepublic void compliance(ComplianceQuery query) Description copied from interface:UserSelfServiceChecks compliance of the given username and / or password with applicable policies.- Specified by:
- compliancein interface- UserSelfService
- Parameters:
- query- compliance query
 
 - 
requestPasswordResetpublic void requestPasswordReset(String username, String securityAnswer) Description copied from interface:UserSelfServiceProvides 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:
- requestPasswordResetin interface- UserSelfService
- Parameters:
- username- username for which the security answer is provided
- securityAnswer- actual answer text
 
 - 
confirmPasswordResetpublic void confirmPasswordReset(String token, String password) Description copied from interface:UserSelfServiceReset 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:
- confirmPasswordResetin interface- UserSelfService
- Parameters:
- token- password reset token
- password- new password to be set
 
 
- 
 
-