1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-24 07:01:44 +00:00

Closes #30: Delete locale & theme concept

This commit is contained in:
jendib
2015-09-07 23:49:12 +02:00
parent 0fe51d355c
commit a95dcf488d
25 changed files with 43 additions and 488 deletions

View File

@@ -2,8 +2,6 @@ package com.sismics.security;
import org.joda.time.DateTimeZone;
import java.util.Locale;
/**
* Anonymous principal.
*
@@ -12,11 +10,6 @@ import java.util.Locale;
public class AnonymousPrincipal implements IPrincipal {
public static final String ANONYMOUS = "anonymous";
/**
* User locale.
*/
private Locale locale;
/**
* User timezone.
*/
@@ -44,20 +37,6 @@ public class AnonymousPrincipal implements IPrincipal {
return true;
}
@Override
public Locale getLocale() {
return locale;
}
/**
* Setter of locale.
*
* @param locale locale
*/
public void setLocale(Locale locale) {
this.locale = locale;
}
@Override
public DateTimeZone getDateTimeZone() {
return dateTimeZone;

View File

@@ -1,9 +1,8 @@
package com.sismics.security;
import org.joda.time.DateTimeZone;
import java.security.Principal;
import java.util.Locale;
import org.joda.time.DateTimeZone;
/**
* Interface of principals.
@@ -25,13 +24,6 @@ public interface IPrincipal extends Principal {
*/
public String getId();
/**
* Returns the locale of the principal.
*
* @return Locale of the principal
*/
public Locale getLocale();
/**
* Returns the timezone of the principal.
*

View File

@@ -1,10 +1,9 @@
package com.sismics.security;
import org.joda.time.DateTimeZone;
import java.util.Locale;
import java.util.Set;
import org.joda.time.DateTimeZone;
/**
* Authenticated users principal.
*
@@ -21,11 +20,6 @@ public class UserPrincipal implements IPrincipal {
*/
private String name;
/**
* Locale of the principal.
*/
private Locale locale;
/**
* Timezone of the principal.
*/
@@ -85,20 +79,6 @@ public class UserPrincipal implements IPrincipal {
this.name = name;
}
@Override
public Locale getLocale() {
return locale;
}
/**
* Setter of locale.
*
* @param locale locale
*/
public void setLocale(Locale locale) {
this.locale = locale;
}
@Override
public DateTimeZone getDateTimeZone() {
return dateTimeZone;