[Building Sakai] how to entends Site object...

swwangl at tsmc.com swwangl at tsmc.com
Wed Jun 15 20:37:16 PDT 2011


We want more additional fields for "Site" object.
So, I write a object to extends "BaseSite" object.
After get "Site" oject, we want to new a "NewSite" object to extends
"Site". and then set the additional fields for "NewSite".
But I have no idea to construct the BaseSiteService. could anyone have
experience?


===api from kernel1.2.1 java docs===
BaseSite(BaseSiteService siteService, Site other)
      Construct from another Site, exact.
=================================

my program:
List<Site> sites =SiteService.getSites(xxxx,xxx,xx,xxx...
for (Site site : sites) {
    NewBaseSite new_site=new NewBaseSite(baseSiteService, site);
    ...
}

but I can't get baseSiteService instance to construct NewBaseSite
successfully

Could anyone provide some suggestion?



Best Regards,
Joan


 --------------------------------------------------------------------------- 
                                                         TSMC PROPERTY       
 This email communication (and any attachments) is proprietary information   
 for the sole use of its                                                     
 intended recipient. Any unauthorized review, use or distribution by anyone  
 other than the intended                                                     
 recipient is strictly prohibited.  If you are not the intended recipient,   
 please notify the sender by                                                 
 replying to this email, and then delete this email and any copies of it     
 immediately. Thank you.                                                     
 --------------------------------------------------------------------------- 






More information about the sakai-dev mailing list