org.loom.interceptor
Class DefaultRetrieveEntityInterceptor

java.lang.Object
  extended by org.loom.interceptor.AbstractPropertyBoundInterceptor
      extended by org.loom.interceptor.DefaultRetrieveEntityInterceptor
All Implemented Interfaces:
Interceptor, PopulateInterceptor, PropertyBoundInterceptor, RetrieveEntityInterceptor

public class DefaultRetrieveEntityInterceptor
extends AbstractPropertyBoundInterceptor
implements RetrieveEntityInterceptor, PopulateInterceptor


Field Summary
 
Fields inherited from class org.loom.interceptor.AbstractPropertyBoundInterceptor
propertyPath
 
Constructor Summary
DefaultRetrieveEntityInterceptor()
           
 
Method Summary
 Resolution beforePopulate(ParsedAction action)
           
 java.lang.String getIdPropertyPath()
           
 void setEntityManager(ExtendedEntityManager entityManager)
           
 void setIdPropertyName(java.lang.String idPropertyName)
           
 void setPropertyClass(java.lang.Class<?> propertyClass)
           
 void setReadOnly(boolean readOnly)
           
 java.lang.String toString()
           
 
Methods inherited from class org.loom.interceptor.AbstractPropertyBoundInterceptor
getPropertyPath, setPropertyPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.loom.interceptor.RetrieveEntityInterceptor
setPropertyPath
 

Constructor Detail

DefaultRetrieveEntityInterceptor

public DefaultRetrieveEntityInterceptor()
Method Detail

beforePopulate

public Resolution beforePopulate(ParsedAction action)
Specified by:
beforePopulate in interface PopulateInterceptor
Parameters:
action - the action and event that is being executed
Returns:
if return value != null, stops the execution of the workflow and return the provided resolution

setReadOnly

public void setReadOnly(boolean readOnly)
Specified by:
setReadOnly in interface RetrieveEntityInterceptor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setEntityManager

public void setEntityManager(ExtendedEntityManager entityManager)

getIdPropertyPath

public java.lang.String getIdPropertyPath()

setIdPropertyName

public void setIdPropertyName(java.lang.String idPropertyName)
Specified by:
setIdPropertyName in interface RetrieveEntityInterceptor

setPropertyClass

public void setPropertyClass(java.lang.Class<?> propertyClass)
Specified by:
setPropertyClass in interface RetrieveEntityInterceptor