add COMMON_API_CONVERSION_RULE

This commit is contained in:
Shinsuke Sugaya 2017-03-24 23:25:27 +09:00
parent 9000284e26
commit 81bde41282
2 changed files with 3 additions and 1 deletions

View file

@ -342,6 +342,8 @@ public class Constants extends CoreLibConstants {
public static final String[] COMMON_CONVERSION_RULE =
new String[] { "crudMode", "createdBy", "createdTime", "updatedBy", "updatedTime" };
public static final String[] COMMON_API_CONVERSION_RULE = new String[] { "crudMode" };
public static final String USER_INFO = "LoginInfo";
public static final String ES_API_ACCESS_TOKEN = "esApiAccessToken";

View file

@ -163,7 +163,7 @@ public class ApiAdminAccesstokenAction extends FessApiAdminAction {
copyBeanToBean(
body,
entity,
op -> op.exclude(Constants.COMMON_CONVERSION_RULE)
op -> op.exclude(Constants.COMMON_API_CONVERSION_RULE)
.exclude(AdminAccesstokenAction.TOKEN, Constants.PERMISSIONS, AdminAccesstokenAction.EXPIRED_TIME)
.dateConverter(Constants.DEFAULT_DATETIME_FORMAT, AdminAccesstokenAction.EXPIRES));
final PermissionHelper permissionHelper = ComponentUtil.getPermissionHelper();