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.fp.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.kfs.sys.businessobject.OriginationCode;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    
024    /**
025     * This class is used to represent a "message of the day" object.  These messages are displayed on the associated 
026     * portal page and may contain phrases, informational messages or any other message deemed worthy.
027     */
028    public class MessageOfTheDay extends PersistableBusinessObjectBase {
029    
030        private String financialSystemOriginationCode;
031        private String financialSystemMessageOfTheDayText;
032    
033        private OriginationCode financialSystemOrigination;
034    
035        /**
036         * Default constructor.
037         */
038        public MessageOfTheDay() {
039    
040        }
041    
042        /**
043         * Gets the financialSystemOriginationCode attribute.
044         * 
045         * @return Returns the financialSystemOriginationCode
046         */
047        public String getFinancialSystemOriginationCode() {
048            return financialSystemOriginationCode;
049        }
050    
051        /**
052         * Sets the financialSystemOriginationCode attribute.
053         * 
054         * @param financialSystemOriginationCode The financialSystemOriginationCode to set.
055         */
056        public void setFinancialSystemOriginationCode(String financialSystemOriginationCode) {
057            this.financialSystemOriginationCode = financialSystemOriginationCode;
058        }
059    
060    
061        /**
062         * Gets the financialSystemMessageOfTheDayText attribute.
063         * 
064         * @return Returns the financialSystemMessageOfTheDayText
065         */
066        public String getFinancialSystemMessageOfTheDayText() {
067            return financialSystemMessageOfTheDayText;
068        }
069    
070        /**
071         * Sets the financialSystemMessageOfTheDayText attribute.
072         * 
073         * @param financialSystemMessageOfTheDayText The financialSystemMessageOfTheDayText to set.
074         */
075        public void setFinancialSystemMessageOfTheDayText(String financialSystemMessageOfTheDayText) {
076            this.financialSystemMessageOfTheDayText = financialSystemMessageOfTheDayText;
077        }
078    
079        /**
080         * Gets the financialSystemOrigination attribute.
081         * 
082         * @return Returns the financialSystemOrigination.
083         */
084        public OriginationCode getFinancialSystemOrigination() {
085            return financialSystemOrigination;
086        }
087    
088        /**
089         * Sets the financialSystemOrigination attribute value.
090         * 
091         * @param financialSystemOrigination The financialSystemOrigination to set.
092         * @deprecated
093         */
094        public void setFinancialSystemOrigination(OriginationCode financialSystemOrigination) {
095            this.financialSystemOrigination = financialSystemOrigination;
096        }
097    
098        /**
099         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
100         */
101        protected LinkedHashMap toStringMapper() {
102            LinkedHashMap m = new LinkedHashMap();
103            m.put("financialSystemOriginationCode", this.financialSystemOriginationCode);
104            return m;
105        }
106    
107    }