Class DefaultRuleEnforcer
- java.lang.Object
-
- org.apache.syncope.core.spring.policy.DefaultRuleEnforcer
-
- All Implemented Interfaces:
RuleEnforcer
public class DefaultRuleEnforcer extends Object implements RuleEnforcer
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
LOG
protected Map<String,AccountRule>
perContextAccountRules
protected Map<String,PasswordRule>
perContextPasswordRules
protected RealmDAO
realmDAO
-
Constructor Summary
Constructors Constructor Description DefaultRuleEnforcer(RealmDAO realmDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AccountPolicy>
getAccountPolicies(Realm realm, Collection<ExternalResource> resources)
List<AccountRule>
getAccountRules(AccountPolicy policy)
List<PasswordPolicy>
getPasswordPolicies(Realm realm, Collection<ExternalResource> resources)
List<PasswordRule>
getPasswordRules(PasswordPolicy policy)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
realmDAO
protected final RealmDAO realmDAO
-
perContextAccountRules
protected final Map<String,AccountRule> perContextAccountRules
-
perContextPasswordRules
protected final Map<String,PasswordRule> perContextPasswordRules
-
-
Constructor Detail
-
DefaultRuleEnforcer
public DefaultRuleEnforcer(RealmDAO realmDAO)
-
-
Method Detail
-
getAccountPolicies
@Transactional(readOnly=true) public List<AccountPolicy> getAccountPolicies(Realm realm, Collection<ExternalResource> resources)
- Specified by:
getAccountPolicies
in interfaceRuleEnforcer
-
getAccountRules
@Transactional(readOnly=true) public List<AccountRule> getAccountRules(AccountPolicy policy)
- Specified by:
getAccountRules
in interfaceRuleEnforcer
-
getPasswordPolicies
@Transactional(readOnly=true) public List<PasswordPolicy> getPasswordPolicies(Realm realm, Collection<ExternalResource> resources)
- Specified by:
getPasswordPolicies
in interfaceRuleEnforcer
-
getPasswordRules
@Transactional(readOnly=true) public List<PasswordRule> getPasswordRules(PasswordPolicy policy)
- Specified by:
getPasswordRules
in interfaceRuleEnforcer
-
-