1 package com.atlassian.plugin.spring.scanner;
2
3
4
5
6
7
8
9
10
11 public enum ProductFilter {
12 ALL, JIRA, CONFLUENCE, BAMBOO, BITBUCKET, STASH, CROWD, FECRU, REFAPP;
13
14 public static boolean hasProduct(String productName) {
15 try {
16 ProductFilter filter = valueOf(productName);
17 return (null != filter);
18 } catch (IllegalArgumentException e) {
19 return false;
20 }
21 }
22
23 public String getPerProductFile(final String fileStem) {
24 return fileStem + "-" + name().toLowerCase();
25 }
26 }