Package org.sprimaudi.exception

Examples of org.sprimaudi.exception.DocumentCheckedoutException


    public void checkout(Workflow workflow, UserUser user) {
        if (workflow == null || user == null) {
            return;
        }
        if (workflow.getUser() != null && !workflow.getUser().getId().equals(user.getId())) {
            throw new DocumentCheckedoutException("Document is checkout by other user");
        }
        workflow.setUser(user);
        workflowRepository.save(workflow);
    }
View Full Code Here

TOP

Related Classes of org.sprimaudi.exception.DocumentCheckedoutException

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.