Added final to some properties. Added logs. Hiding reset button on
update facility
This commit is contained in:
parent
23f2764ca4
commit
922607256f
|
@ -688,7 +688,7 @@ public class CreateDatasetForm extends Composite {
|
|||
* When the organization name is changed we need to retrieve the list of
|
||||
* profiles and groups
|
||||
*/
|
||||
private void organizationsListboxChangeHandlerBody(OPERATION operation) {
|
||||
private void organizationsListboxChangeHandlerBody(final OPERATION operation) {
|
||||
|
||||
// remove any other product profiles
|
||||
metadataTypeListbox.clear();
|
||||
|
@ -811,7 +811,7 @@ public class CreateDatasetForm extends Composite {
|
|||
*
|
||||
* @param receivedBean
|
||||
*/
|
||||
private void prepareMetadataList(final DatasetBean receivedBean, OPERATION operation) {
|
||||
private void prepareMetadataList(final DatasetBean receivedBean, final OPERATION operation) {
|
||||
|
||||
List<MetaDataProfileBean> profiles = receivedBean.getMetadataList();
|
||||
|
||||
|
|
|
@ -407,6 +407,9 @@ public class UpdateDatasetForm extends Composite {
|
|||
continueButton.setEnabled(false);
|
||||
resetButton.setEnabled(false);
|
||||
addResourcesButtonStep1.setEnabled(false);
|
||||
|
||||
// hide reset button
|
||||
resetButton.setVisible(false);
|
||||
|
||||
// hide tags panel
|
||||
tagsPanel.setVisible(false);
|
||||
|
|
|
@ -1052,8 +1052,10 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
|||
|
||||
try {
|
||||
String scopeFromOrgName = getScopeFromOrgName(datasetBean.getSelectedOrganization());
|
||||
logger.debug("Going to delete dataset with name: {}", datasetBean.getCkanName());
|
||||
return getCatalogue(scopeFromOrgName).deleteDataset(datasetBean.getCkanName());
|
||||
logger.info("Going to delete dataset with name: {}", datasetBean.getCkanName());
|
||||
boolean deleted = getCatalogue(scopeFromOrgName).deleteDataset(datasetBean.getCkanName());
|
||||
logger.info("Dataset {} deleted? ", datasetBean.getCkanName(), deleted);
|
||||
return deleted;
|
||||
} catch (Exception e) {
|
||||
logger.error("Unable to check if such a dataset id already exists", e);
|
||||
throw new Exception("Unable to check if such a dataset id already exists " + e.getMessage());
|
||||
|
|
Loading…
Reference in New Issue