minor improvements
This commit is contained in:
parent
d1bd33d46d
commit
4b03122a50
5 changed files with 10 additions and 10 deletions
|
@ -87,7 +87,7 @@ public class DataConfig extends BsDataConfig implements CrawlingConfig {
|
|||
|
||||
@Override
|
||||
public String getDocumentBoost() {
|
||||
return Float.valueOf(getBoost().floatValue()).toString();
|
||||
return getBoost().toString();
|
||||
}
|
||||
|
||||
public String getBoostValue() {
|
||||
|
|
|
@ -56,7 +56,7 @@ public class FileConfig extends BsFileConfig implements CrawlingConfig {
|
|||
|
||||
@Override
|
||||
public String getDocumentBoost() {
|
||||
return Float.valueOf(getBoost().floatValue()).toString();
|
||||
return getBoost().toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -57,7 +57,7 @@ public class WebConfig extends BsWebConfig implements CrawlingConfig {
|
|||
|
||||
@Override
|
||||
public String getDocumentBoost() {
|
||||
return Float.valueOf(getBoost().floatValue()).toString();
|
||||
return getBoost().toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -32,7 +32,7 @@ public class UserRoleLoginException extends RuntimeException {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Throwable fillInStackTrace() {
|
||||
public synchronized Throwable fillInStackTrace() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -459,7 +459,7 @@ public class LdapManager {
|
|||
name -> {
|
||||
search(fessConfig.getLdapAdminGroupBaseDn(), fessConfig.getLdapAdminGroupFilter(name), null, adminEnv,
|
||||
subResult -> {
|
||||
if (!!subResult.isEmpty()) {
|
||||
if (subResult.isEmpty()) {
|
||||
final Group group = new Group();
|
||||
group.setName(name);
|
||||
insert(group);
|
||||
|
@ -492,7 +492,7 @@ public class LdapManager {
|
|||
name -> {
|
||||
search(fessConfig.getLdapAdminRoleBaseDn(), fessConfig.getLdapAdminRoleFilter(name), null, adminEnv,
|
||||
subResult -> {
|
||||
if (!!subResult.isEmpty()) {
|
||||
if (subResult.isEmpty()) {
|
||||
final Role role = new Role();
|
||||
role.setName(name);
|
||||
insert(role);
|
||||
|
@ -507,7 +507,7 @@ public class LdapManager {
|
|||
stream -> stream.forEach(name -> {
|
||||
search(fessConfig.getLdapAdminGroupBaseDn(), fessConfig.getLdapAdminGroupFilter(name), null, adminEnv,
|
||||
subResult -> {
|
||||
if (!!subResult.isEmpty()) {
|
||||
if (subResult.isEmpty()) {
|
||||
final Group group = new Group();
|
||||
group.setName(name);
|
||||
insert(group);
|
||||
|
@ -522,7 +522,7 @@ public class LdapManager {
|
|||
stream -> stream.forEach(name -> {
|
||||
search(fessConfig.getLdapAdminRoleBaseDn(), fessConfig.getLdapAdminRoleFilter(name), null, adminEnv,
|
||||
subResult -> {
|
||||
if (!!subResult.isEmpty()) {
|
||||
if (subResult.isEmpty()) {
|
||||
final Role role = new Role();
|
||||
role.setName(name);
|
||||
insert(role);
|
||||
|
@ -869,7 +869,7 @@ public class LdapManager {
|
|||
|
||||
stream(user.getGroupNames()).of(stream -> stream.forEach(name -> {
|
||||
search(fessConfig.getLdapAdminGroupBaseDn(), fessConfig.getLdapAdminGroupFilter(name), null, adminEnv, subResult -> {
|
||||
if (!!subResult.isEmpty()) {
|
||||
if (subResult.isEmpty()) {
|
||||
final Group group = new Group();
|
||||
group.setName(name);
|
||||
insert(group);
|
||||
|
@ -881,7 +881,7 @@ public class LdapManager {
|
|||
}));
|
||||
stream(user.getRoleNames()).of(stream -> stream.forEach(name -> {
|
||||
search(fessConfig.getLdapAdminRoleBaseDn(), fessConfig.getLdapAdminRoleFilter(name), null, adminEnv, subResult -> {
|
||||
if (!!subResult.isEmpty()) {
|
||||
if (subResult.isEmpty()) {
|
||||
final Role role = new Role();
|
||||
role.setName(name);
|
||||
insert(role);
|
||||
|
|
Loading…
Add table
Reference in a new issue