001/**
002 * Copyright 2010-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.common.util;
017
018import java.util.Arrays;
019import java.util.Collections;
020import java.util.List;
021
022/**
023 * @deprecated
024 */
025@Deprecated
026public class DefaultProjectContext implements ProjectContext {
027
028        public static final List<String> DEFAULT_PROPERTY_LOCATIONS = Collections.emptyList();
029
030        @Deprecated
031        public static final String DEFAULT_GROUP_ID = org.kuali.common.util.ProjectUtils.KUALI_COMMON_GROUP_ID;
032
033        List<String> propertyLocations = DEFAULT_PROPERTY_LOCATIONS;
034        @Deprecated
035        String groupId = DEFAULT_GROUP_ID;
036        String artifactId;
037
038        public DefaultProjectContext() {
039                this(null);
040        }
041
042        public DefaultProjectContext(String artifactId) {
043                this(DEFAULT_GROUP_ID, artifactId, DEFAULT_PROPERTY_LOCATIONS);
044        }
045
046        public DefaultProjectContext(String groupId, String artifactId) {
047                this(groupId, artifactId, DEFAULT_PROPERTY_LOCATIONS);
048        }
049
050        public DefaultProjectContext(String groupId, String artifactId, String propertyLocation) {
051                this(groupId, artifactId, Arrays.asList(propertyLocation));
052        }
053
054        public DefaultProjectContext(String artifactId, List<String> propertyLocations) {
055                this(DEFAULT_GROUP_ID, artifactId, propertyLocations);
056        }
057
058        public DefaultProjectContext(String groupId, String artifactId, List<String> propertyLocations) {
059                super();
060                this.groupId = groupId;
061                this.artifactId = artifactId;
062                this.propertyLocations = propertyLocations;
063        }
064
065        @Override
066        public String getGroupId() {
067                return groupId;
068        }
069
070        @Override
071        public String getArtifactId() {
072                return artifactId;
073        }
074
075        @Override
076        public List<String> getPropertyLocations() {
077                return propertyLocations;
078        }
079
080        public void setGroupId(String groupId) {
081                this.groupId = groupId;
082        }
083
084        public void setArtifactId(String artifactId) {
085                this.artifactId = artifactId;
086        }
087
088        public void setPropertyLocations(List<String> propertyLocations) {
089                this.propertyLocations = propertyLocations;
090        }
091}