Package org.apache.jackrabbit.core

Examples of org.apache.jackrabbit.core.NodeImpl.addMixin()


        if (!(retentionPolicy instanceof RetentionPolicyImpl)) {
            throw new RepositoryException("Invalid retention policy.");
        }
        Value retentionReference = session.getValueFactory().createValue(retentionPolicy.getName(), PropertyType.NAME);
        if (!n.isNodeType(REP_RETENTION_MANAGEABLE)) {
            n.addMixin(REP_RETENTION_MANAGEABLE);
        }
        setProperty(n, REP_RETENTION_POLICY, retentionReference);
    }

    /**
 
View Full Code Here


            PathNotFoundException, AccessDeniedException, LockException,
            VersionException, RepositoryException {

        NodeImpl n = (NodeImpl) session.getNode(absPath);
        if (!n.isNodeType(REP_RETENTION_MANAGEABLE)) {
            n.addMixin(REP_RETENTION_MANAGEABLE);
        }

        HoldImpl hold = new HoldImpl(session.getQName(name), isDeep, n.getNodeId(), session);
        Value[] vls;
        if (n.hasProperty(REP_HOLD)) {
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.