Project

General

Profile

Download (1.08 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
 * @since 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
    OAIPMH("OAI-PMH");
25

    
26
    private String groupName;
27

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

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

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