Skip to content

Commit

Permalink
LPD-41065 Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Nov 10, 2024
1 parent 34a8442 commit a1ff55b
Showing 1 changed file with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1176,8 +1176,8 @@ private void _addObjectDefinitions(

_replaceObjectDefinitionValues(
serviceBuilderObjectDefinition.getClassName(),
serviceBuilderObjectDefinition.getObjectDefinitionId(),
serviceBuilderObjectDefinition.getName(),
serviceBuilderObjectDefinition.getObjectDefinitionId(),
stringUtilReplaceValues);
}

Expand Down Expand Up @@ -1243,8 +1243,8 @@ private void _addObjectDefinitions(
}

_replaceObjectDefinitionValues(
objectDefinition.getClassName(), objectDefinition.getId(),
objectDefinition.getName(), stringUtilReplaceValues);
objectDefinition.getClassName(), objectDefinition.getName(),
objectDefinition.getId(), stringUtilReplaceValues);
}
}

Expand Down Expand Up @@ -5683,26 +5683,22 @@ private String _replace(String s, String oldSub, String newSub) {
}

private void _replaceObjectDefinitionValues(
String objectDefinitionClassName, long objectDefinitionId,
String objectDefinitionName,
String className, String name, long objectDefinitionId,
Map<String, String> stringUtilReplaceValues) {

stringUtilReplaceValues.put(
"OBJECT_DEFINITION_CLASS_NAME:" + objectDefinitionName,
objectDefinitionClassName);
"OBJECT_DEFINITION_CLASS_NAME:" + name, className);
stringUtilReplaceValues.put(
"OBJECT_DEFINITION_ID:" + objectDefinitionName,
String.valueOf(objectDefinitionId));
"OBJECT_DEFINITION_ID:" + name, String.valueOf(objectDefinitionId));

if (!objectDefinitionName.contains(StringPool.POUND)) {
if (!name.contains(StringPool.POUND)) {
return;
}

stringUtilReplaceValues.put(
"OBJECT_DEFINITION_PORTLET_ID:" + objectDefinitionName,
"OBJECT_DEFINITION_PORTLET_ID:" + name,
ObjectPortletKeys.OBJECT_DEFINITIONS +
StringUtil.split(objectDefinitionClassName, StringPool.POUND)
[1]);
StringUtil.split(className, StringPool.POUND)[1]);
}

private void _setDefaultLayoutUtilityPageEntries(
Expand Down

0 comments on commit a1ff55b

Please sign in to comment.