@Component public class ApplicationLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ApplicationLogic() |
Modifier and Type | Method and Description |
---|---|
ApplicationTO |
create(ApplicationTO applicationTO) |
ApplicationTO |
delete(String key) |
List<ApplicationTO> |
list() |
ApplicationTO |
read(String key) |
PrivilegeTO |
readPrivilege(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected ApplicationTO |
resolveReference(Method method,
Object... args) |
ApplicationTO |
update(ApplicationTO applicationTO) |
@PreAuthorize(value="hasRole(\'APPLICATION_READ\')") @Transactional(readOnly=true) public ApplicationTO read(String key)
@PreAuthorize(value="hasRole(\'APPLICATION_READ\')") @Transactional(readOnly=true) public PrivilegeTO readPrivilege(String key)
@PreAuthorize(value="hasRole(\'APPLICATION_LIST\')") @Transactional(readOnly=true) public List<ApplicationTO> list()
@PreAuthorize(value="hasRole(\'APPLICATION_CREATE\')") public ApplicationTO create(ApplicationTO applicationTO)
@PreAuthorize(value="hasRole(\'APPLICATION_UPDATE\')") public ApplicationTO update(ApplicationTO applicationTO)
@PreAuthorize(value="hasRole(\'APPLICATION_DELETE\')") public ApplicationTO delete(String key)
protected ApplicationTO 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.