Package org.apache.syncope.core.logic
Class SecurityQuestionLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<SecurityQuestionTO>
-
- org.apache.syncope.core.logic.SecurityQuestionLogic
-
public class SecurityQuestionLogic extends AbstractTransactionalLogic<SecurityQuestionTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected SecurityQuestionDataBinderbinderprotected SecurityQuestionDAOsecurityQuestionDAOprotected UserDAOuserDAO-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description SecurityQuestionLogic(SecurityQuestionDAO securityQuestionDAO, UserDAO userDAO, SecurityQuestionDataBinder binder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityQuestionTOcreate(SecurityQuestionTO securityQuestionTO)SecurityQuestionTOdelete(String key)List<SecurityQuestionTO>list()SecurityQuestionTOread(String key)SecurityQuestionTOreadByUser(String username)protected SecurityQuestionTOresolveReference(Method method, Object... args)SecurityQuestionTOupdate(SecurityQuestionTO securityQuestionTO)-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
securityQuestionDAO
protected final SecurityQuestionDAO securityQuestionDAO
-
userDAO
protected final UserDAO userDAO
-
binder
protected final SecurityQuestionDataBinder binder
-
-
Constructor Detail
-
SecurityQuestionLogic
public SecurityQuestionLogic(SecurityQuestionDAO securityQuestionDAO, UserDAO userDAO, SecurityQuestionDataBinder binder)
-
-
Method Detail
-
list
@PreAuthorize("isAuthenticated()") @Transactional(readOnly=true) public List<SecurityQuestionTO> list()
-
read
@PreAuthorize("hasRole(\'SECURITY_QUESTION_READ\')") @Transactional(readOnly=true) public SecurityQuestionTO read(String key)
-
create
@PreAuthorize("hasRole(\'SECURITY_QUESTION_CREATE\')") public SecurityQuestionTO create(SecurityQuestionTO securityQuestionTO)
-
update
@PreAuthorize("hasRole(\'SECURITY_QUESTION_UPDATE\')") public SecurityQuestionTO update(SecurityQuestionTO securityQuestionTO)
-
delete
@PreAuthorize("hasRole(\'SECURITY_QUESTION_DELETE\')") public SecurityQuestionTO delete(String key)
-
readByUser
@PreAuthorize("hasRole(\'ANONYMOUS\')") public SecurityQuestionTO readByUser(String username)
-
resolveReference
protected SecurityQuestionTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReferencein classAbstractLogic<SecurityQuestionTO>- Throws:
UnresolvedReferenceException
-
-