Package org.apache.lenya.cms.publication

Examples of org.apache.lenya.cms.publication.PublicationException


     */
    protected void deleteDocumentSource(Document document) throws PublicationException {
        File file = document.getFile();
        boolean deleted = file.delete();
        if (!deleted) {
            throw new PublicationException(
                "Source file [" + file + "] of document [" + document + "] could not be deleted!");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.publication.PublicationException

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.