Package com.mozilla.bespin

Examples of com.mozilla.bespin.SessionTracker.closeSession()


            // check for an existing edit session from the current user
            EditSession session = tracker.getSession(requestedFile, getUser());
            if (session != null) {
                if (session.getEditMode() == editMode) openSession = false;
                if ((session.getEditMode() == EditMode.Read) && (editMode == EditMode.ReadWrite)) {
                    tracker.closeSession(requestedFile, getUser());
                }
            }

            if (openSession) {
                tracker.openSession(requestedFile, getUser(), editMode);
View Full Code Here


            }

            getFilesystem().delete(getUser(), getPath());

            // close any edit sessions open on the file
            for (EditSession session : sessions) tracker.closeSession(file, session.getUser());
        }
    }

    @RequiresLogin
    public void close() throws IOException {
View Full Code Here

    @RequiresLogin
    public void close() throws IOException {
        java.io.File file = getFilesystem().getFileHandle(getUser(), getPath());

        SessionTracker tracker = getSessionTracker();
        tracker.closeSession(file, getUser());
    }

    @RequiresLogin
    public void listopen() throws IOException {
        FileSystem filesys = getFilesystem();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.