Examples of RestrictionImpl


Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Nonnull
    @Override
    public Restriction createRestriction(@Nullable String oakPath, @Nonnull String oakName, @Nonnull Value value) throws RepositoryException {
        if (REP_NODE_PATH.equals(oakName) && PropertyType.PATH == value.getType()) {
            return new RestrictionImpl(PropertyStates.createProperty(oakName, value), true);
        } else {
            return base.createRestriction(oakPath, oakName, value);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Override
    public Set<Restriction> readRestrictions(@Nullable String oakPath, @Nonnull Tree aceTree) {
        Set<Restriction> restrictions = new HashSet<Restriction>(base.readRestrictions(oakPath, aceTree));
        String value = (oakPath == null) ? "" : oakPath;
        PropertyState nodePathProp = PropertyStates.createProperty(REP_NODE_PATH, value, Type.PATH);
        restrictions.add(new RestrictionImpl(nodePathProp, true));
        return restrictions;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Nonnull
    @Override
    public Restriction createRestriction(@Nullable String oakPath, @Nonnull String oakName, @Nonnull Value value) throws RepositoryException {
        if (REP_NODE_PATH.equals(oakName) && PropertyType.PATH == value.getType()) {
            return new RestrictionImpl(PropertyStates.createProperty(oakName, value), true);
        } else {
            return base.createRestriction(oakPath, oakName, value);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Override
    public Set<Restriction> readRestrictions(@Nullable String oakPath, @Nonnull Tree aceTree) {
        Set<Restriction> restrictions = new HashSet<Restriction>(base.readRestrictions(oakPath, aceTree));
        String value = (oakPath == null) ? "" : oakPath;
        PropertyState nodePathProp = PropertyStates.createProperty(REP_NODE_PATH, value, Type.PATH);
        restrictions.add(new RestrictionImpl(nodePathProp, true));
        return restrictions;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Nonnull
    @Override
    public Restriction createRestriction(@Nullable String oakPath, @Nonnull String oakName, @Nonnull Value value) throws RepositoryException {
        if (REP_NODE_PATH.equals(oakName) && PropertyType.PATH == value.getType()) {
            return new RestrictionImpl(PropertyStates.createProperty(oakName, value), true);
        } else {
            return base.createRestriction(oakPath, oakName, value);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Override
    public Set<Restriction> readRestrictions(@Nullable String oakPath, @Nonnull Tree aceTree) {
        Set<Restriction> restrictions = new HashSet<Restriction>(base.readRestrictions(oakPath, aceTree));
        String value = (oakPath == null) ? "" : oakPath;
        PropertyState nodePathProp = PropertyStates.createProperty(REP_NODE_PATH, value, Type.PATH);
        restrictions.add(new RestrictionImpl(nodePathProp, true));
        return restrictions;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Nonnull
    @Override
    public Restriction createRestriction(@Nullable String oakPath, @Nonnull String jcrName, @Nonnull Value value) throws RepositoryException {
        String oakName = namePathMapper.getOakName(jcrName);
        if (REP_NODE_PATH.equals(oakName) && PropertyType.PATH == value.getType()) {
            return new RestrictionImpl(PropertyStates.createProperty(oakName, value), true, namePathMapper);
        } else {
            return base.createRestriction(oakPath, jcrName, value);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    @Override
    public Set<Restriction> readRestrictions(@Nullable String oakPath, @Nonnull Tree aceTree) {
        Set<Restriction> restrictions = new HashSet<Restriction>(base.readRestrictions(oakPath, aceTree));
        String value = (oakPath == null) ? "" : oakPath;
        PropertyState nodePathProp = PropertyStates.createProperty(REP_NODE_PATH, value, Type.PATH);
        restrictions.add(new RestrictionImpl(nodePathProp, true, namePathMapper));
        return restrictions;
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

    }

    //------------------------------------------------------------< private >---
    @Nonnull
    private Restriction createRestriction(PropertyState propertyState, RestrictionDefinition definition) {
        return new RestrictionImpl(propertyState, definition.isMandatory(), namePathMapper);
    }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authorization.restriction.RestrictionImpl

            }
            if (supported.getRequiredType() != value.getType()) {
                throw new AccessControlException();
            }
            PropertyState property = PropertyStates.createProperty(namePathMapper.getOakName(jcrName), value.getString(), value.getType());
            return new RestrictionImpl(property, supported.isMandatory(), namePathMapper);
        }
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.