@Component public class SchemaLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
SchemaLogic() |
Modifier and Type | Method and Description |
---|---|
<T extends SchemaTO> |
create(SchemaType schemaType,
T schemaTO) |
void |
delete(SchemaType schemaType,
String schemaKey) |
<T extends SchemaTO> |
read(SchemaType schemaType,
String schemaKey) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected SchemaTO |
resolveReference(Method method,
Object... args) |
<T extends SchemaTO> |
search(SchemaType schemaType,
List<String> anyTypeClasses,
String keyword) |
<T extends SchemaTO> |
update(SchemaType schemaType,
T schemaTO) |
@PreAuthorize(value="hasRole(\'SCHEMA_CREATE\')") public <T extends SchemaTO> T create(SchemaType schemaType, T schemaTO)
@PreAuthorize(value="hasRole(\'SCHEMA_DELETE\')") public void delete(SchemaType schemaType, String schemaKey)
@PreAuthorize(value="isAuthenticated()") @Transactional(readOnly=true) public <T extends SchemaTO> List<T> search(SchemaType schemaType, List<String> anyTypeClasses, String keyword)
@PreAuthorize(value="isAuthenticated()") public <T extends SchemaTO> T read(SchemaType schemaType, String schemaKey)
@PreAuthorize(value="hasRole(\'SCHEMA_UPDATE\')") public <T extends SchemaTO> void update(SchemaType schemaType, T schemaTO)
protected SchemaTO 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.