1 23 24 28 package org.infoglue.cms.controllers.kernel.impl.simple; 29 30 import java.util.Date ; 31 import java.util.Vector ; 32 33 45 public class UpdateListHandler { 46 47 private static Vector availableUpdates=new Vector (); 50 private static Vector installedUpdates=null; 51 private static Date latestRefresh = null; 52 53 56 public static Vector getAvailableUpdates() { 57 return availableUpdates; 58 } 59 60 63 public static Vector getInstalledUpdates() { 64 return installedUpdates; 65 } 66 67 70 public static void setAvailableUpdates(Vector vector) { 71 72 if (vector != null) 73 { 74 setLatestRefresh(new Date ()); 75 } 76 77 availableUpdates = vector; 78 } 79 80 83 public static void setInstalledUpdates(Vector vector) { 84 installedUpdates = vector; 85 } 86 87 88 91 public static Date getLatestRefresh() { 92 return latestRefresh; 93 } 94 95 98 public static void setLatestRefresh(Date date) { 99 latestRefresh = date; 100 } 101 102 } 103 | Popular Tags |