Provide access to the complete set of properties in FreeMarker templates, by putting a fullPropertyList in BaseIndividualTemplateModel. This is done by bypassing filtering.

Individual.java: provide getBaseIndividual() method
IndividualImpl.java: implement getBaseIndividual()
IndividualFiltering.java: implement getBaseIndividual()
BaseIndividualTemplateModel.java: provide fullPropertyList, which uses the base individual, which bypasses filtering
This commit is contained in:
mbarbier 2011-03-31 16:34:27 +00:00
parent defae26bf1
commit 9048fc0277

View file

@ -166,5 +166,10 @@ public interface Individual extends ResourceBean, VitroTimeWindowedResource, Com
Float getSearchBoost(); Float getSearchBoost();
void setSearchBoost( Float boost ); void setSearchBoost( Float boost );
/**
* Return the individual that is wrapped by this individual. Implementations that do not wrap an individual should
* simply "return this;". Those which wrap an individual should "return wrapped.getBaseIndividual();".
* @return the wrapped individual
*/
Individual getBaseIndividual(); Individual getBaseIndividual();
} }