Examples of tryToRegisterUserForFileUpload()


Examples of org.zanata.file.UserFileUploadTracker.tryToRegisterUserForFileUpload()

        Optional<Long> accountId = getAccountId();

        if (accountId.isPresent()) {
            UserFileUploadTracker tracker = ServiceLocator.instance().getInstance(
                    UserFileUploadTracker.class);
            boolean registeredForUpload = tracker.tryToRegisterUserForFileUpload(accountId.get());
            if (!registeredForUpload) {
                log.error("User with id {} is already uploading something.", accountId.get());
                respondWithError(response, "already uploading");
            } else {
                try {
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.