@Component public class SecurityQuestionLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
SecurityQuestionLogic() |
Modifier and Type | Method and Description |
---|---|
SecurityQuestionTO |
create(SecurityQuestionTO securityQuestionTO) |
SecurityQuestionTO |
delete(String key) |
List<SecurityQuestionTO> |
list() |
SecurityQuestionTO |
read(String key) |
SecurityQuestionTO |
readByUser(String username) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected SecurityQuestionTO |
resolveReference(Method method,
Object... args) |
SecurityQuestionTO |
update(SecurityQuestionTO securityQuestionTO) |
@PreAuthorize(value="isAuthenticated()") @Transactional(readOnly=true) public List<SecurityQuestionTO> list()
@PreAuthorize(value="hasRole(\'SECURITY_QUESTION_READ\')") @Transactional(readOnly=true) public SecurityQuestionTO read(String key)
@PreAuthorize(value="hasRole(\'SECURITY_QUESTION_CREATE\')") public SecurityQuestionTO create(SecurityQuestionTO securityQuestionTO)
@PreAuthorize(value="hasRole(\'SECURITY_QUESTION_UPDATE\')") public SecurityQuestionTO update(SecurityQuestionTO securityQuestionTO)
@PreAuthorize(value="hasRole(\'SECURITY_QUESTION_DELETE\')") public SecurityQuestionTO delete(String key)
@PreAuthorize(value="isAnonymous() or hasRole(\'ANONYMOUS\')") public SecurityQuestionTO readByUser(String username)
protected SecurityQuestionTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.