groupId, true, new ServiceContext());
LayoutLocalServiceUtil.deleteLayouts(
groupId, false, new ServiceContext());
JSONObject jsonObject = getJSONObject(fileName);
if (jsonObject == null) {
return;
}
_defaultLayoutTemplateId = jsonObject.getString(
"layoutTemplateId", StringPool.BLANK);
updateLayoutSetThemeId(jsonObject);
JSONArray layoutsJSONArray = jsonObject.getJSONArray("layouts");
if (layoutsJSONArray != null) {
addLayouts(
false, LayoutConstants.DEFAULT_PARENT_LAYOUT_ID,
layoutsJSONArray);
}
else {
JSONArray publicPagesJSONArray = jsonObject.getJSONArray(
"publicPages");
if (publicPagesJSONArray != null) {
addLayouts(
false, LayoutConstants.DEFAULT_PARENT_LAYOUT_ID,
publicPagesJSONArray);
}
JSONArray privatePagesJSONArray = jsonObject.getJSONArray(
"privatePages");
if (privatePagesJSONArray != null) {
addLayouts(
true, LayoutConstants.DEFAULT_PARENT_LAYOUT_ID,