@Component public class RealmLogic extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
RealmLogic() |
Modifier and Type | Method and Description |
---|---|
ProvisioningResult<RealmTO> |
create(String parentPath,
RealmTO realmTO) |
ProvisioningResult<RealmTO> |
delete(String fullPath) |
List<RealmTO> |
list(String fullPath) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected RealmTO |
resolveReference(Method method,
Object... args) |
Pair<Integer,List<RealmTO>> |
search(String keyword,
String base) |
ProvisioningResult<RealmTO> |
update(RealmTO realmTO) |
@PreAuthorize(value="hasRole(\'REALM_LIST\')") @Transactional(readOnly=true) public Pair<Integer,List<RealmTO>> search(String keyword, String base)
@PreAuthorize(value="isAuthenticated()") @Transactional(readOnly=true) public List<RealmTO> list(String fullPath)
@PreAuthorize(value="hasRole(\'REALM_CREATE\')") public ProvisioningResult<RealmTO> create(String parentPath, RealmTO realmTO)
@PreAuthorize(value="hasRole(\'REALM_UPDATE\')") public ProvisioningResult<RealmTO> update(RealmTO realmTO)
@PreAuthorize(value="hasRole(\'REALM_DELETE\')") public ProvisioningResult<RealmTO> delete(String fullPath)
protected RealmTO 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.