run.halo.app.search.post.PostDoc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
API of halo project, connecting by other projects.
The newest version!
package run.halo.app.search.post;
import java.time.Instant;
import org.springframework.util.Assert;
@Deprecated(forRemoval = true, since = "2.17")
public record PostDoc(String name,
String title,
String excerpt,
String content,
Instant publishTimestamp,
String permalink) {
public static final String ID_FIELD = "name";
public PostDoc {
Assert.hasText(name, "Name must not be blank");
Assert.hasText(title, "Title must not be blank");
Assert.hasText(permalink, "Permalink must not be blank");
Assert.notNull(publishTimestamp, "PublishTimestamp must not be null");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy