Class SecurityQuestionServiceImpl
- java.lang.Object
-
- org.apache.syncope.core.rest.cxf.service.AbstractService
-
- org.apache.syncope.core.rest.cxf.service.SecurityQuestionServiceImpl
-
- All Implemented Interfaces:
JAXRSService,SecurityQuestionService
@Service public class SecurityQuestionServiceImpl extends AbstractService implements SecurityQuestionService
-
-
Field Summary
Fields Modifier and Type Field Description protected SecurityQuestionLogiclogic-
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 SecurityQuestionServiceImpl(SecurityQuestionLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(SecurityQuestionTO securityQuestionTO)Creates a new security question.voiddelete(String key)Deletes the security question matching the provided key.List<SecurityQuestionTO>list()Returns a list of all security questions.SecurityQuestionTOread(String key)Returns security question with matching key.SecurityQuestionTOreadByUser(String username)Ask for security question configured for the user matching the given username, if any.voidupdate(SecurityQuestionTO securityQuestionTO)Updates the security question matching the provided key.-
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
-
-
-
Field Detail
-
logic
protected final SecurityQuestionLogic logic
-
-
Constructor Detail
-
SecurityQuestionServiceImpl
public SecurityQuestionServiceImpl(SecurityQuestionLogic logic)
-
-
Method Detail
-
list
public List<SecurityQuestionTO> list()
Description copied from interface:SecurityQuestionServiceReturns a list of all security questions.- Specified by:
listin interfaceSecurityQuestionService- Returns:
- list of all security questions
-
read
public SecurityQuestionTO read(String key)
Description copied from interface:SecurityQuestionServiceReturns security question with matching key.- Specified by:
readin interfaceSecurityQuestionService- Parameters:
key- security question key to be read- Returns:
- security question with matching key
-
create
public javax.ws.rs.core.Response create(SecurityQuestionTO securityQuestionTO)
Description copied from interface:SecurityQuestionServiceCreates a new security question.- Specified by:
createin interfaceSecurityQuestionService- Parameters:
securityQuestionTO- security question to be created- Returns:
- Response object featuring Location header of created security question
-
update
public void update(SecurityQuestionTO securityQuestionTO)
Description copied from interface:SecurityQuestionServiceUpdates the security question matching the provided key.- Specified by:
updatein interfaceSecurityQuestionService- Parameters:
securityQuestionTO- security question to be stored
-
delete
public void delete(String key)
Description copied from interface:SecurityQuestionServiceDeletes the security question matching the provided key.- Specified by:
deletein interfaceSecurityQuestionService- Parameters:
key- security question key to be deleted
-
readByUser
public SecurityQuestionTO readByUser(String username)
Description copied from interface:SecurityQuestionServiceAsk for security question configured for the user matching the given username, if any.- Specified by:
readByUserin interfaceSecurityQuestionService- Parameters:
username- username for which the security question is requested- Returns:
- security question, if configured for the user matching the given username
-
-