1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.services.seo;
18
19 import java.io.Serializable;
20
21
22
23
24
25
26
27 public class PageMetadataModel implements Serializable {
28
29 public static final PageMetadataModel NULL_PAGE_METADATA_MODEL = new PageMetadataModel();
30
31 private static final long serialVersionUID = -2765258183491567699L;
32
33 private String uri = null;
34
35
36
37 private String rbcontent = null;
38
39 private String keywords = null;
40
41 private String description = null;
42
43 private String title = null;
44
45 private float priority = -1;
46
47 private String frequency = null;
48
49 private boolean sitemap = true;
50
51 private String fullStatus = null;
52
53 private String pageReference = null;
54
55 public String getUri() {
56 if(uri != null && uri.length() > 0)
57 return uri.trim();
58 return uri;
59 }
60 public void setUri(String uri) { this.uri = uri; }
61
62
63
64
65
66
67
68
69 public String getRobotsContent() {
70 if(rbcontent != null && rbcontent.length() > 0)
71 return rbcontent.trim();
72 return rbcontent;
73 }
74 public void setRobotsContent(String rbcontent) { this.rbcontent = rbcontent; }
75
76 public String getDescription() {
77 if(description != null && description.length() > 0)
78 return description.trim();
79 return description;
80 }
81 public void setDescription(String description) { this.description = description; }
82
83 public String getKeywords() {
84 if(keywords != null && keywords.length() > 0)
85 return keywords.trim();
86 return keywords;
87 }
88 public void setKeywords(String keywords) { this.keywords = keywords; }
89
90 public String getTitle() {
91 if(title != null && title.length() > 0)
92 return title.trim();
93 return title;
94 }
95 public void setTitle(String title) { this.title = title; }
96
97 public float getPriority() { return priority; }
98 public void setPriority(float priority) { this.priority= priority; }
99
100 public String getFullStatus() {
101 if(fullStatus != null && fullStatus.length() > 0)
102 return fullStatus.trim();
103 return fullStatus;
104 }
105 public void setFullStatus(String fullStatus) { this.fullStatus= fullStatus; }
106
107 public boolean getSitemap() { return sitemap; }
108 public void setSiteMap(boolean sitemap) { this.sitemap= sitemap; }
109
110 public String getFrequency() {
111 if(frequency != null && frequency.length() > 0)
112 return frequency.trim();
113 return frequency;
114 }
115 public void setFrequency(String frequency) { this.frequency= frequency; }
116
117 public String getPageReference () {
118 if(pageReference != null && pageReference.length() > 0)
119 return pageReference.trim();
120 return pageReference;
121 }
122 public void setPageReference(String pageReference) { this.pageReference = pageReference; }
123 }