public void setController(SessionController controller) { super.setController(controller); lastestVersion = controller.getAttribute("ActivePOSVersion", "2"); downloadURL = controller.getAttribute( "ActivePOSURL", "ftp://*****:*****@sina.com@localhost/download/setup.exe"); checkSum = controller.getAttribute("ActivePOSCheckSum", "unknown"); // "unknown" is keyword fileLength = controller.getAttribute("ActivePOSFileLength", "-1"); cvsRoot = controller.getAttribute("CVSROOT", ":pserver:error@error:/error"); cvsFileRoot = controller.getAttribute("CVSDir", "/cvs"); cvsPassword = controller.getAttribute("CVSPassword", "abc123"); cvsPOSModule = controller.getAttribute("CVSPOSModule", "pos"); try { isLimitToSpecialUpdateClients = (new Boolean(controller.getAttribute("LimitSpecialUpdateClients", "false"))) .booleanValue(); } catch (Exception e) { isLimitToSpecialUpdateClients = false; } if (isLimitToSpecialUpdateClients) { specialUpdateClients = toArray(controller.getAttribute("SpecialUpdateClients", ""), ","); logger.debug( "Only these clients will be notified new version:" + Tools.toString(specialUpdateClients)); this.specialNoUpdateClients = toArray(controller.getAttribute("SpecialNoUpdateClients", ""), ","); logger.debug( "Only these clients will *NOT* be notified new version:" + Tools.toString(specialNoUpdateClients)); } sessionMsgPrefix = controller.getCommander().getSessionMsgPrefix(); }
public void setController(SessionController controller) { super.setController(controller); uploadRootDir = controller.getAttribute("PosDB.Upload.RootDir", "f:/act/posdb/upload"); tmpDir = controller.getAttribute("PosDB.TmpDir", "f:/act/posdb/tmp"); impCmd = controller.getAttribute("PosDB.Import.Command", "sh f:/impora"); sessionMsgPrefix = controller.getCommander().getSessionMsgPrefix(); manager = (SyncManager) controller.getCommander(); }