@Component public class ReportTemplateLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ReportTemplateLogic() |
Modifier and Type | Method and Description |
---|---|
ReportTemplateTO |
create(String key) |
ReportTemplateTO |
delete(String key) |
String |
getFormat(String key,
ReportTemplateFormat format) |
List<ReportTemplateTO> |
list() |
ReportTemplateTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected ReportTemplateTO |
resolveReference(Method method,
Object... args) |
void |
setFormat(String key,
ReportTemplateFormat format,
String template) |
@PreAuthorize(value="hasRole(\'REPORT_TEMPLATE_READ\')") @Transactional(readOnly=true) public ReportTemplateTO read(String key)
@PreAuthorize(value="hasRole(\'REPORT_TEMPLATE_LIST\')") @Transactional(readOnly=true) public List<ReportTemplateTO> list()
@PreAuthorize(value="hasRole(\'REPORT_TEMPLATE_CREATE\')") public ReportTemplateTO create(String key)
@PreAuthorize(value="hasRole(\'REPORT_TEMPLATE_READ\')") public String getFormat(String key, ReportTemplateFormat format)
@PreAuthorize(value="hasRole(\'REPORT_TEMPLATE_UPDATE\')") public void setFormat(String key, ReportTemplateFormat format, String template)
@PreAuthorize(value="hasRole(\'REPORT_TEMPLATE_DELETE\')") public ReportTemplateTO delete(String key)
protected ReportTemplateTO 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.