@Component public class RoleLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
RoleLogic() |
Modifier and Type | Method and Description |
---|---|
RoleTO |
create(RoleTO roleTO) |
RoleTO |
delete(String key) |
String |
getAnyLayout(String key) |
List<RoleTO> |
list() |
RoleTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected RoleTO |
resolveReference(Method method,
Object... args) |
void |
setAnyLayout(String key,
String consoleLayout) |
RoleTO |
update(RoleTO roleTO) |
@PreAuthorize(value="hasRole(\'ROLE_READ\')") @Transactional(readOnly=true) public RoleTO read(String key)
@PreAuthorize(value="hasRole(\'ROLE_LIST\')") @Transactional(readOnly=true) public List<RoleTO> list()
@PreAuthorize(value="hasRole(\'ROLE_CREATE\')") public RoleTO create(RoleTO roleTO)
@PreAuthorize(value="hasRole(\'ROLE_UPDATE\')") public RoleTO update(RoleTO roleTO)
@PreAuthorize(value="hasRole(\'ROLE_DELETE\')") public RoleTO delete(String key)
@PreAuthorize(value="isAuthenticated()") public String getAnyLayout(String key)
@PreAuthorize(value="hasRole(\'ROLE_UPDATE\')") public void setAnyLayout(String key, String consoleLayout)
protected RoleTO 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.