Package org.apache.syncope.core.logic
Class PolicyLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<PolicyTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<PolicyTO>
org.apache.syncope.core.logic.PolicyLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PolicyDataBinder
protected final PolicyDAO
protected final PolicyUtilsFactory
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionPolicyLogic
(PolicyDAO policyDAO, PolicyDataBinder binder, PolicyUtilsFactory policyUtilsFactory) -
Method Summary
Modifier and TypeMethodDescription<T extends PolicyTO>
Tcreate
(PolicyType type, T policyTO) <T extends PolicyTO>
Tdelete
(PolicyType type, String key) list
(PolicyType type) <T extends PolicyTO>
Tread
(PolicyType type, String key) protected PolicyTO
resolveReference
(Method method, Object... args) update
(PolicyType type, PolicyTO policyTO) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
policyDAO
-
binder
-
policyUtilsFactory
-
-
Constructor Details
-
PolicyLogic
public PolicyLogic(PolicyDAO policyDAO, PolicyDataBinder binder, PolicyUtilsFactory policyUtilsFactory)
-
-
Method Details
-
create
@PreAuthorize("hasRole(\'POLICY_CREATE\')") public <T extends PolicyTO> T create(PolicyType type, T policyTO) -
update
@PreAuthorize("hasRole(\'POLICY_UPDATE\')") public PolicyTO update(PolicyType type, PolicyTO policyTO) -
list
@PreAuthorize("hasRole(\'POLICY_LIST\')") @Transactional(readOnly=true) public <T extends PolicyTO> List<T> list(PolicyType type) -
read
@PreAuthorize("hasRole(\'POLICY_READ\')") @Transactional(readOnly=true) public <T extends PolicyTO> T read(PolicyType type, String key) -
delete
@PreAuthorize("hasRole(\'POLICY_DELETE\')") public <T extends PolicyTO> T delete(PolicyType type, String key) -
resolveReference
protected PolicyTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<PolicyTO>
- Throws:
UnresolvedReferenceException
-