Package com.liferay.portal.kernel.json

Examples of com.liferay.portal.kernel.json.JSONArray


    if (Validator.isNotNull(layoutTemplateId)) {
      layoutTypePortlet.setLayoutTemplateId(
        userId, layoutTemplateId, false);
    }

    JSONArray columnsJSONArray = layoutJSONObject.getJSONArray("columns");

    addLayoutColumns(
      layout, LayoutTypePortletConstants.COLUMN_PREFIX, columnsJSONArray);

    LayoutLocalServiceUtil.updateLayout(
      groupId, layout.isPrivateLayout(), layout.getLayoutId(),
      layout.getTypeSettings());

    JSONArray layoutsJSONArray = layoutJSONObject.getJSONArray("layouts");

    addLayouts(privateLayout, layout.getLayoutId(), layoutsJSONArray);
  }
View Full Code Here


    }

    portletSetup.store();

    if (rootPortletId.equals(PortletKeys.NESTED_PORTLETS)) {
      JSONArray columnsJSONArray =
        portletPreferencesJSONObject.getJSONArray("columns");

      StringBundler sb = new StringBundler(4);

      sb.append(StringPool.UNDERLINE);
View Full Code Here

    if (columnsJSONArray == null) {
      return;
    }

    for (int i = 0; i < columnsJSONArray.length(); i++) {
      JSONArray columnJSONArray = columnsJSONArray.getJSONArray(i);

      addLayoutColumn(layout, columnPrefix + (i + 1), columnJSONArray);
    }
  }
View Full Code Here

  }

  protected String[] getJSONArrayAsStringArray(
    JSONObject jsonObject, String key) {

    JSONArray jsonArray = jsonObject.getJSONArray(key);

    if (jsonArray != null) {
      return ArrayUtil.toStringArray(jsonArray);
    }
View Full Code Here

    DDMStructureLocalServiceUtil.deleteStructures(groupId);

    JSONObject jsonObject = getJSONObject(fileName);

    if (jsonObject != null) {
      JSONArray assetsJSONArray = jsonObject.getJSONArray("assets");

      setupAssets(assetsJSONArray);
    }

    addDLFileEntries(_DL_DOCUMENTS_DIR_NAME);
View Full Code Here

    _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,
View Full Code Here

    if (Validator.isNotNull(layoutTemplateId)) {
      layoutTypePortlet.setLayoutTemplateId(
        userId, layoutTemplateId, false);
    }

    JSONArray columnsJSONArray = layoutJSONObject.getJSONArray("columns");

    addLayoutColumns(
      layout, LayoutTypePortletConstants.COLUMN_PREFIX, columnsJSONArray);

    LayoutLocalServiceUtil.updateLayout(
      groupId, layout.isPrivateLayout(), layout.getLayoutId(),
      layout.getTypeSettings());

    JSONArray layoutsJSONArray = layoutJSONObject.getJSONArray("layouts");

    addLayouts(privateLayout, layout.getLayoutId(), layoutsJSONArray);
  }
View Full Code Here

    }

    portletSetup.store();

    if (rootPortletId.equals(PortletKeys.NESTED_PORTLETS)) {
      JSONArray columnsJSONArray =
        portletPreferencesJSONObject.getJSONArray("columns");

      StringBundler sb = new StringBundler(4);

      sb.append(StringPool.UNDERLINE);
View Full Code Here

    if (columnsJSONArray == null) {
      return;
    }

    for (int i = 0; i < columnsJSONArray.length(); i++) {
      JSONArray columnJSONArray = columnsJSONArray.getJSONArray(i);

      addLayoutColumn(layout, columnPrefix + (i + 1), columnJSONArray);
    }
  }
View Full Code Here

    layoutPrototype =
      LayoutPrototypeLocalServiceUtil.addLayoutPrototype(
        userId, companyId, getMap(name), name, true, serviceContext);

    JSONArray columnsJSONArray = layoutTemplateJSONObject.getJSONArray(
      "columns");

    Layout layout = layoutPrototype.getLayout();

    addLayoutColumns(
View Full Code Here

TOP

Related Classes of com.liferay.portal.kernel.json.JSONArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.