Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pointcut permissionCheckMethods(Session sess) :
- (execution(public * *(.., Session)) && args(*, sess));
- public void delete(Object item, Session currentSession);
- public List listAll(Session currentSession);
- pointcut permissionCheckMethods(EhealthSession eheSess) :
- (execution(public * *(.., EhealthSession)) && args(*, eheSess))
- && !within(it.___.security.PermissionsCheck);
- pointcut permissionCheckMethods2(EhealthSession eheSess) :
- (execution(public * *(EhealthSession)) && args(eheSess))
- && !within(it.___.security.PermissionsCheck)
- && !within(it.___.app.impl.EhealthApplicationImpl);
- before(EhealthSession eheSess) throws AuthorizationException : permissionCheckMethods(eheSess)
- {
- Signature sig = thisJoinPointStaticPart.getSignature();
- check(eheSess, sig);
- }
- before(EhealthSession eheSess) throws AuthorizationException : permissionCheckMethods2(eheSess)
- {
- Signature sig = thisJoinPointStaticPart.getSignature();
- check(eheSess, sig);
- }
- pointcut permissionCheckMethods(Session sess) :
- (execution(public * *(..)) && args(.., sess));
Add Comment
Please, Sign In to add comment