Project

General

Profile

Download (1.06 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2016 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.remote.config;
10

    
11

    
12
/**
13
 * @author a.kohlbecker
14
 * @date Feb 22, 2016
15
 *
16
 */
17
public enum SwaggerGroupsConfig {
18

    
19
    LSID_AUTHORITY_SERVICES("LSID authority services"),
20
    DATA_EXPORT("Data export"),
21
    GENERIC_REST_API("Generic REST API"),
22
    WEB_PORTAL_SERVICES("Web Portal Services"),
23
    CATALOGUE_SERVICES("Catalogue Services");
24

    
25
    private String groupName;
26

    
27
    SwaggerGroupsConfig(String groupName) {
28
        this.groupName = groupName;
29
    }
30

    
31
    public String groupName() {
32
        return groupName;
33
    }
34

    
35
    public static SwaggerGroupsConfig byGroupName(String groupName) {
36
        for(SwaggerGroupsConfig group : SwaggerGroupsConfig.values()) {
37
            if(group.groupName.equals(groupName)) {
38
                return group;
39
            }
40
        }
41
        return null;
42
    }
43
}
(5-5/5)