|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.openutils.hibernate.security.services.impl.SecurityRuleManagerImpl
public class SecurityRuleManagerImpl
| Constructor Summary | |
|---|---|
SecurityRuleManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
delete(SecurityRule securityRule)
|
java.util.List<SecurityRule> |
findAll()
|
java.util.List<SecurityRule> |
findFiltered(SecurityRule filter)
|
org.hibernate.Filter |
getEntityFilterFromRules(java.lang.String entity,
java.util.List<SecurityRule> rules)
|
java.util.List<SecurityRule> |
getRulesForRoles(java.lang.Object entity,
java.util.List<java.lang.String> roles)
|
java.util.List<SecurityRule> |
getRulesForRoles(java.lang.String entity,
java.util.List<java.lang.String> roles)
|
SecurityRule |
load(java.lang.Long id)
|
SecurityRule |
loadIfAvailable(java.lang.Long id)
|
java.lang.Long |
save(SecurityRule securityRule)
|
void |
saveOrUpdate(SecurityRule securityRule)
|
void |
setSecurityRuleDAO(SecurityRuleDAO securityRuleDAO)
Sets the securityRuleDAO. |
void |
update(SecurityRule securityRule)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecurityRuleManagerImpl()
| Method Detail |
|---|
public void setSecurityRuleDAO(SecurityRuleDAO securityRuleDAO)
securityRuleDAO - the securityRuleDAO to setpublic java.util.List<SecurityRule> findAll()
findAll in interface SecurityRuleManagerSecurityRules.public java.util.List<SecurityRule> findFiltered(SecurityRule filter)
findFiltered in interface SecurityRuleManagerfilter - The SecurityRule to use as search filter
SecurityRules.
public org.hibernate.Filter getEntityFilterFromRules(java.lang.String entity,
java.util.List<SecurityRule> rules)
throws java.lang.SecurityException,
java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException
getEntityFilterFromRules in interface SecurityRuleManagerentity - The entity to apply rules forrules - The list of rules to apply
java.lang.SecurityException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.NoSuchFieldExceptionpublic SecurityRule load(java.lang.Long id)
load in interface SecurityRuleManagerid - The id of the SecurityRule to load
SecurityRule with the given idpublic SecurityRule loadIfAvailable(java.lang.Long id)
loadIfAvailable in interface SecurityRuleManagerid - The id of the SecurityRule to load
SecurityRule with the given id, or null if it is not foundpublic void delete(SecurityRule securityRule)
delete in interface SecurityRuleManagersecurityRule - The security rule to removepublic java.lang.Long save(SecurityRule securityRule)
save in interface SecurityRuleManagersecurityRule - The SecurityRule to save
SecurityRulepublic void saveOrUpdate(SecurityRule securityRule)
saveOrUpdate in interface SecurityRuleManagersecurityRule - The SecurityRule to save or updatepublic void update(SecurityRule securityRule)
update in interface SecurityRuleManagersecurityRule - The SecurityRule to update
public java.util.List<SecurityRule> getRulesForRoles(java.lang.String entity,
java.util.List<java.lang.String> roles)
getRulesForRoles in interface SecurityRuleManagerentity - The entity name we want rules forroles - The list of roles
public java.util.List<SecurityRule> getRulesForRoles(java.lang.Object entity,
java.util.List<java.lang.String> roles)
getRulesForRoles in interface SecurityRuleManagerentity - The entity we want rules forroles - The list of roles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||