The "Guest" user

Table of Contents [-]

    The "guest" user is actually an anonymous user. When the portal is first visited, if no user can be identified, the "default" (a.k.a. "guest") user is created. This user is assigned to a com.liferay.portal.model.User object (which also exists in the database and is used by Hibernate to populate the "guest" User entity when needed). The guest user has a default user ID, and is assigned to a default group, which has a default layout. Once in the database, the default user can be retrieved by calling UserLocalServiceUtil.getDefaultUser(companyId). The user ID of the default user is the company id of the portal, plus the suffix ".default".

    The default user is added to the database in com.liferay.portal.service.impl.CompanyLocalServiceImpl at line 178. This in turn calls GroupLocalServiceUtil.checkSystemGroups(), which ends up calling GroupLocalServiceImpl.addDefaultLayouts()

    The default user's layout is added to the database in com.liferay.portal.service.impl.GroupLocalServiceImpl.addDefaultLayouts() starting at line 436. The default user's group name is defined in com.liferay.portal.util.GroupNames.

    0 Anhänge
    30269 Angesehen
    Durchschnitt (2 Stimmen)
    Die durchschnittliche Bewertung ist 4.5 von max. 5 Sternen.
    Kommentare
    Antworten im Thread Autor Datum
    Nice article, can any one please tell me how to... chandru palaniyappan 16. September 2010 06:07
    The permissions can be defined from... shivank shrotri 19. September 2013 02:25
    I tried to change the permission by defining... asif aftab 3. Januar 2014 06:10
    line 178 ... line 436 ... hum too much accurate. Francois Fournel 21. November 2011 01:58

    Nice article,
    can any one please tell me how to and where to change the default guest permission?
    when i add a content the guest gets view permission by default.
    i want to uncheck this by default.
    Gepostet am 16.09.10 06:07.
    line 178 ... line 436 ... hum too much accurate.
    Gepostet am 21.11.11 01:58.
    The permissions can be defined from roles->Guest->Define permissions for a portlet.
    Gepostet am 19.09.13 02:25 als Antwort auf chandru palaniyappan.
    I tried to change the permission by defining the permission but still no change. My intention is to give the privilege to the guest to change the language. But unsuccessful to achieve this. Any one having any clue then please share.
    Thanks
    asif aftab
    Gepostet am 03.01.14 06:10 als Antwort auf shivank shrotri.