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 UserLogic
protected final SyncopeLogic
protected final UserDAO
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
searchCondVisitor
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
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 UserUR
newUpdateReq
(String key) Performs a status update on given user.Updates user matching the provided key.void
verifySecurityAnswer
(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, update
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
getSearchCond
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, update
Methods 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:
getAnyDAO
in classAbstractAnyService<UserTO,
UserCR, UserUR>
-
getAnyLogic
- Specified by:
getAnyLogic
in classAbstractAnyService<UserTO,
UserCR, UserUR>
-
newUpdateReq
- Specified by:
newUpdateReq
in classAbstractAnyService<UserTO,
UserCR, UserUR>
-
create
Description copied from interface:UserService
Creates a new user.- Specified by:
create
in 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:UserService
Updates user matching the provided key.- Specified by:
update
in 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:UserService
Performs a status update on given user.- Specified by:
status
in interfaceUserService
- Parameters:
statusR
- status update details- Returns:
- Response object featuring the updated user enriched with propagation status information
-
verifySecurityAnswer
Description copied from interface:UserService
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, check completes successfully, otherwise an error is returned.- Specified by:
verifySecurityAnswer
in interfaceUserService
- Parameters:
username
- username for which the security answer is providedsecurityAnswer
- actual answer text
-