Package org.brixcms.jcr.api.JcrSession

Examples of org.brixcms.jcr.api.JcrSession.Behavior


    protected void handleException(Exception e) {
        // TODO: This is definitely not what we want to do.
        // Inspect the exception and register flash messages for certain
        // exceptions (versioning, locking, ...)

        Behavior behavior = getJcrSession().getBehavior();

        if (behavior != null) {
            behavior.handleException(e);
        } else {
            if (e instanceof RepositoryException) {
                throw new JcrException((RepositoryException) e);
            } else {
                throw new RuntimeException(e);
View Full Code Here


public class NodeWrapper extends ItemWrapper implements JcrNode {
    public static JcrNode wrap(Node delegate, JcrSession session) {
        if (delegate == null) {
            return null;
        } else {
            Behavior behavior = session.getBehavior();
            if (behavior != null) {
                JcrNode node = behavior.wrap(delegate, session);
                if (node != null) {
                    return node;
                }
            }
            return new NodeWrapper(delegate, session);
View Full Code Here

     * @depreated
     */
    @Deprecated
    @Override
    public void save() {
        Behavior behavior = getJcrSession().getBehavior();
        if (behavior != null) {
            behavior.nodeSaved(this);
        }
        super.getJcrSession().save();
    }
View Full Code Here

TOP

Related Classes of org.brixcms.jcr.api.JcrSession.Behavior

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.