Package cu.ftpd.events

Examples of cu.ftpd.events.Event


    }

    protected void mkd(String path) {
        if (path != null) {
            try {
                Event event = EventFactory.createDirectory(user, fs, path);

                boolean proceed = ServiceManager.getServices().getEventHandler().handleBeforeEvent(event, this);
                if (proceed) {
                    String createdDir = fs.mkd(path);
                    respond("257 \"" + createdDir + "\" directory created");
View Full Code Here


    protected void rnfr(String source) {
        // NOTE: rename permissions are checked inside the filesystem. this is good if we want to move our functionality to the filesystem (including the stuff that the virtual filesystem does), but it is bad if we are just overriding methods)
        if (source != null) {
            try {
                Event event = EventFactory.renameFrom(user, fs, source);

                boolean proceed = ServiceManager.getServices().getEventHandler().handleBeforeEvent(event, this);
                if (proceed) {
                    fs.rnfr(source);
                  renameFromEvent = event;
View Full Code Here

    protected void rnto(String target) {
        // NOTE: permissions are checked by the filesystem, see comment for rnfr()
        if (target != null) {
            try {
              Event event = EventFactory.renameTo(user, fs, target, renameFromEvent);

                boolean proceed = ServiceManager.getServices().getEventHandler().handleBeforeEvent(event, this);
                if (proceed) {
                    boolean success = fs.rnto(target);
                    if (success) {
View Full Code Here

TOP

Related Classes of cu.ftpd.events.Event

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.