All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gravitee.management.model.PageEntity Maven / Gradle / Ivy

/**
 * Copyright (C) 2015 The Gravitee team (http://gravitee.io)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.gravitee.management.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.gravitee.management.model.search.Indexable;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @author Titouan COMPIEGNE
 * @author Guillaume GILLON 
 */
public class PageEntity implements Indexable {

	private String id;
	private String name;
	private String type;
	private String content;
	private int order;
	private String lastContributor;
	private boolean published;
	private Date lastModificationDate;
	private String contentType;
	private PageSourceEntity source;
	private Map configuration;
	private boolean homepage;
	private String parentId;
	@JsonProperty("excluded_groups")
	private List excludedGroups;
	private Map metadata;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public String getLastContributor() {
		return lastContributor;
	}

	public void setLastContributor(String lastContributor) {
		this.lastContributor = lastContributor;
	}

	public boolean isPublished() {
		return published;
	}

	public void setPublished(boolean published) {
		this.published = published;
	}

	public Date getLastModificationDate() {
		return lastModificationDate;
	}

	public void setLastModificationDate(Date lastModificationDate) {
		this.lastModificationDate = lastModificationDate;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public PageSourceEntity getSource() {
		return source;
	}

	public void setSource(PageSourceEntity source) {
		this.source = source;
	}

	public Map getConfiguration() {
		return configuration;
	}

	public void setConfiguration(Map configuration) {
		this.configuration = configuration;
	}

	public boolean isHomepage() {
		return homepage;
	}

	public void setHomepage(boolean homepage) {
		this.homepage = homepage;
	}

	public List getExcludedGroups() {
		return excludedGroups;
	}

	public void setExcludedGroups(List excludedGroups) {
		this.excludedGroups = excludedGroups;
	}

	public String getParentId() { return parentId; }

	public void setParentId(String parentId) { this.parentId = parentId; }

	public Map getMetadata() {
		return metadata;
	}

	public void setMetadata(Map metadata) {
		this.metadata = metadata;
	}

	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof PageEntity)) {
			return false;
		}
		PageEntity that = (PageEntity) o;
		return Objects.equals(id, that.id);
	}

	public int hashCode() {
		return Objects.hash(id);
	}

	@Override
	public String toString() {
		return "PageEntity{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", type='" + type + '\'' +
				", content='" + content + '\'' +
				", order=" + order +
				", lastContributor='" + lastContributor + '\'' +
				", published=" + published +
				", lastModificationDate=" + lastModificationDate +
				", contentType='" + contentType + '\'' +
				", source=" + source +
				", configuration=" + configuration +
				", homepage=" + homepage +
				", parentId='" + parentId + '\'' +
				", excludedGroups=" + excludedGroups +
				", metadata='" + metadata + '\'' +
				'}';
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy