Examples of LayoutSetPrototype


Examples of com.liferay.portal.model.LayoutSetPrototype

    if (jsonObject == null) {
      return;
    }

    LayoutSetPrototype layoutSetPrototype =
      LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototype(
        getTargetClassPK());

    String layoutSetPrototypeSettings = jsonObject.getString(
      "layoutSetPrototypeSettings", StringPool.BLANK);

    layoutSetPrototype.setSettings(layoutSetPrototypeSettings);

    LayoutSetPrototypeLocalServiceUtil.updateLayoutSetPrototype(
      layoutSetPrototype);
  }
View Full Code Here

Examples of com.liferay.portal.model.LayoutSetPrototype

    userId = user.getUserId();

    Group group = null;

    if (targetClassName.equals(LayoutSetPrototype.class.getName())) {
      LayoutSetPrototype layoutSetPrototype = getLayoutSetPrototype(
        companyId, targetValue);

      if (layoutSetPrototype != null) {
        existing = true;
      }
      else {
        layoutSetPrototype =
          LayoutSetPrototypeLocalServiceUtil.addLayoutSetPrototype(
            userId, companyId, getTargetValueMap(),
            StringPool.BLANK, true, true, new ServiceContext());
      }

      group = layoutSetPrototype.getGroup();

      targetClassPK = layoutSetPrototype.getLayoutSetPrototypeId();
    }
    else if (targetClassName.equals(Group.class.getName())) {
      if (targetValue.equals(GroupConstants.GUEST)) {
        group = GroupLocalServiceUtil.getGroup(
          companyId, GroupConstants.GUEST);
View Full Code Here

Examples of com.liferay.portal.model.LayoutSetPrototype

    }

    Group group = null;

    if (targetClassName.equals(LayoutSetPrototype.class.getName())) {
      LayoutSetPrototype layoutSetPrototype = getLayoutSetPrototype(
        companyId, targetValue);

      if (layoutSetPrototype != null) {
        existing = true;
      }
      else {
        layoutSetPrototype =
          LayoutSetPrototypeLocalServiceUtil.addLayoutSetPrototype(
            userId, companyId, getTargetValueMap(),
            StringPool.BLANK, true, true, new ServiceContext());
      }

      group = layoutSetPrototype.getGroup();

      targetClassPK = layoutSetPrototype.getLayoutSetPrototypeId();
    }
    else if (targetClassName.equals(Group.class.getName())) {
      if (targetValue.equals(GroupConstants.GLOBAL)) {
        group = GroupLocalServiceUtil.getCompanyGroup(companyId);
      }
View Full Code Here

Examples of com.liferay.portal.model.LayoutSetPrototype

    if (jsonObject == null) {
      return;
    }

    LayoutSetPrototype layoutSetPrototype =
      LayoutSetPrototypeLocalServiceUtil.getLayoutSetPrototype(
        getTargetClassPK());

    String layoutSetPrototypeSettings = jsonObject.getString(
      "layoutSetPrototypeSettings", StringPool.BLANK);

    layoutSetPrototype.setSettings(layoutSetPrototypeSettings);

    LayoutSetPrototypeLocalServiceUtil.updateLayoutSetPrototype(
      layoutSetPrototype);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.