Package org.apache.ws.resource.properties.faults

Examples of org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException


            {
                prop.add( propElemsToBeInserted[i] );
            }
            catch ( MetaDataViolationException mdve )
            {
                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), mdve );
            }
        }
        Object[] newValue = getValue( prop );
        firePropChangeEvents( prop, oldValue, newValue );
    }
View Full Code Here


                prop.add( newPropElems[i] );
            }
        }
        catch ( MetaDataViolationException mdve )
        {
            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), mdve );
        }
        Object[] newValue = getValue( prop );
        firePropChangeEvents( prop, oldValue, newValue );
    }
View Full Code Here

    private void throwFaultIfDeletionViolatesSchema( ResourceProperty prop )
    {
        if ( prop.getMetaData().getMinOccurs() != 0 )
        {
            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA,
                    prop.getMetaData().getName() ) );
        }
    }
View Full Code Here

            {
                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
            }
            catch ( InvalidInsertResourcePropertiesRequestContentFaultException fault )
            {
                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), fault.getFaultString() );
            }
        }

        DeleteType[] deleteElems = requestElem.getDeleteArray();
        for ( int i = 0; i < deleteElems.length; i++ )
        {
            try
            {
                deleteResourceProperty( deleteElems[i].getResourceProperty() );
            }
            catch ( DeleteResourcePropertyRequestFailedFaultException fault )
            {
                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
            }
        }

        UpdateType[] updateElems = requestElem.getUpdateArray();
        for ( int i = 0; i < updateElems.length; i++ )
        {
            XmlObject[] newPropElems = XmlBeanUtils.getChildElements( updateElems[i] );
            try
            {
                updateResourceProperty( newPropElems );
            }
            catch ( UpdateResourcePropertyRequestFailedFaultException fault )
            {
                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
            }
            catch ( InvalidUpdateResourcePropertiesRequestContentFaultException fault )
            {
                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), fault.getFaultString() );
            }
        }

        return responseDoc;
    }
View Full Code Here

            {
                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
            }
            catch ( InvalidInsertResourcePropertiesRequestContentFaultException fault )
            {
                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), fault.getFaultString() );
            }
        }

        DeleteType[] deleteElems = requestElem.getDeleteArray();
        for ( int i = 0; i < deleteElems.length; i++ )
        {
            try
            {
                deleteResourceProperty( deleteElems[i].getResourceProperty() );
            }
            catch ( DeleteResourcePropertyRequestFailedFaultException fault )
            {
                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
            }
        }

        UpdateType[] updateElems = requestElem.getUpdateArray();
        for ( int i = 0; i < updateElems.length; i++ )
        {
            XmlObject[] newPropElems = XmlBeanUtils.getChildElements( updateElems[i] );
            try
            {
                updateResourceProperty( newPropElems );
            }
            catch ( UpdateResourcePropertyRequestFailedFaultException fault )
            {
                throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(), fault.getFaultString() );
            }
            catch ( InvalidUpdateResourcePropertiesRequestContentFaultException fault )
            {
                throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(), fault.getFaultString() );
            }
        }

        return responseDoc;
    }
View Full Code Here

                    deleteElem.toString() ) );
        }
        QName nameOfPropToBeDeleted = deleteElem.getResourceProperty();
        if ( nameOfPropToBeDeleted == null )
        {
            throw new InvalidSetResourcePropertiesRequestContentFaultException( MSG.getMessage( Keys.DEL_MISSING_RP_ATTRIB ) );
        }
        ResourceProperty prop = getProperties().get( nameOfPropToBeDeleted );
        if ( prop == null )
        {
            if ( getProperties().getMetaData().isOpenContent() )
View Full Code Here

            {
                prop.add( propElemsToBeInserted[i] );
            }
            catch ( MetaDataViolationException mdve )
            {
                throw new InvalidSetResourcePropertiesRequestContentFaultException( mdve );
            }
        }
        Object[] newValue = getValue( prop );
        if ( prop.getChangeListener() != null )
        {
View Full Code Here

                prop.add( newPropElems[i] );
            }
        }
        catch ( MetaDataViolationException mdve )
        {
            throw new InvalidSetResourcePropertiesRequestContentFaultException( mdve );
        }
        Object[] newValue = getValue( prop );
        if ( prop.getChangeListener() != null )
        {
            firePropChangeEvent( prop, oldValue, newValue );
View Full Code Here

        for ( int i = 1; i < propElems.length; i++ )
        {
            QName propElemName = XmlBeanUtils.getName( propElems[i] );
            if ( !firstPropElemName.equals( propElemName ) )
            {
                throw new InvalidSetResourcePropertiesRequestContentFaultException( MSG.getMessage( Keys.ERROR_PROPERTY_INSERT_VIOLATES_SCHEMA,
                        ( ( propElems.length > 1 )
                        ? "s" : "" ),
                        firstPropElemName ) );
            }
        }
View Full Code Here

    private void throwFaultIfDeletionViolatesSchema( ResourceProperty prop )
    {
        if ( prop.getMetaData().getMinOccurs() != 0 )
        {
            throw new InvalidSetResourcePropertiesRequestContentFaultException( MSG.getMessage( Keys.ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA,
                    prop.getMetaData().getName() ) );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException

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.