Changeset 5549 for ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/frontend/DisplayDataNode.java
- Timestamp:
- 08/11/14 16:07:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/frontend/DisplayDataNode.java
r4098 r5549 2 2 3 3 import clarin.cmdi.componentregistry.ComponentStatus; 4 import clarin.cmdi.componentregistry.RegistrySpace; 4 5 import java.io.Serializable; 5 6 … … 12 13 private final boolean isDeleted; 13 14 private BaseDescription desc; 14 private final ComponentStatus status;15 private final RegistrySpace space; 15 16 16 17 public DisplayDataNode(String name, boolean isDeleted) { 17 18 // TODO: what is sensible default status? 18 this(name, isDeleted, null, ComponentStatus.PRIVATE);19 this(name, isDeleted, null, RegistrySpace.PRIVATE); 19 20 } 20 21 21 public DisplayDataNode(String name, boolean isDeleted, BaseDescription desc, ComponentStatus status) {22 public DisplayDataNode(String name, boolean isDeleted, BaseDescription desc, RegistrySpace space) { 22 23 this.name = name; 23 24 this.isDeleted = isDeleted; 24 25 this.desc = desc; 25 this.s tatus = status;26 this.space = space; 26 27 } 27 28 … … 44 45 } 45 46 46 public ComponentStatus getStatus() {47 return s tatus;47 public RegistrySpace getSpace() { 48 return space; 48 49 } 49 50 }
Note: See TracChangeset
for help on using the changeset viewer.