Skip to content
Snippets Groups Projects
Commit 901e0259 authored by buczekp's avatar buczekp
Browse files

bugfix: refresh experiment browser when projects/spaces are deleted/updated

SVN: 21654
parent 2c68e6c5
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.grid; package ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.grid;
import static ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind.addAny;
import static ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind.createOrDelete; import static ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind.createOrDelete;
import static ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind.edit; import static ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind.edit;
...@@ -29,8 +30,6 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKin ...@@ -29,8 +30,6 @@ import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKin
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind.ObjectKind; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.DatabaseModificationKind.ObjectKind;
/** /**
*
*
* @author Franz-Josef Elmer * @author Franz-Josef Elmer
*/ */
public class GridUtils public class GridUtils
...@@ -44,9 +43,9 @@ public class GridUtils ...@@ -44,9 +43,9 @@ public class GridUtils
relevantModifications.addAll(GridUtils.getGridRelevantModifications(entityKind, true)); relevantModifications.addAll(GridUtils.getGridRelevantModifications(entityKind, true));
return relevantModifications.toArray(DatabaseModificationKind.EMPTY_ARRAY); return relevantModifications.toArray(DatabaseModificationKind.EMPTY_ARRAY);
} }
public final static Set<DatabaseModificationKind> getGridRelevantModifications( public final static Set<DatabaseModificationKind> getGridRelevantModifications(
ObjectKind entity, boolean withProject) ObjectKind entity, boolean withProjectAndSpace)
{ {
Set<DatabaseModificationKind> result = new HashSet<DatabaseModificationKind>(); Set<DatabaseModificationKind> result = new HashSet<DatabaseModificationKind>();
result.add(createOrDelete(entity)); result.add(createOrDelete(entity));
...@@ -54,9 +53,10 @@ public class GridUtils ...@@ -54,9 +53,10 @@ public class GridUtils
result.add(createOrDelete(ObjectKind.PROPERTY_TYPE_ASSIGNMENT)); result.add(createOrDelete(ObjectKind.PROPERTY_TYPE_ASSIGNMENT));
result.add(edit(ObjectKind.PROPERTY_TYPE_ASSIGNMENT)); result.add(edit(ObjectKind.PROPERTY_TYPE_ASSIGNMENT));
result.add(edit(ObjectKind.VOCABULARY_TERM)); result.add(edit(ObjectKind.VOCABULARY_TERM));
if (withProject) if (withProjectAndSpace)
{ {
result.add(edit((ObjectKind.PROJECT))); addAny(result, ObjectKind.PROJECT);
addAny(result, ObjectKind.SPACE);
} }
return result; return result;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment