Class AclAdvice
- java.lang.Object
-
- gemma.gsec.acl.BaseAclAdvice
-
- ubic.gemma.core.security.authorization.acl.AclAdvice
-
@Component public class AclAdvice extends gemma.gsec.acl.BaseAclAdvice
For permissions modification to be triggered, the method name must match certain patterns, which include "create", or "remove". These patterns are defined in thePointcuts
. Other methods that would require changes to permissions will not work without modifying the source code. *- Author:
- Paul
-
-
Constructor Summary
Constructors Constructor Description AclAdvice(gemma.gsec.acl.domain.AclService aclService, SessionFactory sessionFactory, org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canSkipAclCheck(Object object)
protected boolean
canSkipAssociationCheck(Object object, String propertyName)
protected void
createOrUpdateAclSpecialCases(org.springframework.security.acls.model.MutableAcl acl, org.springframework.security.acls.model.Acl parentAcl, org.springframework.security.acls.model.Sid sid, gemma.gsec.model.Securable object)
protected org.springframework.security.core.GrantedAuthority
getUserGroupGrantedAuthority(gemma.gsec.model.Securable object)
protected String
getUserName(gemma.gsec.model.Securable user)
protected boolean
objectIsUser(gemma.gsec.model.Securable object)
protected boolean
objectIsUserGroup(gemma.gsec.model.Securable object)
protected boolean
specialCaseForAssociationFollow(Object object, String property)
protected boolean
specialCaseToKeepPrivateOnCreation(gemma.gsec.model.Securable object)
-
-
-
Constructor Detail
-
AclAdvice
@Autowired public AclAdvice(gemma.gsec.acl.domain.AclService aclService, SessionFactory sessionFactory, org.springframework.security.acls.model.ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
-
-
Method Detail
-
canSkipAclCheck
protected boolean canSkipAclCheck(Object object)
- Overrides:
canSkipAclCheck
in classgemma.gsec.acl.BaseAclAdvice
-
canSkipAssociationCheck
protected boolean canSkipAssociationCheck(Object object, String propertyName)
- Overrides:
canSkipAssociationCheck
in classgemma.gsec.acl.BaseAclAdvice
-
createOrUpdateAclSpecialCases
protected void createOrUpdateAclSpecialCases(org.springframework.security.acls.model.MutableAcl acl, org.springframework.security.acls.model.Acl parentAcl, org.springframework.security.acls.model.Sid sid, gemma.gsec.model.Securable object)
- Overrides:
createOrUpdateAclSpecialCases
in classgemma.gsec.acl.BaseAclAdvice
-
getUserGroupGrantedAuthority
protected org.springframework.security.core.GrantedAuthority getUserGroupGrantedAuthority(gemma.gsec.model.Securable object)
- Specified by:
getUserGroupGrantedAuthority
in classgemma.gsec.acl.BaseAclAdvice
-
getUserName
protected String getUserName(gemma.gsec.model.Securable user)
- Specified by:
getUserName
in classgemma.gsec.acl.BaseAclAdvice
-
objectIsUser
protected boolean objectIsUser(gemma.gsec.model.Securable object)
- Specified by:
objectIsUser
in classgemma.gsec.acl.BaseAclAdvice
-
objectIsUserGroup
protected boolean objectIsUserGroup(gemma.gsec.model.Securable object)
- Specified by:
objectIsUserGroup
in classgemma.gsec.acl.BaseAclAdvice
-
specialCaseForAssociationFollow
protected boolean specialCaseForAssociationFollow(Object object, String property)
- Overrides:
specialCaseForAssociationFollow
in classgemma.gsec.acl.BaseAclAdvice
-
specialCaseToKeepPrivateOnCreation
protected boolean specialCaseToKeepPrivateOnCreation(gemma.gsec.model.Securable object)
- Overrides:
specialCaseToKeepPrivateOnCreation
in classgemma.gsec.acl.BaseAclAdvice
-
-