Fix open id.

This commit is contained in:
Paulo Gustavo Veiga
2013-03-10 19:07:52 -03:00
parent a1a28efe49
commit 202c3f28a3
99 changed files with 628 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
package com.wisemapping.model;
public enum AuthenticationSchema
{
DATABASE(0),
LDAP(1),
OPENID(2);
private final int schemaCode;
AuthenticationSchema(int schemaCode) {
this.schemaCode = schemaCode;
}
public int getSchemaCode() {
return schemaCode;
}
}

View File

@@ -36,6 +36,7 @@ public class User
private Calendar activationDate;
private Set<String> tags = new HashSet<String>();
private boolean allowSendEmail = false;
private int schema;
private String locale;
@@ -114,4 +115,12 @@ public class User
public void setLocale(@Nullable String locale) {
this.locale = locale;
}
public int getAutheticationCode() {
return this.schema;
}
public void setAuthenticationCode(int code) {
this.schema = code;
}
}