org.duracloud.duradmin.security
Class SecurityAdvice

java.lang.Object
  extended by org.duracloud.duradmin.security.SecurityAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.BeforeAdvice, org.springframework.aop.MethodBeforeAdvice

public class SecurityAdvice
extends Object
implements org.springframework.aop.MethodBeforeAdvice

This class wraps calls to securable objects and logs them in if there is a valid credential in the security context. Otherwise, it logs the object out.

Author:
Andrew Woods Date: Mar 28, 2010

Constructor Summary
SecurityAdvice(SecurityContextUtil util)
           
 
Method Summary
 void before(Method method, Object[] objects, Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityAdvice

public SecurityAdvice(SecurityContextUtil util)
Method Detail

before

public void before(Method method,
                   Object[] objects,
                   Object o)
            throws Throwable
Specified by:
before in interface org.springframework.aop.MethodBeforeAdvice
Throws:
Throwable


Copyright © 2009-2011 DuraSpace. All Rights Reserved.