You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ts...@apache.org on 2005/03/19 14:06:04 UTC

svn commit: r158236 - in lenya/trunk/src/java/org/apache/lenya/ac: User.java impl/AbstractUser.java

Author: tschlabach
Date: Sat Mar 19 05:06:02 2005
New Revision: 158236

URL: http://svn.apache.org/viewcvs?view=rev&rev=158236
Log:
Added a default CMS menu locale and a default document locale to the User object.

Modified:
    lenya/trunk/src/java/org/apache/lenya/ac/User.java
    lenya/trunk/src/java/org/apache/lenya/ac/impl/AbstractUser.java

Modified: lenya/trunk/src/java/org/apache/lenya/ac/User.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/ac/User.java?view=diff&r1=158235&r2=158236
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/ac/User.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/ac/User.java Sat Mar 19 05:06:02 2005
@@ -39,9 +39,49 @@
     
     /**
      * Sets the password.
-     * @param plainTextPassword The plain text passwrod.
+     * @param plainTextPassword The plain text password.
      */
     void setPassword(String plainTextPassword);
+    
+    /**
+     * Returns the user's preferred locale for the Lenya
+     * CMS menus and CMS screens.
+     * 
+     * The locale can either be a 2 letter country code 
+     * (de, en) or a locale code according to RFC 1766 /
+     * ISO 639 / ISO 3166 (de_DE, de_CH, de_AT, en_US, ...)  
+     */
+    String getDefaultMenuLocale();
+    
+    /**
+     * Sets the user's preferred locale for the Lenya
+     * menu and CMS screens.
+     * 
+     * The locale can either be a 2 letter country code 
+     * (de, en) or a locale code according to RFC 1766 /
+     * ISO 639 / ISO 3166 (de_DE, de_CH, de_AT, en_US, ...)
+     */
+    void setDefaultMenuLocale(String menuLocale);
+    
+    /**
+     * Returns the user's default locale of documents
+     * to be created or edited.
+     * 
+     * The locale can either be a 2 letter country code 
+     * (de, en) or a locale code according to RFC 1766 /
+     * ISO 639 / ISO 3166 (de_DE, de_CH, de_AT, en_US, ...)
+     */
+    String getDefaultDocumentLocale();
+    
+    /**
+     * Sets the user's default locale of documents
+     * to be created or edited.
+     * 
+     * The locale can either be a 2 letter country code 
+     * (de, en) or a locale code according to RFC 1766 /
+     * ISO 639 / ISO 3166 (de_DE, de_CH, de_AT, en_US, ...)
+     */
+    void setDefaultDocumentLocale(String documentLocale); 
     
     /**
      * Save the user

Modified: lenya/trunk/src/java/org/apache/lenya/ac/impl/AbstractUser.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/ac/impl/AbstractUser.java?view=diff&r1=158235&r2=158236
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/ac/impl/AbstractUser.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/ac/impl/AbstractUser.java Sat Mar 19 05:06:02 2005
@@ -29,6 +29,8 @@
 
     private String email;
     private String encryptedPassword;
+    private	String defaultMenuLocale;
+    private String defaultDocumentLocale;
 
     /**
      * Creates a new User.
@@ -93,6 +95,30 @@
         return this.encryptedPassword;
     }
 
+	/**
+	 * @return Returns the defaultDocumentLocale.
+	 */
+	public String getDefaultDocumentLocale() {
+		return defaultDocumentLocale;
+	}
+	/**
+	 * @param defaultDocumentLocale The defaultDocumentLocale to set.
+	 */
+	public void setDefaultDocumentLocale(String defaultDocumentLocale) {
+		this.defaultDocumentLocale = defaultDocumentLocale;
+	}
+	/**
+	 * @return Returns the defaultMenuLocale.
+	 */
+	public String getDefaultMenuLocale() {
+		return defaultMenuLocale;
+	}
+	/**
+	 * @param defaultMenuLocale The defaultMenuLocale to set.
+	 */
+	public void setDefaultMenuLocale(String defaultMenuLocale) {
+		this.defaultMenuLocale = defaultMenuLocale;
+	}
     /**
      * Save the user
      * @throws AccessControlException if the save failed



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org