com.liferay.headless.delivery.dto.v1_0.PageDropZoneDefinition Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.headless.delivery.dto.v1_0;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.liferay.petra.function.UnsafeSupplier;
import com.liferay.petra.string.StringBundler;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.util.StringUtil;
import com.liferay.portal.vulcan.graphql.annotation.GraphQLField;
import com.liferay.portal.vulcan.graphql.annotation.GraphQLName;
import com.liferay.portal.vulcan.util.ObjectMapperUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Iterator;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Javier Gamarra
* @generated
*/
@Generated("")
@GraphQLName(
description = "Represent a definition of a Page drop zone.",
value = "PageDropZoneDefinition"
)
@JsonFilter("Liferay.Vulcan")
@XmlRootElement(name = "PageDropZoneDefinition")
public class PageDropZoneDefinition implements Serializable {
public static PageDropZoneDefinition toDTO(String json) {
return ObjectMapperUtil.readValue(PageDropZoneDefinition.class, json);
}
public static PageDropZoneDefinition unsafeToDTO(String json) {
return ObjectMapperUtil.unsafeReadValue(
PageDropZoneDefinition.class, json);
}
@Schema(
description = "The page drop zone's allowed or unallowed fragments."
)
@Valid
public Object getFragmentSettings() {
if (_fragmentSettingsSupplier != null) {
fragmentSettings = _fragmentSettingsSupplier.get();
_fragmentSettingsSupplier = null;
}
return fragmentSettings;
}
public void setFragmentSettings(Object fragmentSettings) {
this.fragmentSettings = fragmentSettings;
_fragmentSettingsSupplier = null;
}
@JsonIgnore
public void setFragmentSettings(
UnsafeSupplier