org.nuiton.wikitty.struts
Class WikittyFieldHandler

java.lang.Object
  extended by org.nuiton.wikitty.struts.WikittyFieldHandler

public class WikittyFieldHandler
extends Object


Field Summary
static String ALL_EXTENSION_CAR
           
protected  BusinessEntity businessEntity
           
protected  String exclude
           
protected  Map<String,List<String>> excludeMap
           
static String FIELD_SEPARATOR
           
protected  Set<String> fieldAdded
           
protected  String include
           
protected  boolean includeEnable
           
protected  Map<String,List<String>> includeMap
           
protected  String order
           
protected  Boolean orderBefore
           
protected  WikittyProxy proxy
           
protected  Wikitty wikitty
           
static String WIKITTY_STACK_KEY
           
protected  String wikittyId
           
 
Constructor Summary
WikittyFieldHandler()
           
 
Method Summary
 void addAddedField(String field)
           
protected  ExtensionFieldStrutsBean constructExtensionFieldFromField(String extName, String fieldName)
           
protected  Map<String,List<String>> constructIncludeExcludeMap(String entry)
          construct map for exclude or include template
 BusinessEntity getBusinessEntity()
           
 String getExclude()
           
 Set<String> getFieldAdded()
           
protected  Collection<ExtensionFieldStrutsBean> getFieldOrderedBefore()
           
 String getInclude()
           
 String getOrder()
           
 Boolean getOrderBefore()
           
 WikittyProxy getProxy()
           
 Wikitty getWikitty()
           
 Collection<ExtensionFieldStrutsBean> getWikittyField()
           
 String getWikittyId()
           
 boolean isIncluded(String fqFieldName)
           
 boolean isIncluded(String extName, String fieldName)
           
 void setBusinessEntity(BusinessEntity businessEntity)
           
 void setExclude(String exclude)
           
 void setFieldAdded(Set<String> fieldAdded)
           
 void setInclude(String include)
           
 void setOrder(String order)
           
 void setOrderBefore(Boolean orderBefore)
           
 void setProxy(WikittyProxy proxy)
           
 void setWikitty(Wikitty wikitty)
           
 void setWikittyId(String wikittyId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_EXTENSION_CAR

public static String ALL_EXTENSION_CAR

FIELD_SEPARATOR

public static String FIELD_SEPARATOR

wikittyId

protected String wikittyId

wikitty

protected Wikitty wikitty

businessEntity

protected BusinessEntity businessEntity

proxy

protected WikittyProxy proxy

include

protected String include

exclude

protected String exclude

order

protected String order

orderBefore

protected Boolean orderBefore

fieldAdded

protected Set<String> fieldAdded

excludeMap

protected Map<String,List<String>> excludeMap

includeMap

protected Map<String,List<String>> includeMap

includeEnable

protected boolean includeEnable

WIKITTY_STACK_KEY

public static final String WIKITTY_STACK_KEY
See Also:
Constant Field Values
Constructor Detail

WikittyFieldHandler

public WikittyFieldHandler()
Method Detail

getFieldAdded

public Set<String> getFieldAdded()

setFieldAdded

public void setFieldAdded(Set<String> fieldAdded)

getWikittyId

public String getWikittyId()

setWikittyId

public void setWikittyId(String wikittyId)

getWikitty

public Wikitty getWikitty()

setWikitty

public void setWikitty(Wikitty wikitty)

getBusinessEntity

public BusinessEntity getBusinessEntity()

setBusinessEntity

public void setBusinessEntity(BusinessEntity businessEntity)

getOrderBefore

public Boolean getOrderBefore()

setOrderBefore

public void setOrderBefore(Boolean orderBefore)

getProxy

public WikittyProxy getProxy()

setProxy

public void setProxy(WikittyProxy proxy)

getInclude

public String getInclude()

setInclude

public void setInclude(String include)

getExclude

public String getExclude()

setExclude

public void setExclude(String exclude)

getOrder

public String getOrder()

setOrder

public void setOrder(String order)

getWikittyField

public Collection<ExtensionFieldStrutsBean> getWikittyField()

getFieldOrderedBefore

protected Collection<ExtensionFieldStrutsBean> getFieldOrderedBefore()

constructIncludeExcludeMap

protected Map<String,List<String>> constructIncludeExcludeMap(String entry)
construct map for exclude or include template

Parameters:
entry - the attribut of the wikitty field tag exemple include="machin.*, truc.bob, truc.tt"
Returns:
a map with key the string before the dot and a list with the value after the dot example: [machin:[*], truc:[tt,bob]]

addAddedField

public void addAddedField(String field)

isIncluded

public boolean isIncluded(String fqFieldName)

isIncluded

public boolean isIncluded(String extName,
                          String fieldName)

constructExtensionFieldFromField

protected ExtensionFieldStrutsBean constructExtensionFieldFromField(String extName,
                                                                    String fieldName)


Copyright © 2011-2012 CodeLutin. All Rights Reserved.