001    /*
002     * Copyright 2007-2009 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 responsibilitys and
014     * limitations under the License.
015     */
016    package org.kuali.rice.kim.bo.role.dto;
017    
018    import java.io.Serializable;
019    
020    import org.apache.commons.lang.builder.ToStringBuilder;
021    import org.kuali.rice.kim.bo.role.KimResponsibilityTemplate;
022    
023    /**
024     * @author Kuali Rice Team (rice.collab@kuali.org)
025     */
026    public class KimResponsibilityTemplateInfo implements KimResponsibilityTemplate, Serializable {
027    
028            private static final long serialVersionUID = -282533234389371097L;
029            
030            protected String responsibilityTemplateId;
031            protected String namespaceCode;
032            protected String name;
033            protected String kimTypeId;
034            protected String description;
035            protected boolean active;
036            
037            public String getKimTypeId() {
038                    return kimTypeId;
039            }
040    
041            /**
042             * @see org.kuali.rice.kns.bo.Inactivateable#isActive()
043             */
044            public boolean isActive() {
045                    return active;
046            }
047    
048            /**
049             * @see org.kuali.rice.kns.bo.Inactivateable#setActive(boolean)
050             */
051            public void setActive(boolean active) {
052                    this.active = active;
053            }
054    
055            /**
056             * @see org.kuali.rice.kim.bo.role.KimResponsibility#getDescription()
057             */
058            public String getDescription() {
059                    return description;
060            }
061    
062            /**
063             * @see org.kuali.rice.kim.bo.role.KimResponsibility#getResponsibilityId()
064             */
065            public String getResponsibilityTemplateId() {
066                    return responsibilityTemplateId;
067            }
068    
069            /**
070             * @see org.kuali.rice.kim.bo.role.KimResponsibility#getName()
071             */
072            public String getName() {
073                    return name;
074            }
075    
076            public void setKimTypeId(String kimTypeId) {
077                    this.kimTypeId = kimTypeId;
078            }
079    
080            public void setDescription(String description) {
081                    this.description = description;
082            }
083    
084            public void setName(String name) {
085                    this.name = name;
086            }
087    
088            @Override
089            public String toString() {
090                    return new ToStringBuilder( this )
091                    .append( "responsibilityTemplateId", this.responsibilityTemplateId )
092                    .append( "name", this.name )
093                    .append( "kimTypeId", this.kimTypeId )
094                    .toString();
095            }
096    
097            public String getNamespaceCode() {
098                    return this.namespaceCode;
099            }
100    
101            public void setNamespaceCode(String namespaceCode) {
102                    this.namespaceCode = namespaceCode;
103            }
104    
105            public void setResponsibilityTemplateId(String responsibilityTemplateId) {
106                    this.responsibilityTemplateId = responsibilityTemplateId;
107            }
108    }