Examples of existsVersion()


Examples of org.apache.lenya.cms.publication.Document.existsVersion()

            addErrorMessage("This usecase can only be invoked in the authoring area!");
        } else if (doc.getLanguages().length == 1) {
            addErrorMessage("The last language version cannot be removed.");
        }
       
        if (doc.existsVersion(Publication.LIVE_AREA, doc.getLanguage())) {
            addErrorMessage("The document can't be deleted if a live version exists.");
        }
    }

    /**
 
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.