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 SecurityQuestionDataBinder
binder
protected SecurityQuestionDAO
securityQuestionDAO
protected UserDAO
userDAO
-
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 SecurityQuestionTO
create(SecurityQuestionTO securityQuestionTO)
SecurityQuestionTO
delete(String key)
List<SecurityQuestionTO>
list()
SecurityQuestionTO
read(String key)
SecurityQuestionTO
readByUser(String username)
protected SecurityQuestionTO
resolveReference(Method method, Object... args)
SecurityQuestionTO
update(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:
resolveReference
in classAbstractLogic<SecurityQuestionTO>
- Throws:
UnresolvedReferenceException
-
-