LPS-42347 Minor refactoring - no logic change
LPS-42347 Delete all thumbnails during cleanup
LPS-42347 We don't need to add the type when fileVersionId is not bigger than 0. If we don't add this the thumbnails will remain there even when the document is deleted.
LPS-42347 Consistency
LPS-38425 SF
LPS-42257 SF
LPS-41857 The portlet preferences should be always saved at site level
LPS-41857 Rename scopeGroupId. It should be siteGroupId
LPS-41857 If we configure a portlet to show content from a scope we should check that the returned folders belong to that scope
LPS-41857 Improve consistency. Local service shoul be used
LPS-41857 Remove distraction
LPS-42222 Rollback changes of LPS-31578 and apply the fix in LayoutLocalServiceStagingAdvice. We need getLayouts in PortalImpl in order to get the VirtualLayouts in case it's needed.
LPS-42222 If the group is a user personal site and we are not copying the UserGroup layouts to the user personal site we should do the process in order to obtain the VirtualLayouts and do a merge if it proceeds.
LPS-42222 follow current naming
LPS-42222 comment for why this is necessary
LPS-42222 SF
LPS-40360 Fix, doAsGroupId was not read correctly at control panel and was causing Document and media work incorrectly
LPS-40360 formatting
LPS-41756 We should return portlet preferences instead of portlet setup for configuration actions. These can be different when the portlet is scoped.
LPS-41756 This is not needed. We only need different preferences for scoped portlets when the preferences are owned by the group and that case is automatically handled by PortletPreferencesFactory