liferay网站将在哪里存储哪个表详细信息? [英] where liferay site will store in which table details will fetch?

查看:156
本文介绍了liferay网站将在哪里存储哪个表详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我们创建站点,将存储组织.我的意思是它将存储在默认表中.`通过站点模板以编程方式创建组织站点

if we create site,organisation where it will store.i mean in which default table it will store.`Programmatically create organization site from site template

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);
}

`

推荐答案

此问题的非答案(尽管它也是唯一的正确答案)是:您不想要查看数据库. 期间.这是Liferay的数据库,如果您对其进行了任何更改,您很可能会造成严重破坏-在那里,请执行此操作.

A non-answer to this question (albeit it's the only correct answer as well) is: You do not want to look at the database. Period. It's Liferay's database, and if you make any changes to it, you'll most likely wreak havoc - been there, done that.

一个冗长而完整的论据在这里可以找到,请相信我:我们已经看到很多人以为他们知道Liferay的数据库而引起的问题.为自己省去麻烦,避免退房.

A lengthy and more complete argument can be found here, trust me: We've seen quite a lot of problems caused by people who assumed they knew Liferay's database. Save yourself this hassle and resist from checking it out.

这篇关于liferay网站将在哪里存储哪个表详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆