source: ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/ComponentStatus.java @ 3035

Last change on this file since 3035 was 3035, checked in by twagoo, 11 years ago

Renamed DEVELOPMENT status to PRIVATE and added DEVELOPMENT and DEPRECATED as statuses
Refs #142

File size: 869 bytes
Line 
1package clarin.cmdi.componentregistry;
2
3/**
4 *
5 * @author Twan Goosen <twan.goosen@mpi.nl>
6 */
7public enum ComponentStatus {
8
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    }
40}
Note: See TracBrowser for help on using the repository browser.