Skip to content

Commit 5b1bf48

Browse files
LPD-43475 SF
1 parent 18a88af commit 5b1bf48

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

portal-impl/src/com/liferay/portal/service/impl/ResourcePermissionLocalServiceImpl.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ public void addResourcePermissions(
444444

445445
// Update existing resource permissions
446446

447-
String sql = CustomSQLUtil.get(_UPDATE_ACTION_IDS);
447+
String sql = CustomSQLUtil.get(
448+
ResourcePermissionLocalServiceImpl.class.getName() +
449+
".updateActionIds");
448450

449451
sql = StringUtil.replace(
450452
sql, "[$ROLE_ID$]",
@@ -463,7 +465,9 @@ public void addResourcePermissions(
463465

464466
// Add missing resource permissions
465467

466-
sql = CustomSQLUtil.get(_FIND_MISSING_RESOURCE_PERMISSIONS);
468+
sql = CustomSQLUtil.get(
469+
ResourcePermissionLocalServiceImpl.class.getName() +
470+
".findMissingResourcePermissions");
467471

468472
sqlQuery = session.createSynchronizedSQLQuery(sql);
469473

@@ -2418,13 +2422,6 @@ else if (fetch) {
24182422
return null;
24192423
}
24202424

2421-
private static final String _FIND_MISSING_RESOURCE_PERMISSIONS =
2422-
ResourcePermissionLocalServiceImpl.class.getName() +
2423-
".findMissingResourcePermissions";
2424-
2425-
private static final String _UPDATE_ACTION_IDS =
2426-
ResourcePermissionLocalServiceImpl.class.getName() + ".updateActionIds";
2427-
24282425
private static final Log _log = LogFactoryUtil.getLog(
24292426
ResourcePermissionLocalServiceImpl.class);
24302427

portal-impl/src/com/liferay/portal/service/impl/UserLocalServiceImpl.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7580,7 +7580,9 @@ private void _updateLastLogin(Connection connection, List<User> users)
75807580
throws SQLException {
75817581

75827582
try (PreparedStatement preparedStatement = connection.prepareStatement(
7583-
CustomSQLUtil.get(_UPDATE_LAST_LOGIN))) {
7583+
CustomSQLUtil.get(
7584+
UserLocalServiceImpl.class.getName() +
7585+
".updateLastLogin"))) {
75847586

75857587
for (User user : users) {
75867588
preparedStatement.setTimestamp(
@@ -7616,9 +7618,6 @@ private void _updateLastLogin(Connection connection, List<User> users)
76167618
GetterUtil.getString(
76177619
PropsUtil.get(PropsKeys.PASSWORDS_ENCRYPTION_ALGORITHM));
76187620

7619-
private static final String _UPDATE_LAST_LOGIN =
7620-
UserLocalServiceImpl.class.getName() + ".updateLastLogin";
7621-
76227621
private static final Log _log = LogFactoryUtil.getLog(
76237622
UserLocalServiceImpl.class);
76247623

0 commit comments

Comments
 (0)