@Component public class DomainLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DomainLogic() |
Modifier and Type | Method and Description |
---|---|
DomainTO |
create(DomainTO domainTO) |
DomainTO |
delete(String key) |
List<DomainTO> |
list() |
DomainTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected DomainTO |
resolveReference(Method method,
Object... args) |
DomainTO |
update(DomainTO domainTO) |
@PreAuthorize(value="hasRole(\'DOMAIN_READ\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") @Transactional(readOnly=true) public DomainTO read(String key)
@PreAuthorize(value="isAuthenticated()") @Transactional(readOnly=true) public List<DomainTO> list()
@PreAuthorize(value="hasRole(\'DOMAIN_CREATE\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") public DomainTO create(DomainTO domainTO)
@PreAuthorize(value="hasRole(\'DOMAIN_UPDATE\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") public DomainTO update(DomainTO domainTO)
@PreAuthorize(value="hasRole(\'DOMAIN_DELETE\') and authentication.details.domain == T(org.apache.syncope.common.lib.SyncopeConstants).MASTER_DOMAIN") public DomainTO delete(String key)
protected DomainTO 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.