亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? serializableworkflowstore.java

?? Java編譯osworkflow工作流系統的安裝和源代碼
?? JAVA
字號:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.workflow.spi.memory;import com.opensymphony.module.propertyset.PropertySet;import com.opensymphony.module.propertyset.PropertySetManager;import com.opensymphony.workflow.query.WorkflowQuery;import com.opensymphony.workflow.spi.*;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import java.io.*;import java.util.*;/** * Simple flat file implementation. * * Following properties are <b>required</b>: * <ul> * <li><b>storeFile</b> - the absolute path to the store file (<i>ex:c:\workflow.store</i>)</li> * </ul> * * @author <a href="mailto:gbort@msn.com">Guillaume Bort</a> */public class SerializableWorkflowStore extends MemoryWorkflowStore {    //~ Static fields/initializers /////////////////////////////////////////////    protected static final Log log = LogFactory.getLog(SerializableWorkflowStore.class);    static String storeFile;    //~ Methods ////////////////////////////////////////////////////////////////    public PropertySet getPropertySet(long entryId) {        PropertySet ps = (PropertySet) SerializableCache.getInstance().propertySetCache.get(new Long(entryId));        if (ps == null) {            ps = PropertySetManager.getInstance("serializable", null);            SerializableCache.getInstance().propertySetCache.put(new Long(entryId), ps);        }        return ps;    }    public static void setStoreFile(String storeFile) {        SerializableWorkflowStore.storeFile = storeFile;    }    public static String getStoreFile() {        return storeFile;    }    public Step createCurrentStep(long entryId, int stepId, String owner, Date startDate, Date dueDate, String status, long[] previousIds) {        long id = SerializableCache.getInstance().globalStepId++;        SimpleStep step = new SimpleStep(id, entryId, stepId, 0, owner, startDate, dueDate, null, status, previousIds, null);        List currentSteps = (List) SerializableCache.getInstance().currentStepsCache.get(new Long(entryId));        if (currentSteps == null) {            currentSteps = new ArrayList();            SerializableCache.getInstance().currentStepsCache.put(new Long(entryId), currentSteps);        }        currentSteps.add(step);        SerializableCache.store();        return step;    }    public WorkflowEntry createEntry(String workflowName) {        long id = SerializableCache.getInstance().globalEntryId++;        SimpleWorkflowEntry entry = new SimpleWorkflowEntry(id, workflowName, WorkflowEntry.CREATED);        SerializableCache.getInstance().entryCache.put(new Long(id), entry);        SerializableCache.store();        return entry;    }    public List findCurrentSteps(long entryId) {        List currentSteps = (List) SerializableCache.getInstance().currentStepsCache.get(new Long(entryId));        if (currentSteps == null) {            currentSteps = new ArrayList();            SerializableCache.getInstance().currentStepsCache.put(new Long(entryId), currentSteps);        }        return currentSteps;    }    public WorkflowEntry findEntry(long entryId) {        return (WorkflowEntry) SerializableCache.getInstance().entryCache.get(new Long(entryId));    }    public List findHistorySteps(long entryId) {        List historySteps = (List) SerializableCache.getInstance().historyStepsCache.get(new Long(entryId));        if (historySteps == null) {            historySteps = new ArrayList();            SerializableCache.getInstance().historyStepsCache.put(new Long(entryId), historySteps);        }        return historySteps;    }    public void init(Map props) {        storeFile = (String) props.get("storeFile");        // check whether the file denoted by the storeFile property is a normal file.        if (!new File(storeFile).isFile()) {            log.fatal("storePath property should indicate a normal file");        }        // check wheter the directory containing the storeFile exist        if (!new File(storeFile).getParentFile().exists()) {            log.fatal("directory " + new File(storeFile).getParent() + " not found");        }    }    public Step markFinished(Step step, int actionId, Date finishDate, String status, String caller) {        List currentSteps = (List) SerializableCache.getInstance().currentStepsCache.get(new Long(step.getEntryId()));        for (Iterator iterator = currentSteps.iterator(); iterator.hasNext();) {            SimpleStep theStep = (SimpleStep) iterator.next();            if (theStep.getId() == step.getId()) {                theStep.setStatus(status);                theStep.setActionId(actionId);                theStep.setFinishDate(finishDate);                theStep.setCaller(caller);                return theStep;            }        }        SerializableCache.store();        return null;    }    public void moveToHistory(Step step) {        List currentSteps = (List) SerializableCache.getInstance().currentStepsCache.get(new Long(step.getEntryId()));        List historySteps = (List) SerializableCache.getInstance().historyStepsCache.get(new Long(step.getEntryId()));        if (historySteps == null) {            historySteps = new ArrayList();            SerializableCache.getInstance().historyStepsCache.put(new Long(step.getEntryId()), historySteps);        }        SimpleStep simpleStep = (SimpleStep) step;        for (Iterator iterator = currentSteps.iterator(); iterator.hasNext();) {            Step currentStep = (Step) iterator.next();            if (simpleStep.getId() == currentStep.getId()) {                iterator.remove();                historySteps.add(simpleStep);                break;            }        }        SerializableCache.store();    }}class SerializableCache implements Serializable {    //~ Static fields/initializers /////////////////////////////////////////////    private static transient SerializableCache instance;    //~ Instance fields ////////////////////////////////////////////////////////    HashMap currentStepsCache;    HashMap entryCache;    HashMap historyStepsCache;    HashMap propertySetCache;    long globalEntryId = 1;    long globalStepId = 1;    //~ Constructors ///////////////////////////////////////////////////////////    private SerializableCache() {        entryCache = new HashMap();        currentStepsCache = new HashMap();        historyStepsCache = new HashMap();        propertySetCache = new HashMap();    }    //~ Methods ////////////////////////////////////////////////////////////////    public List query(WorkflowQuery query) {        // not implemented        return Collections.EMPTY_LIST;    }    static SerializableCache getInstance() {        if (instance == null) {            instance = load();        }        return instance;    }    static SerializableCache load() {        try {            FileInputStream fis = new FileInputStream(new File(SerializableWorkflowStore.storeFile));            ObjectInputStream ois = new ObjectInputStream(fis);            SerializableCache o = (SerializableCache) ois.readObject();            fis.close();            return o;        } catch (Exception e) {            SerializableWorkflowStore.log.fatal("cannot store in file " + SerializableWorkflowStore.storeFile + ". Create a new blank store.");        }        return new SerializableCache();    }    static void store() {        try {            FileOutputStream fos = new FileOutputStream(new File(SerializableWorkflowStore.storeFile));            ObjectOutputStream oos = new ObjectOutputStream(fos);            oos.writeObject(getInstance());            fos.close();        } catch (Exception e) {            SerializableWorkflowStore.log.fatal("cannot store in file " + SerializableWorkflowStore.storeFile + ".");        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费精品国自产拍在线不卡| 欧美三级乱人伦电影| 亚洲成av人在线观看| 粉嫩aⅴ一区二区三区四区| 51久久夜色精品国产麻豆| 在线精品视频一区二区| 91久久奴性调教| 精品视频在线视频| 69p69国产精品| 欧美一区欧美二区| 国产精品你懂的在线欣赏| 中文字幕亚洲不卡| 欧美午夜免费电影| 欧美性猛交xxxxxx富婆| 欧美日韩一区二区不卡| 在线成人免费观看| 欧美va亚洲va在线观看蝴蝶网| 欧美一区二区三区喷汁尤物| 精品免费日韩av| 久久久99久久| 久久日韩粉嫩一区二区三区| 国产精品国产自产拍高清av王其 | 亚洲成在人线免费| 亚洲人xxxx| 视频一区中文字幕国产| 91丨九色丨蝌蚪富婆spa| 欧美精品18+| 一区二区三区欧美在线观看| 日本美女视频一区二区| 色成人在线视频| 综合激情网...| 97精品久久久久中文字幕 | 欧美精品久久久久久久久老牛影院 | 国产乱子伦视频一区二区三区 | 7777精品久久久大香线蕉| 91麻豆精品国产自产在线观看一区| 欧美成人a在线| 亚洲欧美视频一区| 韩国成人在线视频| 欧美日韩另类国产亚洲欧美一级| 精品少妇一区二区三区视频免付费| 中文字幕精品—区二区四季| 亚洲成a人v欧美综合天堂下载| 精品制服美女丁香| 91久久奴性调教| 国产午夜精品理论片a级大结局| 亚洲黄色小说网站| 国产成人欧美日韩在线电影| 欧美日韩精品一区视频| 欧美国产日韩a欧美在线观看| 香蕉久久夜色精品国产使用方法| 国产一区二区不卡| 6080国产精品一区二区| 亚洲丝袜制服诱惑| 丰满少妇在线播放bd日韩电影| 欧美日本一道本| 亚洲精品日产精品乱码不卡| 国精产品一区一区三区mba桃花| 一本色道久久加勒比精品 | 91精品国产一区二区三区香蕉| 亚洲人亚洲人成电影网站色| 国产美女视频一区| 日韩欧美色电影| 美女任你摸久久| 欧美色窝79yyyycom| 国产精品毛片大码女人| 国产一区久久久| 欧美一区二区二区| 午夜精品在线视频一区| 欧美在线你懂的| 伊人夜夜躁av伊人久久| 成人三级在线视频| 国产在线麻豆精品观看| 日本大胆欧美人术艺术动态| 亚洲3atv精品一区二区三区| 五月激情丁香一区二区三区| 中文字幕一区二区三区在线观看| 欧美一级夜夜爽| 91精品国产综合久久婷婷香蕉 | 日本亚洲免费观看| 一区在线观看免费| 亚洲免费在线观看| 亚洲精品国久久99热| 成人美女视频在线观看| 国产精品久久网站| 色综合久久久久综合99| 一区二区三区久久| 欧美一区二区视频在线观看2022| 日韩高清不卡一区| 久久久三级国产网站| 国产白丝精品91爽爽久久| 国产日韩欧美精品一区| 99久久精品免费看国产免费软件| 亚洲欧洲精品天堂一级| 欧美亚洲自拍偷拍| 裸体一区二区三区| 中文字幕高清一区| 欧美三级午夜理伦三级中视频| 免费国产亚洲视频| 国产精品女主播av| 欧美人牲a欧美精品| 国产一区二区不卡老阿姨| 亚洲三级在线看| 777xxx欧美| 成人一区在线观看| 亚洲国产一二三| 国产日韩在线不卡| 欧美视频一区二区三区四区| 激情图片小说一区| 一区二区三区欧美视频| 日韩欧美成人一区二区| 白白色亚洲国产精品| 日本麻豆一区二区三区视频| 中文欧美字幕免费| 欧美成人vps| 99国产精品国产精品久久| 日韩中文欧美在线| 亚洲视频在线一区| 26uuu久久天堂性欧美| 色视频成人在线观看免| 激情综合色播激情啊| 亚洲一本大道在线| 国产精品美女www爽爽爽| 日韩精品一区二区三区在线播放| 色综合咪咪久久| 国产99一区视频免费| 日韩电影在线一区| 性欧美大战久久久久久久久| 国产精品美女久久久久久2018| 欧美电视剧免费观看| 在线观看不卡一区| 99精品视频在线播放观看| 国产精品一区专区| 91官网在线观看| 亚洲品质自拍视频| 欧美国产1区2区| 久久久一区二区三区| 国产黄色91视频| 亚洲国产婷婷综合在线精品| 欧美午夜片在线观看| 日韩精品一卡二卡三卡四卡无卡| 日韩欧美中文字幕精品| 国产一区二区视频在线| 亚洲欧洲日韩女同| 欧美大白屁股肥臀xxxxxx| 欧美丰满少妇xxxbbb| 国产成人自拍高清视频在线免费播放| 五月婷婷激情综合网| 亚洲一区二区三区四区五区黄| 中文字幕第一区| 久久精品夜色噜噜亚洲a∨| 欧美xxxxx牲另类人与| 欧美日本在线观看| 欧美日韩1234| 91精品国产日韩91久久久久久| 欧美狂野另类xxxxoooo| 4438x成人网最大色成网站| 91麻豆精品国产91久久久久久| 69av一区二区三区| 337p亚洲精品色噜噜噜| 91精品国产手机| 欧美一区二区三区免费观看视频| 91精品午夜视频| 精品欧美乱码久久久久久| 欧美成人精品高清在线播放| 精品久久人人做人人爱| 26uuu精品一区二区在线观看| 久久蜜臀精品av| 国产精品欧美一区喷水| 亚洲日本乱码在线观看| 亚洲午夜在线视频| 麻豆成人久久精品二区三区红| 国产成人精品免费网站| 色综合久久久久| 欧美一二三区精品| 国产三级精品三级| 亚洲精品中文在线| 久久超级碰视频| jiyouzz国产精品久久| 91激情在线视频| 日韩午夜激情视频| 中文字幕一区在线观看| 午夜精品在线视频一区| 国产精一区二区三区| 色婷婷国产精品| 日韩美女视频在线| 一区二区中文视频| 日韩av一区二区在线影视| 国产大片一区二区| 欧美日韩久久不卡| 国产精品萝li| 视频精品一区二区| 99国产欧美另类久久久精品| 欧美日韩卡一卡二| 国产精品理论在线观看| 免费在线观看视频一区| 91在线国产福利| 久久伊人蜜桃av一区二区| 亚洲在线视频网站| 99久久久精品|