001    /*
002     * Copyright 2011 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    
017    package org.kuali.kfs.module.purap.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.kfs.integration.purap.PurchasingAccountsPayableSensitiveData;
022    import org.kuali.rice.kns.bo.Inactivateable;
023    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
024    
025    /**
026     * Sensitive Data Business Object.
027     */
028    public class SensitiveData extends PersistableBusinessObjectBase implements PurchasingAccountsPayableSensitiveData, Inactivateable{
029    
030        private String sensitiveDataCode;
031        private String sensitiveDataDescription;
032        private boolean active;
033    
034        /**
035         * Default constructor.
036         */
037        public SensitiveData() {
038    
039        }
040    
041        public String getSensitiveDataCode() {
042            return sensitiveDataCode;
043        }
044    
045        public void setSensitiveDataCode(String sensitiveDataCode) {
046            this.sensitiveDataCode = sensitiveDataCode;
047        }
048    
049        public String getSensitiveDataDescription() {
050            return sensitiveDataDescription;
051        }
052    
053        public void setSensitiveDataDescription(String sensitiveDataDescription) {
054            this.sensitiveDataDescription = sensitiveDataDescription;
055        }
056    
057        public boolean isActive() {
058            return active;
059        }
060    
061        public void setActive(boolean active) {
062            this.active = active;
063        }
064    
065        /**
066         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
067         */
068        protected LinkedHashMap toStringMapper() {
069            LinkedHashMap m = new LinkedHashMap();
070            m.put("restrictedMaterialCode", this.sensitiveDataCode);
071            return m;
072        }
073    
074    }