Package org.apache.syncope.core.logic
Class PolicyLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<PolicyTO>
-
- org.apache.syncope.core.logic.PolicyLogic
-
public class PolicyLogic extends AbstractTransactionalLogic<PolicyTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected PolicyDataBinder
binder
protected PolicyDAO
policyDAO
protected PolicyUtilsFactory
policyUtilsFactory
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description PolicyLogic(PolicyDAO policyDAO, PolicyDataBinder binder, PolicyUtilsFactory policyUtilsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends PolicyTO>
Tcreate(PolicyType type, T policyTO)
<T extends PolicyTO>
Tdelete(PolicyType type, String key)
<T extends PolicyTO>
List<T>list(PolicyType type)
<T extends PolicyTO>
Tread(PolicyType type, String key)
protected PolicyTO
resolveReference(Method method, Object... args)
PolicyTO
update(PolicyType type, PolicyTO policyTO)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
policyDAO
protected final PolicyDAO policyDAO
-
binder
protected final PolicyDataBinder binder
-
policyUtilsFactory
protected final PolicyUtilsFactory policyUtilsFactory
-
-
Constructor Detail
-
PolicyLogic
public PolicyLogic(PolicyDAO policyDAO, PolicyDataBinder binder, PolicyUtilsFactory policyUtilsFactory)
-
-
Method Detail
-
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
-
-