[jboss-cvs] jboss-seam/examples/wiki/src/org/jboss/seam/wiki/core/prefs ...
Christian Bauer
christian.bauer at jboss.com
Fri Feb 16 11:26:45 EST 2007
User: cbauer
Date: 07/02/16 11:26:45
Modified: examples/wiki/src/org/jboss/seam/wiki/core/prefs
GlobalPreferences.java
Log:
Fixed the Wiki, basics work now
Revision Changes Path
1.2 +33 -3 jboss-seam/examples/wiki/src/org/jboss/seam/wiki/core/prefs/GlobalPreferences.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: GlobalPreferences.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/org/jboss/seam/wiki/core/prefs/GlobalPreferences.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- GlobalPreferences.java 1 Feb 2007 07:08:26 -0000 1.1
+++ GlobalPreferences.java 16 Feb 2007 16:26:45 -0000 1.2
@@ -1,9 +1,39 @@
package org.jboss.seam.wiki.core.prefs;
-import org.jboss.seam.annotations.Name;
+import javax.faces.context.FacesContext;
- at Name("globalPrefs")
public class GlobalPreferences {
+ private URLRendering defaultURLRendering;
+ private String permlinkSuffix;
+ private String themeName;
+
+ public URLRendering getDefaultURLRendering() {
+ return defaultURLRendering;
+ }
+
+ public void setDefaultURLRendering(String enumName) {
+ defaultURLRendering = URLRendering.valueOf(enumName);
+ }
+
+ public String getPermlinkSuffix() {
+ return permlinkSuffix;
+ }
+
+ public void setPermlinkSuffix(String permlinkSuffix) {
+ this.permlinkSuffix = permlinkSuffix;
+ }
+
+ public String getThemeName() {
+ return themeName;
+ }
+
+ public void setThemeName(String themeName) {
+ this.themeName = themeName;
+ }
+
+ public enum URLRendering {
+ PERMLINK, WIKILINK
+ }
}
More information about the jboss-cvs-commits
mailing list