SID = null;
}
@Override
public Roles getRoles() {
Roles r = null;
if (isSignedIn()) {
userLevel = Application.getBean(UserManager.class).getUserLevelByID(userId);
AuthLevelUtil authLevel = Application.getBean(AuthLevelUtil.class);
r = new Roles(Roles.USER);
if (authLevel.checkUserLevel(userLevel)) {
r.add(Roles.USER);
}
if (authLevel.checkAdminLevel(userLevel)) {
r.add(Roles.ADMIN);
}
}
return r;
}