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:
parent
defae26bf1
commit
9048fc0277
1 changed files with 5 additions and 0 deletions
|
@ -166,5 +166,10 @@ public interface Individual extends ResourceBean, VitroTimeWindowedResource, Com
|
|||
Float getSearchBoost();
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue