use of org.broadleafcommerce.openadmin.dto.GroupMetadata in project BroadleafCommerce by BroadleafCommerce.
the class BasicEntityMetadataProvider method applyGroupMetadataOverrideViaXml.
private void applyGroupMetadataOverrideViaXml(String overrideKey, GroupMetadataOverride override, Map<String, TabMetadata> metadata) {
String[] keySplit = overrideKey.split("-@-");
String tabName = keySplit[0];
String groupName = keySplit[1];
GroupMetadata group = getGroupFromMetadata(groupName, metadata);
if (group != null) {
if (override.getName() != null) {
group.setGroupName(override.getName());
}
if (override.getOrder() != null) {
group.setGroupOrder(override.getOrder());
}
if (override.getUntitled() != null) {
group.setUntitled(override.getUntitled());
}
if (override.getColumn() != null) {
group.setColumn(override.getColumn());
}
if (override.getCollapsed() != null) {
group.setCollapsed(override.getCollapsed());
}
if (override.getTooltip() != null) {
group.setTooltip(override.getTooltip());
}
} else {
buildGroupFromMetadataOverride(groupName, tabName, override, metadata);
}
}
Aggregations