1 /** 2 * Copyright 2005-2012 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.rice.kim.sesn.timeouthandlers; 17 18 /** 19 * This Abstract Class allows the configuration of timeout fields. 20 * TODO: change how TimoutHandlers choose fields from ndx to name. 21 * 22 * @author Kuali Rice Team (rice.collab@kuali.org) 23 * 24 */ 25 public abstract class AbstractTimeoutHandler implements TimeoutHandler{ 26 27 private static final int MAX_IDLE_TIME_TIMEOUT_FIELD=1; 28 private static final int LAST_ACCCESS_TIMEOUT_FIELD=2; 29 private static final int DEFAULT_TIMEOUT_FIELD=MAX_IDLE_TIME_TIMEOUT_FIELD; 30 private int timeoutField=AbstractTimeoutHandler.DEFAULT_TIMEOUT_FIELD; 31 32 /** 33 * @return the timeoutField 34 */ 35 public int getTimeoutField() { 36 return this.timeoutField; 37 } 38 /** 39 * @param timeoutField the timeoutField to set 40 */ 41 public void setTimeoutField(int timeoutField) { 42 this.timeoutField = timeoutField; 43 } 44 45 } 46