Ignore:
Timestamp:
08/11/14 16:07:55 (10 years ago)
Author:
olhsha@mpi.nl
Message:

Added group service. Tested via the tomcat on loclahots (test URI and postman), old unit tests are adjusted and work well. Todo: retest on localhost tomcat, look at run-time exceptions, add new unit tests, adjust front-end

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/frontend/DisplayDataNode.java

    r4098 r5549  
    22
    33import clarin.cmdi.componentregistry.ComponentStatus;
     4import clarin.cmdi.componentregistry.RegistrySpace;
    45import java.io.Serializable;
    56
     
    1213    private final boolean isDeleted;
    1314    private BaseDescription desc;
    14     private final ComponentStatus status;
     15    private final RegistrySpace space;
    1516
    1617    public DisplayDataNode(String name, boolean isDeleted) {
    1718        // TODO: what is sensible default status?
    18         this(name, isDeleted, null, ComponentStatus.PRIVATE);
     19        this(name, isDeleted, null, RegistrySpace.PRIVATE);
    1920    }
    2021
    21     public DisplayDataNode(String name, boolean isDeleted, BaseDescription desc, ComponentStatus status) {
     22    public DisplayDataNode(String name, boolean isDeleted, BaseDescription desc, RegistrySpace space) {
    2223        this.name = name;
    2324        this.isDeleted = isDeleted;
    2425        this.desc = desc;
    25         this.status = status;
     26        this.space = space;
    2627    }
    2728
     
    4445    }
    4546
    46     public ComponentStatus getStatus() {
    47         return status;
     47    public RegistrySpace getSpace() {
     48        return space;
    4849    }
    4950}
Note: See TracChangeset for help on using the changeset viewer.