Resolved the conflicts
This commit is contained in:
@@ -76,25 +76,6 @@ public class DistributionDetails extends AbstractNamedVersionedEntityTableDetail
|
|||||||
|
|
||||||
super.init();
|
super.init();
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
@EventBusListenerMethod(scope = EventScope.SESSION)
|
|
||||||
void onEvent(final MetadataEvent event) {
|
|
||||||
UI.getCurrent()
|
|
||||||
.access(() -> {
|
|
||||||
final DistributionSetMetadata dsMetadata = event.getDistributionSetMetadata();
|
|
||||||
if (dsMetadata != null && isDistributionSetSelected(dsMetadata.getDistributionSet())) {
|
|
||||||
if (event.getMetadataUIEvent() == MetadataEvent.MetadataUIEvent.CREATE_DISTRIBUTION_SET_METADATA) {
|
|
||||||
dsMetadataTable.createMetadata(event.getDistributionSetMetadata().getKey());
|
|
||||||
} else if (event.getMetadataUIEvent() == MetadataEvent.MetadataUIEvent.DELETE_DISTRIBUTION_SET_METADATA) {
|
|
||||||
dsMetadataTable.deleteMetadata(event.getDistributionSetMetadata().getKey());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
>>>>>>> refs/heads/master
|
|
||||||
|
|
||||||
@EventBusListenerMethod(scope = EventScope.SESSION)
|
@EventBusListenerMethod(scope = EventScope.SESSION)
|
||||||
void onEvent(final DistributionTableEvent distributionTableEvent) {
|
void onEvent(final DistributionTableEvent distributionTableEvent) {
|
||||||
@@ -214,41 +195,25 @@ public class DistributionDetails extends AbstractNamedVersionedEntityTableDetail
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getShowMetadataButtonId() {
|
protected String getShowMetadataButtonId() {
|
||||||
<<<<<<< HEAD
|
|
||||||
final DistributionSetIdName lastselectedDistDS = managementUIState.getLastSelectedDistribution().isPresent()
|
final DistributionSetIdName lastselectedDistDS = managementUIState.getLastSelectedDistribution().isPresent()
|
||||||
? managementUIState.getLastSelectedDistribution().get() : null;
|
? managementUIState.getLastSelectedDistribution().get() : null;
|
||||||
=======
|
|
||||||
final DistributionSetIdName lastselectedDistDS = managementUIState.getLastSelectedDistribution().isPresent() ? managementUIState
|
|
||||||
.getLastSelectedDistribution().get() : null;
|
|
||||||
>>>>>>> refs/heads/master
|
|
||||||
return SPUIComponentIdProvider.DS_TABLE_MANAGE_METADATA_ID + "." + lastselectedDistDS.getName() + "."
|
return SPUIComponentIdProvider.DS_TABLE_MANAGE_METADATA_ID + "." + lastselectedDistDS.getName() + "."
|
||||||
+ lastselectedDistDS.getVersion();
|
+ lastselectedDistDS.getVersion();
|
||||||
}
|
}
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
private boolean isDistributionSetSelected(final DistributionSet ds) {
|
private boolean isDistributionSetSelected(final DistributionSet ds) {
|
||||||
final DistributionSetIdName lastselectedManageDS = managementUIState.getLastSelectedDistribution().isPresent()
|
final DistributionSetIdName lastselectedManageDS = managementUIState.getLastSelectedDistribution().isPresent()
|
||||||
? managementUIState.getLastSelectedDistribution().get() : null;
|
? managementUIState.getLastSelectedDistribution().get() : null;
|
||||||
return ds != null && lastselectedManageDS != null && lastselectedManageDS.getName().equals(ds.getName())
|
return ds != null && lastselectedManageDS != null && lastselectedManageDS.getName().equals(ds.getName())
|
||||||
=======
|
|
||||||
private boolean isDistributionSetSelected(final DistributionSet ds) {
|
|
||||||
final DistributionSetIdName lastselectedManageDS = managementUIState.getLastSelectedDistribution().isPresent() ? managementUIState
|
|
||||||
.getLastSelectedDistribution().get() : null;
|
|
||||||
return ds!=null && lastselectedManageDS != null && lastselectedManageDS.getName().equals(ds.getName())
|
|
||||||
>>>>>>> refs/heads/master
|
|
||||||
&& lastselectedManageDS.getVersion().endsWith(ds.getVersion());
|
&& lastselectedManageDS.getVersion().endsWith(ds.getVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void showMetadata(final ClickEvent event) {
|
protected void showMetadata(final ClickEvent event) {
|
||||||
<<<<<<< HEAD
|
|
||||||
final DistributionSet ds = distributionSetManagement
|
final DistributionSet ds = distributionSetManagement
|
||||||
.findDistributionSetByIdWithDetails(getSelectedBaseEntityId());
|
.findDistributionSetByIdWithDetails(getSelectedBaseEntityId());
|
||||||
UI.getCurrent().addWindow(dsMetadataPopupLayout.getWindow(ds, null));
|
UI.getCurrent().addWindow(dsMetadataPopupLayout.getWindow(ds, null));
|
||||||
=======
|
|
||||||
final DistributionSet ds = distributionSetManagement.findDistributionSetByIdWithDetails(getSelectedBaseEntityId());
|
|
||||||
UI.getCurrent().addWindow(dsMetadataPopupLayout.getWindow(ds,null));
|
|
||||||
>>>>>>> refs/heads/master
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user