001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. The ASF licenses this file to You
004: * under the Apache License, Version 2.0 (the "License"); you may not
005: * use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License. For additional information regarding
015: * copyright in this work, please see the NOTICE file in the top level
016: * directory of this distribution.
017: */
018:
019: package org.apache.roller.pojos;
020:
021: import java.io.Serializable;
022: import java.util.Date;
023:
024: /**
025: * Represents a simple static Template.
026: *
027: * This template is not persisted or managed in any way, this class is here
028: * mainly as a wrapper so that we can represent our static template files as
029: * an object.
030: */
031: public class StaticTemplate implements Template, Serializable {
032:
033: private String id = null;
034: private String name = null;
035: private String description = null;
036: private String contents = null;
037: private String link = null;
038: private Date lastModified = new Date();
039: private String templateLanguage = null;
040: private boolean hidden = false;
041: private boolean navbar = false;
042:
043: public StaticTemplate() {
044: }
045:
046: public StaticTemplate(String id, String contents, String lang) {
047: this .id = id;
048: this .name = id;
049: this .description = id;
050: this .contents = contents;
051: this .link = id;
052: this .templateLanguage = lang;
053: }
054:
055: public Template getDecorator() {
056: return null;
057: }
058:
059: public String getId() {
060: return id;
061: }
062:
063: public void setId(String id) {
064: this .id = id;
065: }
066:
067: public String getName() {
068: return name;
069: }
070:
071: public void setName(String name) {
072: this .name = name;
073: }
074:
075: public String getDescription() {
076: return description;
077: }
078:
079: public void setDescription(String description) {
080: this .description = description;
081: }
082:
083: public String getContents() {
084: return contents;
085: }
086:
087: public void setContents(String contents) {
088: this .contents = contents;
089: }
090:
091: public String getLink() {
092: return link;
093: }
094:
095: public void setLink(String link) {
096: this .link = link;
097: }
098:
099: public Date getLastModified() {
100: return lastModified;
101: }
102:
103: public void setLastModified(Date lastModified) {
104: this .lastModified = lastModified;
105: }
106:
107: public String getTemplateLanguage() {
108: return templateLanguage;
109: }
110:
111: public void setTemplateLanguage(String templateLanguage) {
112: this .templateLanguage = templateLanguage;
113: }
114:
115: public boolean isHidden() {
116: return hidden;
117: }
118:
119: public void setHidden(boolean hidden) {
120: this .hidden = hidden;
121: }
122:
123: public void setNavbar(boolean navbar) {
124: this .navbar = navbar;
125: }
126:
127: public boolean isNavbar() {
128: return navbar;
129: }
130:
131: }
|