001    /**
002     * Copyright 2005-2014 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    package org.kuali.rice.kns.web.ui;
017    
018    import org.kuali.rice.kns.lookup.HtmlData;
019    import org.kuali.rice.krad.bo.BusinessObject;
020    
021    import java.io.Serializable;
022    import java.util.List;
023    
024    /**
025     * 
026     */
027    @Deprecated
028    public class ResultRow implements Serializable {
029        private static final long serialVersionUID = 2880508981008533913L;
030        private List<Column> columns;
031        private String returnUrl;
032        private String actionUrls;
033        private String objectId;
034        private String rowId;
035        private BusinessObject businessObject;
036        private HtmlData returnUrlHtmlData;
037        /**
038         * Whether to show the return URL (for single value lookups invoked from a document or nested lookup) or the return checkbox (for
039         * multiple value lookups)
040         */
041        private boolean rowReturnable;
042    
043        public ResultRow(List<Column> columns, String returnUrl, String actionUrls) {
044            this.columns = columns;
045            this.returnUrl = returnUrl;
046            this.actionUrls = actionUrls;
047            this.rowReturnable = true;
048        }
049    
050        /**
051         * @return Returns the returnUrl.
052         */
053        public String getReturnUrl() {
054            return returnUrl;
055        }
056    
057        /**
058         * @param returnUrl The returnUrl to set.
059         */
060        public void setReturnUrl(String returnUrl) {
061            this.returnUrl = returnUrl;
062        }
063    
064        /**
065         * @return Returns the columns.
066         */
067        public List<Column> getColumns() {
068            return columns;
069        }
070    
071        /**
072         * @param columns The columns to set.
073         */
074        public void setColumns(List<Column> columns) {
075            this.columns = columns;
076        }
077    
078        /**
079         * @return Returns the actions url
080         */
081        public String getActionUrls() {
082            return actionUrls;
083        }
084    
085        /**
086         * @param actionsUrl the actions url
087         */
088        public void setActionUrls(String actionUrls) {
089            this.actionUrls = actionUrls;
090        }
091    
092        /**
093         * Gets the Object ID of the BO that this row represents
094         * @return
095         */
096        public String getObjectId() {
097            return objectId;
098        }
099    
100        /**
101         * Sets the Object ID of the BO that this row represents
102         * @param objectId
103         */
104        public void setObjectId(String objectId) {
105            this.objectId = objectId;
106        }
107    
108        /**
109         * Gets whether to show the return URL (for single value lookups invoked from a document or nested lookup) or the return checkbox (for
110         * multiple value lookups)
111         * 
112         * @return
113         */
114        public boolean isRowReturnable() {
115            return this.rowReturnable;
116        }
117    
118        /**
119         * Sets whether to show the return URL (for single value lookups invoked from a document or nested lookup) or the return checkbox (for
120         * multiple value lookups)
121         * 
122         * @param rowReturnable
123         */
124        public void setRowReturnable(boolean rowReturnable) {
125            this.rowReturnable = rowReturnable;
126        }
127    
128            /**
129             * Returns the BusinessObject associated with this row.  This may be null
130             * 
131             * @return the businessObject, or null if the businessObject was not set
132             */
133            public BusinessObject getBusinessObject() {
134                    return this.businessObject;
135            }
136    
137            /**
138             * @param businessObject the businessObject to set
139             */
140            public void setBusinessObject(BusinessObject businessObject) {
141                    this.businessObject = businessObject;
142            }
143    
144            /**
145             * @return the rowId
146             */
147            public String getRowId() {
148                    return this.rowId;
149            }
150    
151            /**
152             * @param rowId the rowId to set
153             */
154            public void setRowId(String rowId) {
155                    this.rowId = rowId;
156            }
157    
158            /**
159             * @return the returnUrlHtmlData
160             */
161            public HtmlData getReturnUrlHtmlData() {
162                    return this.returnUrlHtmlData;
163            }
164    
165            /**
166             * @param returnUrlHtmlData the returnUrlHtmlData to set
167             */
168            public void setReturnUrlHtmlData(HtmlData returnUrlHtmlData) {
169                    this.returnUrlHtmlData = returnUrlHtmlData;
170            }
171    
172    
173            
174    
175    }