org.duracloud.durastore.aop
Class BaseContentStoreAdvice

java.lang.Object
  extended by org.duracloud.durastore.aop.BaseContentStoreAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.springframework.aop.AfterAdvice, org.springframework.aop.AfterReturningAdvice, org.springframework.core.Ordered
Direct Known Subclasses:
ContentCopyAdvice, ContentDeleteAdvice, ContentUpdateAdvice, IngestAdvice, SpaceCreateAdvice, SpaceDeleteAdvice, SpaceUpdateAdvice

public abstract class BaseContentStoreAdvice
extends Object
implements org.springframework.aop.AfterReturningAdvice, org.springframework.core.Ordered

This class provides common capabilities for all ContentStore AOP advice.

Author:
Andrew Woods Date: 3/15/12

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
BaseContentStoreAdvice()
           
 
Method Summary
 void afterReturning(Object returnObj, Method method, Object[] methodArgs, Object targetObj)
           
protected abstract  ContentMessage createMessage(Object[] methodArgs)
          This method creates an AOP message appropriate to the implementing class.
protected  String getCurrentUsername()
           
 javax.jms.Destination getDestination()
           
 org.springframework.jms.core.JmsTemplate getJmsTemplate()
           
 int getOrder()
           
 SecurityContextUtil getSecurityContextUtil()
           
protected abstract  org.slf4j.Logger log()
          This method returns the logger from implementing class.
 void setDestination(javax.jms.Destination destination)
           
 void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
           
 void setOrder(int order)
           
 void setSecurityContextUtil(SecurityContextUtil securityContextUtil)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseContentStoreAdvice

public BaseContentStoreAdvice()
Method Detail

afterReturning

public void afterReturning(Object returnObj,
                           Method method,
                           Object[] methodArgs,
                           Object targetObj)
                    throws Throwable
Specified by:
afterReturning in interface org.springframework.aop.AfterReturningAdvice
Throws:
Throwable

log

protected abstract org.slf4j.Logger log()
This method returns the logger from implementing class.

Returns:
logger

createMessage

protected abstract ContentMessage createMessage(Object[] methodArgs)
This method creates an AOP message appropriate to the implementing class.

Parameters:
methodArgs - intercepted from call
Returns:
ContentMessage

getCurrentUsername

protected String getCurrentUsername()

getJmsTemplate

public org.springframework.jms.core.JmsTemplate getJmsTemplate()

setJmsTemplate

public void setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)

getDestination

public javax.jms.Destination getDestination()

setDestination

public void setDestination(javax.jms.Destination destination)

getOrder

public int getOrder()
Specified by:
getOrder in interface org.springframework.core.Ordered

setOrder

public void setOrder(int order)

getSecurityContextUtil

public SecurityContextUtil getSecurityContextUtil()

setSecurityContextUtil

public void setSecurityContextUtil(SecurityContextUtil securityContextUtil)


Copyright © 2009-2012 DuraSpace. All Rights Reserved.