001/**
002 * Copyright 2005-2017 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.rice.krad.demo.uif.form;
017
018import org.kuali.rice.core.api.membership.MemberType;
019import org.kuali.rice.kim.impl.group.GroupBo;
020import org.kuali.rice.kim.impl.identity.principal.PrincipalBo;
021import org.kuali.rice.kim.impl.role.RoleBo;
022import org.kuali.rice.krad.bo.DataObjectBase;
023
024import java.io.Serializable;
025
026/**
027 * @author Kuali Rice Team (rice.collab@kuali.org)
028 */
029public class UIRoleMember extends DataObjectBase implements Serializable {
030
031    private String typeCode;
032
033    private String principalName;
034
035    private String name;
036
037    private String description;
038
039    public String getTypeCode() {
040        return typeCode;
041    }
042
043    public void setTypeCode(String typeCode) {
044        this.typeCode = typeCode;
045    }
046
047    public void setType(MemberType type) {
048        typeCode = type.getCode();
049    }
050
051    public MemberType getType() {
052        return MemberType.fromCode(typeCode);
053    }
054
055    public String getPrincipalName() {
056        return principalName;
057    }
058
059    public void setPrincipalName(String principalName) {
060        this.principalName = principalName;
061    }
062
063    public String getName() {
064        return name;
065    }
066
067    public void setName(String name) {
068        this.name = name;
069    }
070
071    public String getDescription() {
072        return description;
073    }
074
075    public void setDescription(String description) {
076        this.description = description;
077    }
078}