001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.financial.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.OriginationCode;
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(
057: String financialSystemOriginationCode) {
058: this .financialSystemOriginationCode = financialSystemOriginationCode;
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(
076: String financialSystemMessageOfTheDayText) {
077: this .financialSystemMessageOfTheDayText = financialSystemMessageOfTheDayText;
078: }
079:
080: /**
081: * Gets the financialSystemOrigination attribute.
082: *
083: * @return Returns the financialSystemOrigination.
084: */
085: public OriginationCode getFinancialSystemOrigination() {
086: return financialSystemOrigination;
087: }
088:
089: /**
090: * Sets the financialSystemOrigination attribute value.
091: *
092: * @param financialSystemOrigination The financialSystemOrigination to set.
093: * @deprecated
094: */
095: public void setFinancialSystemOrigination(
096: OriginationCode financialSystemOrigination) {
097: this .financialSystemOrigination = financialSystemOrigination;
098: }
099:
100: /**
101: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
102: */
103: protected LinkedHashMap toStringMapper() {
104: LinkedHashMap m = new LinkedHashMap();
105: m.put("financialSystemOriginationCode",
106: this.financialSystemOriginationCode);
107: return m;
108: }
109:
110: }
|