View Javadoc
1   /**
2    * Copyright 2010-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util.config;
17  
18  import org.kuali.common.util.project.KualiUtilProjectConstants;
19  import org.kuali.common.util.project.model.ProjectIdentifier;
20  
21  /**
22   * @deprecated
23   */
24  @Deprecated
25  public enum KualiUtilConfig implements ProjectConfig {
26  
27  	SCM("scm"), // Config for SCM related process
28  	METAINF_SQL("metainf:sql"), // Config for META-INF processing for SQL resources
29  	METAINF_MPX("metainf:mpx"), // Config for META-INF processing for MPX resources
30  	METAINF_SQL_BUILD("metainf:sql:build"), // Config for META-INF processing for SQL files, only available during a build
31  	METAINF_MPX_BUILD("metainf:mpx:build"); // Config for META-INF processing for MPX files, only available during a build
32  
33  	private final ProjectIdentifier identifier = KualiUtilProjectConstants.PROJECT_ID;
34  	private final String contextId;
35  	private final String configId;
36  
37  	private KualiUtilConfig(String contextId) {
38  		this.contextId = contextId;
39  		this.configId = ConfigUtils.getConfigId(this);
40  	}
41  
42  	@Override
43  	public String getGroupId() {
44  		return identifier.getGroupId();
45  	}
46  
47  	@Override
48  	public String getArtifactId() {
49  		return identifier.getArtifactId();
50  	}
51  
52  	@Override
53  	public String getContextId() {
54  		return contextId;
55  	}
56  
57  	@Override
58  	public String getConfigId() {
59  		return configId;
60  	}
61  
62  }