Package org.apache.lenya.cms.publication

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


    protected String getXlinkHref(Document document) throws DocumentException {
        String path = null;
        try {
            path = document.getFile().getCanonicalPath();
        } catch (IOException e) {
            throw new DocumentException("Couldn't found the file path for the document ["
                    + document + "]", e);
        }
        return path;
    }
View Full Code Here


                Document languageVersion;
                try {
                    languageVersion = document.getIdentityMap()
                            .getLanguageVersion(document, languages[i]);
                } catch (DocumentBuildException e) {
                    throw new DocumentException(e);
                }
                add(languageVersion);
            }
        }
    }
View Full Code Here

                identifier = dublincore.getFirstValue(DublinCore.ELEMENT_IDENTIFIER);
            }
        } catch (final DocumentException e) {
            throw e;
        } catch (final Exception e) {
            throw new DocumentException(e);
        }
        finally {
            if (resolver != null) {
                manager.release(resolver);
            }
View Full Code Here

                        }
                    }
                }
            }
        } catch (Exception e) {
            throw new DocumentException(e);
        }
    }
View Full Code Here

                }
            }

            SourceUtil.writeDOM(doc, this.sourceUri, this.manager);
        } catch (final Exception e) {
            throw new DocumentException(e);
        }
    }
View Full Code Here

                } else {
                    documentElement.insertBefore(metaElement, children[0]);
                }
            }
        } catch (final Exception e) {
            throw new DocumentException(e);
        }
        return metaElement;
    }
View Full Code Here

                } else {
                    topMetaElement.insertBefore(metaElement, children[0]);
                }
            }
        } catch (final Exception e) {
            throw new DocumentException(e);
        }
        return metaElement;
    }
View Full Code Here

        if (elementList.contains(key)) {
            values = (String[]) this.elements.get(key);
        } else if (termList.contains(key)) {
            values = (String[]) this.terms.get(key);
        } else {
            throw new DocumentException("The key [" + key
                    + "] does not refer to a metadata element or term!");
        }
        if (values == null) {
            values = new String[0];
        }
View Full Code Here

            if (elementList.contains(key)) {
                this.elements.put(key, newValues);
            } else if (termList.contains(key)) {
                this.terms.put(key, newValues);
            } else {
                throw new DocumentException("The key [" + key
                        + "] does not refer to a dublin core element or term!");
            }
        } else
            this.elements.put(key, newValues);
    }
View Full Code Here

        if (elementList.contains(key)) {
            this.elements.put(key, newValues);
        } else if (termList.contains(key)) {
            this.terms.put(key, newValues);
        } else {
            throw new DocumentException("The key [" + key
                    + "] does not refer to a metadata element or term!");
        }
    }
View Full Code Here

TOP

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

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.