Liferay数据库表的工作流程是什么? [英] Liferay database table work flow?

查看:75
本文介绍了Liferay数据库表的工作流程是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Liferay的新手.现在,我需要创建在以下情况下具有Liferay表工作流程的流程图,

I am new to Liferay. Now I need to create the flow chart which has the Liferay table work flow in following scenarios,

1)如果创建网站管理员,表的列表将反映/更新什么?

1) What are the list of table will reflect/update if we create the site admin?

2)如果创建站点,表的列表将反映/更新什么?

2) What are the list of table will reflect/update if we create the site?

我尝试打开数据库表,发现USER_,CONTACT_将反映出来,但是我需要所有相关表的列表,这些表将在我们创建站点和siteadmin时反映出来?我正在使用Liferay 6.2版本.

I tried by opening database tables and noticed that USER_, CONTACT_ will reflect, But I need list of all the related tables which will reflect when we create the site and siteadmin? I am using Liferay 6.2 version.

谢谢.

推荐答案

当您想了解任何系统的内部构造时,最好总是检查相关的源代码.因此,在这种情况下,您可以检查用于用户和站点上的CRUD操作的那些类的源代码.

When you want to know the internals of any system it is always best to check the relevant source-code. So in this case you can check the source-code for those classes which are used for CRUD operations on User and Site.

1)如果创建网站管理员,表的列表将反映/更新什么?

1) What are the list of table will reflect/update if we create the site admin?

  • 站点管理员是一个角色,可以应用于在Liferay中创建的用户.
  • 因此,如果您希望所有从User-creation创建的表,直到为User分配了特定站点的Site-administrator角色,以下是我可以回忆的一些表:
    • 用户_(显而易见)
    • Contact_(不太明显:-))
    • Group_(由于用户具有公共页面和私有页面,因此也会在此表中将用户创建为记录)
    • 地址(如果添加地址)
    • 电话(如果添加电话)
    • Users_Roles(默认情况下分配Power user角色)
    • UserGroupRole(用户和站点角色的关系,Site-administrator是一个站点角色)
    • Users_Groups(用户和站点的关系)
      • Site-administrator is a Role, which can be applied to a User created in Liferay.
      • So if you want all the tables that are created from User-creation till User is assigned the Site-administrator role for a particular site, there here are some which I can recollect:
        • User_ (Obvious)
        • Contact_ (not so obvious :-) )
        • Group_ (Users are also created as a record in this table since Users have public and private pages)
        • Address (if you add an address)
        • Phone (if you add a Phone)
        • Users_Roles (Power user role is assigned by default)
        • UserGroupRole (user and site-role relationship, Site-administrator is a Site-role)
        • Users_Groups (user and site relationship)
        • 2)如果创建站点,表的列表将反映/更新什么?

          2) What are the list of table will reflect/update if we create the site?

          • 网站不过是Liferay中的群组.因此,它明显的Group_表起着很大的作用.
          • 其他表还取决于您在创建站点时正在执行的配置.
          • 然后,当您开始为网站创建页面时,还会有其他表,例如Layout.
            • Sites are nothing but Groups in Liferay. So its obvious Group_ table is playing a big role.
            • Other tables also depend upon what configuration you are doing while creating a Site.
            • Then there would be other tables like Layout when you start creating pages for a Site.
            • 我强烈建议继续研究类的源代码,您将了解流程-何时以及什么表受到影响.

              这是一些约定,可以帮助您遍历源代码,几乎每个*LocalServiceImpl都与*Model关联,例如UserLocalServiceImplUserModel,并且几乎每个*Model都有对应的数据库表,其中一样的名字. 同样,该功能的名称在大多数情况下会提示使用了哪些服务类来连接数据库,例如添加User会提示使用UserLocalServiceImpl.

              Here is some convention which might help you traverse the source-code, almost every *LocalServiceImpl is associated with a *Model like UserLocalServiceImpl with UserModel and almost every *Model has a corresponding database table with the same name. Also the name of the functionality would in most cases hints at what service classes are being used to connect to database, like adding a User would hint at using UserLocalServiceImpl.

              希望我已经理解了您的问题,并已经给出了正确的指导.

              Hope I have understood your question and have been able to give some proper direction.

              这篇关于Liferay数据库表的工作流程是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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