@Component public class AnyObjectLogic extends AbstractAnyLogic<AnyObjectTO,AnyObjectPatch>
AbstractTransactionalLogic
, hence does not provide any
Spring's Transactional logic at class level.Modifier and Type | Field and Description |
---|---|
protected AnyObjectDAO |
anyObjectDAO |
protected AnyObjectDataBinder |
binder |
protected static org.slf4j.Logger |
LOG |
protected AnyObjectProvisioningManager |
provisioningManager |
protected AnySearchDAO |
searchDAO |
perContextActions
Constructor and Description |
---|
AnyObjectLogic() |
Modifier and Type | Method and Description |
---|---|
ProvisioningResult<AnyObjectTO> |
assign(String key,
Collection<String> resources,
boolean changepwd,
String password,
boolean nullPriorityAsync) |
ProvisioningResult<AnyObjectTO> |
create(AnyObjectTO anyObjectTO,
boolean nullPriorityAsync) |
ProvisioningResult<AnyObjectTO> |
delete(String key,
boolean nullPriorityAsync) |
ProvisioningResult<AnyObjectTO> |
deprovision(String key,
Collection<String> resources,
boolean nullPriorityAsync) |
protected Set<String> |
groups(AnyObjectTO anyObjectTO) |
AnyObjectTO |
link(String key,
Collection<String> resources) |
ProvisioningResult<AnyObjectTO> |
provision(String key,
Collection<String> resources,
boolean changePwd,
String password,
boolean nullPriorityAsync) |
AnyObjectTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected AnyObjectTO |
resolveReference(Method method,
Object... args) |
Pair<Integer,List<AnyObjectTO>> |
search(SearchCond searchCond,
int page,
int size,
List<OrderByClause> orderBy,
String realm,
boolean details) |
ProvisioningResult<AnyObjectTO> |
unassign(String key,
Collection<String> resources,
boolean nullPriorityAsync) |
AnyObjectTO |
unlink(String key,
Collection<String> resources) |
ProvisioningResult<AnyObjectTO> |
update(AnyObjectPatch anyObjectPatch,
boolean nullPriorityAsync) |
protected void |
updateChecks(String key) |
afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, getActions
@Autowired protected AnyObjectDAO anyObjectDAO
@Autowired protected AnySearchDAO searchDAO
@Autowired protected AnyObjectDataBinder binder
@Autowired protected AnyObjectProvisioningManager provisioningManager
protected static final org.slf4j.Logger LOG
@Transactional(readOnly=true) public AnyObjectTO read(String key)
read
in class AbstractAnyLogic<AnyObjectTO,AnyObjectPatch>
@Transactional(readOnly=true) public Pair<Integer,List<AnyObjectTO>> search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean details)
search
in class AbstractAnyLogic<AnyObjectTO,AnyObjectPatch>
protected Set<String> groups(AnyObjectTO anyObjectTO)
public ProvisioningResult<AnyObjectTO> create(AnyObjectTO anyObjectTO, boolean nullPriorityAsync)
public ProvisioningResult<AnyObjectTO> update(AnyObjectPatch anyObjectPatch, boolean nullPriorityAsync)
update
in class AbstractAnyLogic<AnyObjectTO,AnyObjectPatch>
public ProvisioningResult<AnyObjectTO> delete(String key, boolean nullPriorityAsync)
delete
in class AbstractAnyLogic<AnyObjectTO,AnyObjectPatch>
protected void updateChecks(String key)
public AnyObjectTO unlink(String key, Collection<String> resources)
unlink
in class AbstractResourceAssociator<AnyObjectTO>
public AnyObjectTO link(String key, Collection<String> resources)
link
in class AbstractResourceAssociator<AnyObjectTO>
public ProvisioningResult<AnyObjectTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
unassign
in class AbstractResourceAssociator<AnyObjectTO>
public ProvisioningResult<AnyObjectTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
assign
in class AbstractResourceAssociator<AnyObjectTO>
public ProvisioningResult<AnyObjectTO> deprovision(String key, Collection<String> resources, boolean nullPriorityAsync)
deprovision
in class AbstractResourceAssociator<AnyObjectTO>
public ProvisioningResult<AnyObjectTO> provision(String key, Collection<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
provision
in class AbstractResourceAssociator<AnyObjectTO>
protected AnyObjectTO 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.