001    /**
002     * Copyright 2005-2012 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     */
016    package org.kuali.rice.kim.bo.ui;
017    
018    import org.hibernate.annotations.GenericGenerator;
019    import org.hibernate.annotations.Parameter;
020    import org.kuali.rice.kim.api.KimConstants;
021    
022    import javax.persistence.Column;
023    import javax.persistence.Entity;
024    import javax.persistence.GeneratedValue;
025    import javax.persistence.Id;
026    import javax.persistence.IdClass;
027    import javax.persistence.Table;
028    import javax.persistence.Transient;
029    
030    /**
031     * This is a description of what this class does - kellerj don't forget to fill this in. 
032     * 
033     * @author Kuali Rice Team (rice.collab@kuali.org)
034     *
035     */
036    @IdClass(GroupDocumentMemberId.class)
037    @Entity
038    @Table(name="KRIM_PND_GRP_MBR_T")
039    public class GroupDocumentMember extends KimDocumentBoActiveToFromBase {
040    
041            @Id
042            @GeneratedValue(generator="KRIM_PND_GRP_MBR_T")
043            @GenericGenerator(name="KRIM_PND_GRP_MBR_T",strategy="org.kuali.rice.core.jpa.spring.RiceNumericStringSequenceStyleGenerator",parameters={
044                            @Parameter(name="sequence_name",value="KRIM_PND_GRP_MBR_T"),
045                            @Parameter(name="value_column",value="id")
046                    })
047            @Column(name="GRP_MBR_ID")
048            protected String groupMemberId;
049    
050            @Column(name="GRP_ID")
051            protected String groupId;
052            
053            @Column(name="MBR_ID")
054            protected String memberId;
055            @Column(name="MBR_NM")
056            protected String memberName;
057            @Transient
058            protected String memberNamespaceCode;
059            
060            protected String memberFullName;
061    
062            //TODO: remove the default
063            @Column(name="MBR_TYP_CD")
064            protected String memberTypeCode = KimConstants.KimGroupMemberTypes.PRINCIPAL_MEMBER_TYPE.getCode();
065    
066            public String getGroupMemberId() {
067                    return this.groupMemberId;
068            }
069    
070            public void setGroupMemberId(String groupMemberId) {
071                    this.groupMemberId = groupMemberId;
072            }
073    
074            public String getGroupId() {
075                    return this.groupId;
076            }
077    
078            public void setGroupId(String groupId) {
079                    this.groupId = groupId;
080            }
081    
082            /**
083             * @return the memberId
084             */
085            public String getMemberId() {
086                    return this.memberId;
087            }
088    
089            /**
090             * @param memberId the memberId to set
091             */
092            public void setMemberId(String memberId) {
093                    this.memberId = memberId;
094            }
095    
096            /**
097             * @return the memberTypeCode
098             */
099            public String getMemberTypeCode() {
100                    return this.memberTypeCode;
101            }
102    
103            /**
104             * @param memberTypeCode the memberTypeCode to set
105             */
106            public void setMemberTypeCode(String memberTypeCode) {
107                    this.memberTypeCode = memberTypeCode;
108            }
109    
110            /**
111             * @return the memberName
112             */
113            public String getMemberName() {
114                    return this.memberName;
115            }
116    
117            /**
118             * @param memberName the memberName to set
119             */
120            public void setMemberName(String memberName) {
121                    this.memberName = memberName;
122            }
123    
124            /**
125             * @return the memberNamespaceCode
126             */
127            public String getMemberNamespaceCode() {
128                    return this.memberNamespaceCode;
129            }
130    
131            /**
132             * @param memberNamespaceCode the memberNamespaceCode to set
133             */
134            public void setMemberNamespaceCode(String memberNamespaceCode) {
135                    this.memberNamespaceCode = memberNamespaceCode;
136            }
137            
138            /**
139             * @return the memberFullName
140             */
141            public String getMemberFullName() {
142                    return this.memberFullName;
143            }
144    
145            /**
146             * @param memberFullName the memberFullName to set
147             */
148            public void setMemberFullName(String memberFullName) {
149                    this.memberFullName = memberFullName;
150            }
151    }