@Component public class AnyTypeLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
AnyTypeLogic() |
Modifier and Type | Method and Description |
---|---|
AnyTypeTO |
create(AnyTypeTO anyTypeTO) |
AnyTypeTO |
delete(String key) |
List<AnyTypeTO> |
list() |
AnyTypeTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected AnyTypeTO |
resolveReference(Method method,
Object... args) |
void |
update(AnyTypeTO anyTypeTO) |
@PreAuthorize(value="hasRole(\'ANYTYPE_READ\')") @Transactional(readOnly=true) public AnyTypeTO read(String key)
@PreAuthorize(value="hasRole(\'ANYTYPE_LIST\')") @Transactional(readOnly=true) public List<AnyTypeTO> list()
@PreAuthorize(value="hasRole(\'ANYTYPE_CREATE\')") public AnyTypeTO create(AnyTypeTO anyTypeTO)
@PreAuthorize(value="hasRole(\'ANYTYPE_UPDATE\')") public void update(AnyTypeTO anyTypeTO)
@PreAuthorize(value="hasRole(\'ANYTYPE_DELETE\')") public AnyTypeTO delete(String key)
protected AnyTypeTO 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.