Examples of checkConstraints()


Examples of org.apache.jetspeed.om.page.impl.SecurityConstraintsImpl.checkConstraints()

            // recursively check parent constraints until
            // default constraints for node are checked
            SecurityConstraintsImpl constraintsImpl = (SecurityConstraintsImpl)getSecurityConstraints();
            if ((constraintsImpl != null) && !constraintsImpl.isEmpty())
            {
                constraintsImpl.checkConstraints(actions, userPrincipals, rolePrincipals, groupPrincipals, getEffectivePageSecurity());
            }
            else
            {
                NodeImpl parentNodeImpl = (NodeImpl)ProxyHelper.getRealObject(parent);
                if (parentNodeImpl != null)
View Full Code Here

Examples of org.apache.jetspeed.om.page.impl.SecurityConstraintsImpl.checkConstraints()

            if (!checkParentsOnly)
            {
                SecurityConstraintsImpl constraintsImpl = (SecurityConstraintsImpl)getSecurityConstraints();
                if ((constraintsImpl != null) && !constraintsImpl.isEmpty())
                {
                    constraintsImpl.checkConstraints(actions, userPrincipals, rolePrincipals, groupPrincipals, getEffectivePageSecurity());
                }
            }

            // recursively check all parent constraints in hierarchy
            NodeImpl parentNodeImpl = (NodeImpl)ProxyHelper.getRealObject(parent);
View Full Code Here

Examples of org.apache.jetspeed.om.page.impl.SecurityConstraintsImpl.checkConstraints()

            // recursively check parent constraints until
            // default constraints for node are checked
            SecurityConstraintsImpl constraintsImpl = (SecurityConstraintsImpl)getSecurityConstraints();
            if ((constraintsImpl != null) && !constraintsImpl.isEmpty())
            {
                constraintsImpl.checkConstraints(actions, userPrincipals, rolePrincipals, groupPrincipals, getEffectivePageSecurity());
            }
            else
            {
                NodeImpl parentNodeImpl = (NodeImpl)ProxyHelper.getRealObject(parent);
                if (parentNodeImpl != null)
View Full Code Here

Examples of org.apache.jetspeed.om.page.impl.SecurityConstraintsImpl.checkConstraints()

            if (!checkParentsOnly)
            {
                SecurityConstraintsImpl constraintsImpl = (SecurityConstraintsImpl)getSecurityConstraints();
                if ((constraintsImpl != null) && !constraintsImpl.isEmpty())
                {
                    constraintsImpl.checkConstraints(actions, userPrincipals, rolePrincipals, groupPrincipals, getEffectivePageSecurity());
                }
            }

            // recursively check all parent constraints in hierarchy
            NodeImpl parentNodeImpl = (NodeImpl)ProxyHelper.getRealObject(parent);
View Full Code Here

Examples of org.apache.jetspeed.om.page.impl.SecurityConstraintsImpl.checkConstraints()

            // recursively check parent constraints until
            // default constraints for node are checked
            SecurityConstraintsImpl constraintsImpl = (SecurityConstraintsImpl)getSecurityConstraints();
            if ((constraintsImpl != null) && !constraintsImpl.isEmpty())
            {
                constraintsImpl.checkConstraints(actions, userPrincipals, rolePrincipals, groupPrincipals, getEffectivePageSecurity());
            }
            else
            {
                NodeImpl parentNodeImpl = (NodeImpl)ProxyHelper.getRealObject(parent);
                if (parentNodeImpl != null)
View Full Code Here

Examples of org.apache.jetspeed.om.page.impl.SecurityConstraintsImpl.checkConstraints()

            if (!checkParentsOnly)
            {
                SecurityConstraintsImpl constraintsImpl = (SecurityConstraintsImpl)getSecurityConstraints();
                if ((constraintsImpl != null) && !constraintsImpl.isEmpty())
                {
                    constraintsImpl.checkConstraints(actions, userPrincipals, rolePrincipals, groupPrincipals, getEffectivePageSecurity());
                }
            }

            // recursively check all parent constraints in hierarchy
            NodeImpl parentNodeImpl = (NodeImpl)ProxyHelper.getRealObject(parent);
View Full Code Here

Examples of org.qi4j.runtime.composite.ConstraintsCheck.checkConstraints()

    {
        for( PropertyDescriptor propertyDescriptor : stateModel.properties() )
        {
            ConstraintsCheck constraints = (ConstraintsCheck) propertyDescriptor;
            Property<Object> property = this.propertyFor( propertyDescriptor.accessor() );
            constraints.checkConstraints( property.get() );
        }

        for( AssociationDescriptor associationDescriptor : stateModel.associations() )
        {
            ConstraintsCheck constraints = (ConstraintsCheck) associationDescriptor;
View Full Code Here

Examples of org.qi4j.runtime.composite.ConstraintsCheck.checkConstraints()

        for( AssociationDescriptor associationDescriptor : stateModel.associations() )
        {
            ConstraintsCheck constraints = (ConstraintsCheck) associationDescriptor;
            Association<Object> association = this.associationFor( associationDescriptor.accessor() );
            constraints.checkConstraints( association.get() );
        }

        // TODO Should ManyAssociations be checked too?
    }
View Full Code Here

Examples of org.qi4j.runtime.entity.EntityInstance.checkConstraints()

        EntityInstance instance = new EntityInstance( this, model.module(), model.model(), entityState );

        instance.invokeCreate();

        instance.checkConstraints();

        addEntity( instance );

        return instance.<T>proxy();
    }
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.