[Deploying Sakai] Available site types in 2.8 (or later, maybe earlier too)

Zhen Qian zqian at umich.edu
Thu May 26 09:17:13 PDT 2011

Look at the implementation of SiteService (DbSiteService.java), it is using
the following sql statement to retrieve site types:

"select distinct TYPE from SAKAI_SITE order by TYPE";

So it all depends on the current content in the db. 

However, the site types used by WorkSite Setup tool depend on the
configuration settings. So even there is no project site in db now,
"project" is still shown as a valid site type option.


- Zhen

On Thu, 26 May 2011 18:10:28 +0200, Jean-Francois Leveque
<jean-francois.leveque at upmc.fr> wrote:
> Hi all,
> It looks like org.sakaiproject.site.api.SiteService's getSiteTypes() is 
> not always returning the same values as site-manage sets into 
> STATE_SITE_TYPES (SiteAction.java).
> Does anyone know the magic to be sure both lists of values are the same?
> J-F
> _______________________________________________
> production mailing list
> production at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/production
> TO UNSUBSCRIBE: send email to
> production-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"

More information about the production mailing list