18 package org.turro.publication.entity;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.GenerationType;
24 import javax.persistence.Id;
25 import org.turro.string.Strings;
35 @GeneratedValue(strategy=GenerationType.IDENTITY)
36 @Column(name=
"IDENTIFIER")
41 private boolean publishable;
43 private boolean showAuthor;
45 private boolean showDate;
47 private boolean showCategory;
49 private boolean allowComments;
51 private boolean showReads;
53 private boolean allowInterest;
60 this.allowComments = allowComments;
68 this.allowInterest = allowInterest;
92 this.publishable = publishable;
100 this.showAuthor = showAuthor;
108 this.showCategory = showCategory;
116 this.showDate = showDate;
124 this.showReads = showReads;
128 return showAuthor || showDate || showCategory ||
129 allowComments || showReads || allowInterest;
135 return Strings.isBlank(name);
void setShowReads(boolean showReads)
void setShowAuthor(boolean showAuthor)
boolean isAllowComments()
void setPublishable(boolean publishable)
void setAllowInterest(boolean allowInterest)
void setShowDate(boolean showDate)
void setName(String name)
boolean isAllowInterest()
void setAllowComments(boolean allowComments)
void setShowCategory(boolean showCategory)
boolean isSomeDetailToShow()