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