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/ComponentStatus.java

    r3035 r5549  
    77public enum ComponentStatus {
    88
    9     /**
    10      * Private mode, editable non-public
    11      */
    12     PRIVATE(false, true),
    13     /**
    14      * Development mode, editable and publicly visible
    15      */
    16     DEVELOPMENT(false, true),
    17     /**
    18      * Published mode, non-editable and publicly visible
    19      */
    20     PUBLISHED(true, false),
    21     /**
    22      * Deprecated mode, non-editable and not publicly listed
    23      */
    24     DEPRECATED(false, false);
    25     final boolean publiclyListable;
    26     final boolean editable;
    27 
    28     private ComponentStatus(boolean publiclyListable, boolean editable) {
    29         this.publiclyListable = publiclyListable;
    30         this.editable = editable;
    31     }
    32 
    33     public boolean isEditable() {
    34         return editable;
    35     }
    36 
    37     public boolean isPubliclyListable() {
    38         return publiclyListable;
    39     }
     9   
     10    DEVELOPMENT,
     11   
     12    PRIDUCTION,
     13   
     14    DEPRECATED;
     15   
    4016}
Note: See TracChangeset for help on using the changeset viewer.