Examples of UnableToModifyResourcePropertyFault


Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        // the MetadataDescriptor interface.
        //
        if (newValue != null && !_metadata.isValidValue(qname, newValue))
        {
            Object[] filler = { qname, XmlUtils.toString(newValue, false) };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("InvalidValue", filler));
        }
    }
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        Element[] results = getResourceProperty(qname);
       
        if (results.length == 0)
        {
            Object[] filler = { qname };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("NoInstancesToDelete", filler));
        }
       
        //
        // make sure deletion is okay from a SCHEMA point-of-view. this
        // does not validate deletion from a read-only/immutable. that
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        // callers must insert, THEN update
        //
        if (current.length == 0)
        {
            Object[] filler = { qname };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("PropertyNotFound", filler));
        }
       
        UpdateRequest request = new UpdateRequest(qname, values);
        Element[] valuesXML = request.getValues();
       
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        throws BaseFault
    {
        //
        // any change = BAD
        //
        throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("ReadOnly", new Object[]{ getPropertyName() }));
    }
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        //
        if ((oldValue != null && newValue == null) &&
            _metadata.isStaticValue(qname, oldValue))
        {
            Object[] filler = { qname, XmlUtils.toString(oldValue, false) };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("DeletingStaticValue", filler));
        }
    }
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        throws BaseFault
    {
        if (isReadOnly() && !isSecure(token))
        {
            Object[] filler = { getPropertyName() };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("NoExternalChanges", filler));
        }
    }
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        // or deleting it - BAD
        //
        if (oldValue != null)
        {
            Object[] filler = { getPropertyName() };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("InsertOnly", filler));
        }
    }
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        throws BaseFault
    {
        //
        // any change = BAD
        //
        throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("ReadOnly", new Object[]{ getPropertyName() }));
    }
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        //
        if ((oldValue != null && newValue == null) &&
            _metadata.isStaticValue(qname, oldValue))
        {
            Object[] filler = { qname, XmlUtils.toString(oldValue, false) };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("DeletingStaticValue", filler));
        }
    }
View Full Code Here

Examples of org.apache.muse.ws.resource.properties.set.faults.UnableToModifyResourcePropertyFault

        throws BaseFault
    {
        if (isReadOnly() && !isSecure(token))
        {
            Object[] filler = { getPropertyName() };
            throw new UnableToModifyResourcePropertyFault(_MESSAGES.get("NoExternalChanges", filler));
        }
    }
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.