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.project.model;
017
018import static org.kuali.common.util.project.KualiProjectConstants.KUALI_COMMON_GROUP_ID;
019
020import java.util.Arrays;
021import java.util.Collections;
022import java.util.List;
023
024import org.kuali.common.util.Assert;
025import org.kuali.common.util.project.KualiProjectConstants;
026
027/**
028 * @deprecated
029 */
030@Deprecated
031public enum KualiGroup {
032
033        COMMON(KUALI_COMMON_GROUP_ID), //
034        /**
035         * @deprecated
036         */
037        @Deprecated
038        RICE(KualiProjectConstants.RICE_GROUP_ID), //
039        /**
040         * @deprecated
041         */
042        @Deprecated
043        STUDENT(KualiProjectConstants.STUDENT_GROUP_ID), //
044        /**
045         * @deprecated
046         */
047        @Deprecated
048        MOBILITY(KualiProjectConstants.MOBILITY_GROUP_ID), //
049        /**
050         * @deprecated
051         */
052        @Deprecated
053        OLE(KualiProjectConstants.OLE_GROUP_ID), //
054        /**
055         * @deprecated
056         */
057        @Deprecated
058        KFS(KualiProjectConstants.KFS_GROUP_ID), //
059        /**
060         * @deprecated
061         */
062        @Deprecated
063        COEUS(KualiProjectConstants.COEUS_GROUP_ID), //
064        /**
065         * @deprecated
066         */
067        @Deprecated
068        READY(KualiProjectConstants.READY_GROUP_ID), //
069        /**
070         * @deprecated
071         */
072        @Deprecated
073        KPME(KualiProjectConstants.KPME_GROUP_ID);
074
075        private KualiGroup(String groupId) {
076                Assert.noBlanks(groupId);
077                this.id = groupId;
078        }
079
080        private final String id;
081
082        public String getId() {
083                return id;
084        }
085
086        /**
087         * Return the Kuali groups as an immutable list
088         */
089        public static final List<KualiGroup> asList() {
090                return Collections.unmodifiableList(Arrays.asList(values()));
091        }
092
093}