EmptyOp.java :  » Groupware » LibreSource » org » libresource » so6 » core » command » Java Open Source

Java Open Source » Groupware » LibreSource 
LibreSource » org » libresource » so6 » core » command » EmptyOp.java
/**
 * LibreSource
 * Copyright (C) 2004-2008 Artenum SARL / INRIA
 * http://www.libresource.org - contact@artenum.com
 *
 * This file is part of the LibreSource software, 
 * which can be used and distributed under license conditions.
 * The license conditions are provided in the LICENSE.TXT file 
 * at the root path of the packaging that enclose this file. 
 * More information can be found at 
 * - http://dev.libresource.org/home/license
 *
 * Initial authors :
 *
 * Guillaume Bort / INRIA
 * Francois Charoy / Universite Nancy 2
 * Julien Forest / Artenum
 * Claude Godart / Universite Henry Poincare
 * Florent Jouille / INRIA
 * Sebastien Jourdain / INRIA / Artenum
 * Yves Lerumeur / Artenum
 * Pascal Molli / Universite Henry Poincare
 * Gerald Oster / INRIA
 * Mariarosa Penzi / Artenum
 * Gerard Sookahet / Artenum
 * Raphael Tani / INRIA
 *
 * Contributors :
 *
 * Stephane Bagnier / Artenum
 * Amadou Dia / Artenum-IUP Blois
 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */
package org.libresource.so6.core.command;

import org.libresource.so6.core.WsConnection;
import org.libresource.so6.core.engine.DBType;
import org.libresource.so6.core.engine.FileParser;


public class EmptyOp extends NeutralCommand {
    private static final long serialVersionUID = 3;

    public EmptyOp(long ticket, String wsName, long time) {
        super(ticket, "", wsName, time, false, null);
    }

    public EmptyOp(long ticket, WsConnection ws) {
        super("CompressedOp", ws);
        setTicket(ticket);
    }

    public EmptyOp(Command cmd) {
        super(cmd.getPath(), cmd.getWsName(), cmd.wspath);
        setTicket(ticket);
    }

    public String toString() {
        return "CompressedOp";
    }

    public boolean equals(Object o) {
        if (o instanceof EmptyOp) {
            return true;
        }

        return false;
    }

    public void execute(String dir, DBType dbt) throws Exception {
    }

    public void postSend(FileParser fp) throws Exception {
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.