CmsBuiltinPage.java
package com.fwmotion.threescale.cms.model;
import jakarta.annotation.Nullable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.time.OffsetDateTime;
public class CmsBuiltinPage implements CmsBuiltinTemplate {
private OffsetDateTime createdAt;
private OffsetDateTime updatedAt;
private Long id;
private String systemName;
private String contentType;
private String handler;
private Boolean liquidEnabled;
private String path;
private Boolean hidden;
private String layout;
private String title;
@Override
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
@Override
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
@Nullable
@Override
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getSystemName() {
return systemName;
}
public void setSystemName(String systemName) {
this.systemName = systemName;
}
public String getContentType() {
return contentType;
}
public void setContentType(String contentType) {
this.contentType = contentType;
}
public String getHandler() {
return handler;
}
public void setHandler(String handler) {
this.handler = handler;
}
public Boolean getLiquidEnabled() {
return liquidEnabled;
}
public void setLiquidEnabled(Boolean liquidEnabled) {
this.liquidEnabled = liquidEnabled;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public Boolean getHidden() {
return hidden;
}
public void setHidden(Boolean hidden) {
this.hidden = hidden;
}
public String getLayout() {
return layout;
}
public void setLayout(String layout) {
this.layout = layout;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof CmsBuiltinPage that)) return false;
return new EqualsBuilder().append(getId(), that.getId()).isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37).append(getId()).toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this)
.append("createdAt", createdAt)
.append("updatedAt", updatedAt)
.append("id", id)
.append("systemName", systemName)
.append("contentType", contentType)
.append("handler", handler)
.append("liquidEnabled", liquidEnabled)
.append("path", path)
.append("hidden", hidden)
.append("layout", layout)
.append("title", title)
.toString();
}
}