View Javadoc

1   package org.kuali.student.deploy.config;
2   
3   import org.kuali.common.util.config.ConfigUtils;
4   import org.kuali.common.util.config.KualiUtilConfig;
5   import org.kuali.common.util.config.ProjectConfig;
6   
7   public enum KSDeploymentResourcesConfig implements ProjectConfig {
8   
9       METAINF_SQL(KualiUtilConfig.METAINF_SQL.getContextId()), //
10      DB_SOURCE_INIT("db:source:init"), //
11      DB_SOURCE_DUMP("db:source:dump"), //
12      DB_SOURCE_SCM("db:source:scm"), //
13      DB_APP_INIT("db:app:init"), //
14      DB_APP_INIT_KS_IMPEX_RICE_DB("db:app:init:ks-impex-rice-db"), //
15      DB_APP_INIT_KS_IMPEX_APP_DB("db:app:init:ks-impex-app-db"), //
16      DB_APP_INIT_KS_IMPEX_BUNDLED_DB("db:app:init:ks-impex-bundled-db"), //
17      DEPLOY("deploy"), //
18      DEPLOY_KS_IMPEX_RICE_DB("deploy:ks-impex-rice-db"), //
19      DEPLOY_KS_IMPEX_APP_DB("deploy:ks-impex-app-db"), //
20      DEPLOY_KS_IMPEX_BUNDLED_DB("deploy:ks-impex-bundled-db"); //
21  
22      private final String contextId;
23      private final String configId;
24  
25      private KSDeploymentResourcesConfig(String contextId) {
26          this.contextId = contextId;
27          this.configId = ConfigUtils.getConfigId(this);
28      }
29  
30      @Override
31      public String getGroupId() {
32          return DeployProjectConstants.GROUP_ID;
33      }
34  
35      @Override
36      public String getArtifactId() {
37          return DeployProjectConstants.ARTIFACT_ID;
38      }
39  
40      @Override
41      public String getContextId() {
42          return contextId;
43      }
44  
45      @Override
46      public String getConfigId() {
47          return configId;
48      }
49  
50  }