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
@Service public class UserServiceImpl extends AbstractAnyService<UserTO,UserCR,UserUR> implements UserService
-
-
Field Summary
Fields Modifier and Type Field Description protected UserLogiclogicprotected UserDAOuserDAO-
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
Constructors Constructor Description UserServiceImpl(SearchCondVisitor searchCondVisitor, UserDAO userDAO, UserLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(UserCR createReq)Creates a new user.protected AnyDAO<?>getAnyDAO()protected AbstractAnyLogic<UserTO,UserCR,UserUR>getAnyLogic()protected UserURnewUpdateReq(String key)javax.ws.rs.core.Responsestatus(StatusR statusR)Performs a status update on given user.javax.ws.rs.core.Responseupdate(UserUR updateReq)Updates user matching the provided key.-
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, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
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
-
-
-
-
Constructor Detail
-
UserServiceImpl
public UserServiceImpl(SearchCondVisitor searchCondVisitor, UserDAO userDAO, UserLogic logic)
-
-
Method Detail
-
getAnyDAO
protected AnyDAO<?> getAnyDAO()
- Specified by:
getAnyDAOin classAbstractAnyService<UserTO,UserCR,UserUR>
-
getAnyLogic
protected AbstractAnyLogic<UserTO,UserCR,UserUR> getAnyLogic()
- Specified by:
getAnyLogicin classAbstractAnyService<UserTO,UserCR,UserUR>
-
newUpdateReq
protected UserUR newUpdateReq(String key)
- Specified by:
newUpdateReqin classAbstractAnyService<UserTO,UserCR,UserUR>
-
create
public javax.ws.rs.core.Response create(UserCR createReq)
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
public javax.ws.rs.core.Response update(UserUR updateReq)
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
public javax.ws.rs.core.Response status(StatusR statusR)
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
-
-