io.gravitee.management.model.PageListItem 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 java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/**
* @author David BRASSELY (brasseld at gmail.com)
* @author Guillaume GILLON
*/
public class PageListItem {
private String id;
private String name;
private PageType type;
private int order;
private String lastContributor;
private boolean published;
private PageSourceEntity source;
private Map configuration;
private boolean homepage;
private List pages;
@JsonProperty("excluded_groups")
private List excludedGroups;
@JsonProperty("updated_at")
private Date updatedAt;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getLastContributor() {
return lastContributor;
}
public void setLastContributor(String lastContributor) {
this.lastContributor = lastContributor;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getOrder() {
return order;
}
public void setOrder(int order) {
this.order = order;
}
public PageType getType() {
return type;
}
public void setType(PageType type) {
this.type = type;
}
public boolean isPublished() {
return published;
}
public void setPublished(boolean published) {
this.published = published;
}
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 List getPages() { return pages; }
public void setPages(List pages) { this.pages = pages; }
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PageListItem that = (PageListItem) o;
return Objects.equals(id, that.id);
}
@Override
public int hashCode() {
return Objects.hash(id);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy