Package org.apache.muse.ws.resource.properties.listeners

Examples of org.apache.muse.ws.resource.properties.listeners.PropertyChangeApprover


        //
        // make sure read-only properties aren't modified from the
        // outside (can still be mutable inside)
        //
        boolean readOnly = metadata.isReadOnlyExternal(qname);
        PropertyChangeApprover security = new ExternalChangeApprover(qname, readOnly);
        security.setSecurityToken(getSecurityToken());
        addChangeApprover(security);
       
        //
        // if we can't update, we're either appendable (insert only)
        // or constant (read only). we need an enforcer!
        //
        if (!metadata.canUpdate(qname))
        {
            PropertyChangeApprover approver = null;
           
            //
            // insert only
            //
            if (metadata.canInsert(qname))
View Full Code Here


        //
        // make sure instances that are StaticValues aren't deleted
        //
        if (!staticValues.isEmpty())
        {
            PropertyChangeApprover staticValuesListener =
                new StaticValuesApprover(qname, _metadata);
            addChangeApprover(staticValuesListener);
                   
            Iterator i = staticValues.iterator();
           
View Full Code Here

        {
            Iterator i = approvers.iterator();
           
            while (i.hasNext())
            {
                PropertyChangeApprover approver =
                    (PropertyChangeApprover)i.next();
                approver.validateChange(oldValue, newValue, securityToken);
            }
        }
    }
View Full Code Here

        //
        // make sure read-only properties aren't modified from the
        // outside (can still be mutable inside)
        //
        boolean readOnly = metadata.isReadOnlyExternal(qname);
        PropertyChangeApprover security = new ExternalChangeApprover(qname, readOnly);
        security.setSecurityToken(getSecurityToken());
        addChangeApprover(security);
       
        //
        // if we can't update, we're either appendable (insert only)
        // or constant (read only). we need an enforcer!
        //
        if (!metadata.canUpdate(qname))
        {
            PropertyChangeApprover approver = null;
           
            //
            // insert only
            //
            if (metadata.canInsert(qname))
View Full Code Here

        //
        // make sure instances that are StaticValues aren't deleted
        //
        if (!staticValues.isEmpty())
        {
            PropertyChangeApprover staticValuesListener =
                new StaticValuesApprover(qname, _metadata);
            addChangeApprover(staticValuesListener);
                   
            Iterator i = staticValues.iterator();
           
View Full Code Here

        {
            Iterator i = approvers.iterator();
           
            while (i.hasNext())
            {
                PropertyChangeApprover approver =
                    (PropertyChangeApprover)i.next();
                approver.validateChange(oldValue, newValue, securityToken);
            }
        }
    }
View Full Code Here

        //
        // make sure read-only properties aren't modified from the
        // outside (can still be mutable inside)
        //
        boolean readOnly = metadata.isReadOnlyExternal(qname);
        PropertyChangeApprover security = new ExternalChangeApprover(qname, readOnly);
        security.setSecurityToken(getSecurityToken());
        addChangeApprover(security);
       
        //
        // if we can't update, we're either appendable (insert only)
        // or constant (read only). we need an enforcer!
        //
        if (!metadata.canUpdate(qname))
        {
            PropertyChangeApprover approver = null;
           
            //
            // insert only
            //
            if (metadata.canInsert(qname))
View Full Code Here

        //
        // make sure instances that are StaticValues aren't deleted
        //
        if (!staticValues.isEmpty())
        {
            PropertyChangeApprover staticValuesListener =
                new StaticValuesApprover(qname, _metadata);
            addChangeApprover(staticValuesListener);
                   
            Iterator i = staticValues.iterator();
           
View Full Code Here

        {
            Iterator i = approvers.iterator();
           
            while (i.hasNext())
            {
                PropertyChangeApprover approver =
                    (PropertyChangeApprover)i.next();
                approver.validateChange(oldValue, newValue, securityToken);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.properties.listeners.PropertyChangeApprover

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.