Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Loading values into BOM
sso
Hi,
If I have my own BOM for the targeting rules, where (.java) should I put the logic of loading values into the BOM? I have the in-house java library for reading from the datasource (cache <-- database). I also hope that I don't have to use Hibernate in the process.
Please advise.
Find more posts tagged with
Comments
tec_iwov
>If I have my own BOM for the targeting rules
can you elaborate on that?
do you mean you customized/Extended the BOM objects that are part of targeting?
You've extended the UserProfile Object?
sso
Say, I have defined my own BOM, a class called Album.
And say, if album.genre is classical, then serve Component with Mozart content.
So basically Album is a POJO I defined, and the value for album.genre is classical. The value needs to be loaded (from db, let's say) before the business object can be passed on to the rule engine for evaluation.
The question is, where I put the java code to load the value into my POJO.
Thanks,
tec_iwov
the ruleset parameters are fixed within livesite so anything you want to gain access to has to be available in someway from the UserProfile so you would have to modify that. You would have to extend the UserProfileService when the user is retrieved. also you might be able to modify the login controller if you require login.
sso
Thanks for the keyword UserProfileService!
Please verify this idea: I think we can supply custom BOMs by asking spring framework to load them.
Under /opt/Interwoven/TeamSite/httpd/webapps/
-bash-3.1# find . -exec grep UserProfileService {} \; -print | grep config
grep: ./iw-webd/logs/cgisock: No such device or address
./content_center/WEB-INF/conf/livesite/resources/runtime-resource-config.xml
./content_center/WEB-INF/conf/livesite/resources/p13n-resource-config.xml
./iw-preview/WEB-INF/conf/livesite/resources/preview-resource-config.xml
./iw-preview/WEB-INF/conf/livesite/resources/p13n-resource-config.xml
./iw-preview/WEB-INF/conf/livesite/resources/resource-config.xml
./iw-rta/WEB-INF/conf/livesite-admin/resources/p13n-resource-config.xml
./iw-rta/WEB-INF/conf/livesite-admin/resources/resource-config.xml
And add my own set of DAOs for the business object:
com/interwoven/livesite/p13n/UserProfileFactory.class
com/interwoven/livesite/p13n/UserPriofileService.class
com/interwoven/livesite/p13n/dao/UserProfileDAO.class
com/interwoven/livesite/p13n/impl/BaseUserProfileService.class
com/interwoven/livesite/p13n/model/UserProfile.class
com/interwoven/livesite/spring/p13n/impl/SpringUserProfileFactory.class
Per SitePublisher 3.1 beta Developer's Guide
***
Now two questions:
1. Does the DAO/Service/Factory has to implement any interwoven interface?
2. The other post said there's an impl.zip for javadoc. I can't find that file. Where can I get some javadoc in this area, p13n (personalization)?
Thanks!