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

John Bush john.bush at rsmart.com
Wed Jun 15 20:39:28 PDT 2011


what are you trying to add exactly, perhaps using site properties
might be a less forky way of achiveing the same result.

On Wed, Jun 15, 2011 at 8:37 PM,  <swwangl at tsmc.com> wrote:
>
> 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.
>  ---------------------------------------------------------------------------
>
>
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>



-- 
John Bush
602-490-0470


More information about the sakai-dev mailing list