Class UserServiceImpl
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.AbstractSearchService
org.apache.syncope.core.rest.cxf.service.AbstractAnyService<UserTO,UserCR,UserUR>
org.apache.syncope.core.rest.cxf.service.UserServiceImpl
- All Implemented Interfaces:
AnyService<UserTO>,JAXRSService,UserService
public class UserServiceImpl
extends AbstractAnyService<UserTO,UserCR,UserUR>
implements UserService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UserLogicprotected final SyncopeLogicprotected final UserDAOFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
searchCondVisitorFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfoFields 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
ConstructorsConstructorDescriptionUserServiceImpl(SearchCondVisitor searchCondVisitor, UserDAO userDAO, UserLogic logic, SyncopeLogic syncopeLogic) -
Method Summary
Modifier and TypeMethodDescriptionCreates a new user.protected AnyDAO<?> protected AbstractAnyLogic<UserTO, UserCR, UserUR> protected UserURnewUpdateReq(String key) Performs a status update on given user.Updates user matching the provided key.voidverifySecurityAnswer(String username, String securityAnswer) Provides answer for the security question configured for user matching the given username, if any.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractAnyService
addUpdateOrReplaceAttr, associate, deassociate, delete, delete, doUpdate, findLastChange, read, read, read, search, updateMethods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
getSearchCondMethods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, updateMethods inherited from interface org.apache.syncope.common.rest.api.service.UserService
read, search
-
Field Details
-
userDAO
-
logic
-
syncopeLogic
-
-
Constructor Details
-
UserServiceImpl
public UserServiceImpl(SearchCondVisitor searchCondVisitor, UserDAO userDAO, UserLogic logic, SyncopeLogic syncopeLogic)
-
-
Method Details
-
getAnyDAO
- Specified by:
getAnyDAOin classAbstractAnyService<UserTO,UserCR, UserUR>
-
getAnyLogic
- Specified by:
getAnyLogicin classAbstractAnyService<UserTO,UserCR, UserUR>
-
newUpdateReq
- Specified by:
newUpdateReqin classAbstractAnyService<UserTO,UserCR, UserUR>
-
create
Description copied from interface:UserServiceCreates a new user.- Specified by:
createin interfaceUserService- Parameters:
createReq- user create request- Returns:
- Response object featuring Location header of created user as well as the user itself enriched with propagation status information
-
update
Description copied from interface:UserServiceUpdates user matching the provided key.- Specified by:
updatein interfaceUserService- Parameters:
updateReq- modification to be applied to user matching the provided key- Returns:
- Response object featuring the updated user enriched with propagation status information
-
status
Description copied from interface:UserServicePerforms a status update on given user.- Specified by:
statusin interfaceUserService- Parameters:
statusR- status update details- Returns:
- Response object featuring the updated user enriched with propagation status information
-
verifySecurityAnswer
Description copied from interface:UserServiceProvides answer for the security question configured for user matching the given username, if any. If provided answer matches the one stored for that user, check completes successfully, otherwise an error is returned.- Specified by:
verifySecurityAnswerin interfaceUserService- Parameters:
username- username for which the security answer is providedsecurityAnswer- actual answer text
-