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

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


        {
            LOG.debug( MSG.getMessage( Keys.DEL_RP_REQ, nameOfPropToBeDeleted ) );
        }
        if ( nameOfPropToBeDeleted == null )
        {
            throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(), MSG.getMessage( Keys.DEL_MISSING_RP_ATTRIB ) );
        }
        ResourceProperty prop = getProperties().get( nameOfPropToBeDeleted );
        if ( prop == null )
        {
            if ( getProperties().getMetaData().isOpenContent() )
            {
                return;
            }
            else
            {
                throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(), nameOfPropToBeDeleted );
            }
        }
        throwFaultIfPropertyIsReadOnly( prop );
        throwFaultIfDeletionViolatesSchema( prop );
        try
        {
            deletePropertyCallback( prop );
        }
        catch ( RuntimeException re )
        {
            throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(), re.toString() );
        }
        Object[] oldValue = getValue( prop );
        prop.clear();
        Object[] newValue = null;
        firePropChangeEvents( prop, oldValue, newValue );
View Full Code Here


        {
            LOG.debug( MSG.getMessage( Keys.DEL_RP_REQ, nameOfPropToBeDeleted ) );
        }
        if ( nameOfPropToBeDeleted == null )
        {
            throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(), MSG.getMessage( Keys.DEL_MISSING_RP_ATTRIB ) );
        }
        ResourceProperty prop = getProperties().get( nameOfPropToBeDeleted );
        if ( prop == null )
        {
            if ( getProperties().getMetaData().isOpenContent() )
            {
                return;
            }
            else
            {
                throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(), nameOfPropToBeDeleted );
            }
        }
        throwFaultIfPropertyIsReadOnly( prop );
        throwFaultIfDeletionViolatesSchema( prop );
        try
        {
            deletePropertyCallback( prop );
        }
        catch ( RuntimeException re )
        {
            throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(), re.toString() );
        }
        Object[] oldValue = getValue( prop );
        prop.clear();
        Object[] newValue = null;
        if ( prop.getChangeListener() != null )
View Full Code Here

         LOG.debug( MSG.getMessage( Keys.DEL_RP_REQ, nameOfPropToBeDeleted ) );
      }

      if ( nameOfPropToBeDeleted == null )
      {
         throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
                                                                      MSG.getMessage( Keys.DEL_MISSING_RP_ATTRIB ) );
      }

      ResourceProperty prop = getProperties(  ).get( nameOfPropToBeDeleted );
      if ( prop == null )
      {
         if ( getProperties(  ).getMetaData(  ).isOpenContent(  ) )
         {
            return;
         }
         else
         {
            throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(  ), nameOfPropToBeDeleted );
         }
      }

      throwFaultIfPropertyIsReadOnly( prop );
      throwFaultIfDeletionViolatesSchema( prop );
      try
      {
         deletePropertyCallback( prop );
      }
      catch ( RuntimeException re )
      {
         throw new DeleteResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
                                                                      re.toString(  ) );
      }

      Object[] oldValue = getValue( prop );
      prop.clear(  );
View Full Code Here

         LOG.debug( MSG.getMessage( Keys.DEL_RP_REQ, nameOfPropToBeDeleted ) );
      }

      if ( nameOfPropToBeDeleted == null )
      {
         throw new DeleteResourcePropertyRequestFailedFaultException( getResource(  ).getNamespaceSet(  ),
                                                                      MSG.getMessage( Keys.DEL_MISSING_RP_ATTRIB ) );
      }

      ResourceProperty prop = getProperties(  ).get( nameOfPropToBeDeleted );
      if ( prop == null )
      {
         if ( getProperties(  ).getMetaData(  ).isOpenContent(  ) )
         {
            return;
         }
         else
         {
            throw new InvalidResourcePropertyQNameFaultException( getResource(  ).getNamespaceSet(  ),
                                                                  nameOfPropToBeDeleted );
         }
      }

      throwFaultIfPropertyIsReadOnly( prop );
      throwFaultIfDeletionViolatesSchema( prop );
      try
      {
         deletePropertyCallback( prop );
      }
      catch ( RuntimeException re )
      {
         throw new DeleteResourcePropertyRequestFailedFaultException( getResource(  ).getNamespaceSet(  ),
                                                                      re.toString(  ) );
      }

      Object[] oldValue = getValue( prop );
      prop.clear(  );
View Full Code Here

TOP

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

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.