Package com.liferay.portal.kernel.json

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


  }

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

    JSONArray jsonArray = jsonObject.getJSONArray(key);

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


    }

    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

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.