@Component public class ConnectorLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ConnectorLogic() |
Modifier and Type | Method and Description |
---|---|
List<ConnIdObjectClassTO> |
buildObjectClassInfo(ConnInstanceTO connInstanceTO,
boolean includeSpecial) |
void |
check(ConnInstanceTO connInstanceTO) |
ConnInstanceTO |
create(ConnInstanceTO connInstanceTO) |
ConnInstanceTO |
delete(String key) |
List<ConnBundleTO> |
getBundles(String lang) |
List<ConnInstanceTO> |
list(String lang) |
ConnInstanceTO |
read(String key,
String lang) |
ConnInstanceTO |
readByResource(String resourceName,
String lang) |
void |
reload() |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected ConnInstanceTO |
resolveReference(Method method,
Object... args) |
protected void |
securityChecks(Set<String> effectiveRealms,
String realm,
String key) |
ConnInstanceTO |
update(ConnInstanceTO connInstanceTO) |
@PreAuthorize(value="hasRole(\'CONNECTOR_CREATE\')") public ConnInstanceTO create(ConnInstanceTO connInstanceTO)
@PreAuthorize(value="hasRole(\'CONNECTOR_UPDATE\')") public ConnInstanceTO update(ConnInstanceTO connInstanceTO)
@PreAuthorize(value="hasRole(\'CONNECTOR_DELETE\')") public ConnInstanceTO delete(String key)
@PreAuthorize(value="hasRole(\'CONNECTOR_LIST\')") @Transactional(readOnly=true) public List<ConnInstanceTO> list(String lang)
@PreAuthorize(value="hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public ConnInstanceTO read(String key, String lang)
@PreAuthorize(value="hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public List<ConnBundleTO> getBundles(String lang)
@PreAuthorize(value="hasRole(\'CONNECTOR_READ\')") public List<ConnIdObjectClassTO> buildObjectClassInfo(ConnInstanceTO connInstanceTO, boolean includeSpecial)
@PreAuthorize(value="hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public void check(ConnInstanceTO connInstanceTO)
@PreAuthorize(value="hasRole(\'CONNECTOR_READ\')") @Transactional(readOnly=true) public ConnInstanceTO readByResource(String resourceName, String lang)
@PreAuthorize(value="hasRole(\'CONNECTOR_RELOAD\')") @Transactional(readOnly=true) public void reload()
protected ConnInstanceTO 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.