protected void initUI(final DataStoreInfo dataStoreInfo) { // the confirm dialog dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(dataStoreInfo); if (dataStoreInfo.getId() != null) { //null id means detached from catalog, don't bother with uniqueness check final String wsId = dataStoreInfo.getWorkspace().getId(); workspacePanel.getFormComponent().add( new CheckExistingResourcesInWorkspaceValidator(dataStoreInfo.getId(), wsId)); } }
@Override void initUI(CoverageStoreInfo store) { dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(store); if (store.getId() != null) { //store id == null means the store is not part of catalog, forgo uniqueness check String workspaceId = store.getWorkspace().getId(); workspacePanel.getFormComponent().add( new CheckExistingResourcesInWorkspaceValidator(store.getId(), workspaceId)); } }
protected void initUI(final DataStoreInfo dataStoreInfo) { // the confirm dialog dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(dataStoreInfo); if (dataStoreInfo.getId() != null) { // null id means detached from catalog, don't bother with uniqueness check final String wsId = dataStoreInfo.getWorkspace().getId(); workspacePanel .getFormComponent() .add( new CheckExistingResourcesInWorkspaceValidator( dataStoreInfo.getId(), wsId)); } }
@Override void initUI(CoverageStoreInfo store) { dialog = new GeoServerDialog("dialog"); add(dialog); super.initUI(store); if (store.getId() != null) { // store id == null means the store is not part of catalog, forgo uniqueness check String workspaceId = store.getWorkspace().getId(); workspacePanel .getFormComponent() .add( new CheckExistingResourcesInWorkspaceValidator( store.getId(), workspaceId)); } }