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

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


        ResourceProperty prop = getProperty( propName );

        throwFaultIfPropertyIsReadOnly( prop );
        if ( elementNamesNotHomogenous( newPropElems ) )
        {
            throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS ) );
        }
        throwFaultIfUpdateViolatesSchema( prop, newPropElems );

        try
        {
View Full Code Here


    private void throwFaultIfUpdateViolatesSchema( ResourceProperty prop, XmlObject[] newPropElems )
    {
        if ( prop.getMetaData().getMaxOccurs() != -1 && newPropElems.length > prop.getMetaData().getMaxOccurs() )
        {
            throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA,
                    prop.getMetaData().getName() ) );
        }
    }
View Full Code Here

        ResourceProperty prop = getProperty( propName );

        throwFaultIfPropertyIsReadOnly( prop );
        if ( elementNamesNotHomogenous( newPropElems ) )
        {
            throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS ) );
        }
        throwFaultIfUpdateViolatesSchema( prop, newPropElems );

        try
        {
View Full Code Here

    private void throwFaultIfUpdateViolatesSchema( ResourceProperty prop, XmlObject[] newPropElems )
    {
        if ( prop.getMetaData().getMaxOccurs() != -1 && newPropElems.length > prop.getMetaData().getMaxOccurs() )
        {
            throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(), MSG.getMessage( Keys.ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA,
                    prop.getMetaData().getName() ) );
        }
    }
View Full Code Here

      ResourceProperty prop = getProperty( propName );

      throwFaultIfPropertyIsReadOnly( prop );
      if ( elementNamesNotHomogenous( newPropElems ) )
      {
         throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
                                                                                MSG.getMessage( Keys.ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS ) );
      }

      throwFaultIfUpdateViolatesSchema( prop, newPropElems );
View Full Code Here

   {
      // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
      if ( ( prop.getMetaData(  ).getMaxOccurs(  ) != -1 )
           && ( newPropElems.length > prop.getMetaData(  ).getMaxOccurs(  ) ) )
      {
         throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
                                                                                MSG.getMessage(
                                                                                                Keys.ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA,
                                                                                                prop.getMetaData(  )
                                                                                                    .getName(  ) ) );
      }
View Full Code Here

      ResourceProperty prop = getProperty( propName );

      throwFaultIfPropertyIsReadOnly( prop );
      if ( elementNamesNotHomogenous( newPropElems ) )
      {
         throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getResource(  ).getNamespaceSet(  ),
                                                                                MSG.getMessage( Keys.ERROR_UPDATE_ELEMS_NOT_HOMOGENOUS ) );
      }

      throwFaultIfUpdateViolatesSchema( prop, newPropElems );
View Full Code Here

   {
      // TODO (low-priority): if prop is an xsd:any, a more complex algorithm needs to be used to check for minOccurs/maxOccurs violations
      if ( ( prop.getMetaData(  ).getMaxOccurs(  ) != -1 )
           && ( newPropElems.length > prop.getMetaData(  ).getMaxOccurs(  ) ) )
      {
         throw new InvalidUpdateResourcePropertiesRequestContentFaultException( getResource(  ).getNamespaceSet(  ),
                                                                                MSG.getMessage(
                                                                                                Keys.ERROR_PROPERTY_UPDATE_VIOLATES_SCHEMA,
                                                                                                prop.getMetaData(  )
                                                                                                    .getName(  ) ) );
      }
View Full Code Here

TOP

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

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.