如果我们创建它将存储的网站,组织.i意味着它将存储哪个默认表。从网站模板以编程方式创建组织网站
Create organization site
Organization organization = OrganizationLocalServiceUtil.addOrganization(creatorUserId, 0, name, createSite);
Fetch site templates
List<LayoutSetPrototype> layoutSetPrototypes =
LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototypes(organization.getCompanyId());
LayoutSetPrototype customSiteTemplate = null;
// find CustomSiteTemplate
for (LayoutSetPrototype layoutSetPrototype : layoutSetPrototypes) {
if (layoutSetPrototype.getName(Locale.ENGLISH)) .equalsIgnoreCase("CustomSiteTemplate") {
customSiteTemplate = layoutSetPrototype;
break;
}
}
Assign site template(CustomSiteTemplate) pages to organization site.
if (customerSiteTemplate != null && organization != null) {
LayoutSet layoutSet =
LayoutSetLocalServiceUtil.getLayoutSet(organization.getGroupId(), true);
layoutSet.setLayoutSetPrototypeLinkEnabled(true);
layoutSet.setLayoutSetPrototypeUuid(customerSiteTemplate.getUuid());
LayoutSetLocalServiceUtil.updateLayoutSet(layoutSet);
// Merge Site template pages to organization site.
SitesUtil.mergeLayoutSetPrototypeLayouts(organization.getGroup(),layoutSet);
}
`
答案 0 :(得分:1)
这个问题没有回答(虽然这也是唯一正确的答案)是:你不希望查看数据库。 期间的。它是Liferay的数据库,如果你对它进行任何修改,你很可能会造成严重破坏 - 去过那里,做到了。
一个冗长而更完整的论据can be found here,相信我:我们已经看到很多人因为认为他们了解Liferay的数据库而引起的问题。为自己省去这个麻烦,并且不要去检查它。