Package org.apache.muse.ws.resource.metadata

Examples of org.apache.muse.ws.resource.metadata.MetadataDescriptor


    }
   
    Definition mergedWsdl = merge(uri, wsdls, address);
         
    if(outputRMDFileName != null) {
      MetadataDescriptor mergedMetadata = merge(outputFileName, getFirstPortType(mergedWsdl).getQName(), metadatas);
      setMetadata(mergedMetadata.getName(), outputRMDFileName, mergedWsdl);
      writeRmd(outputRMDFileName, mergedMetadata, overwrite);
    }       
   
    writeWsdl(outputFileName, mergedWsdl, overwrite)
  }
View Full Code Here


   * @return the resource metadata descriptor.
   */
  protected Element getResourceMetadataDescriptor()
  {
        WsResource resource = (WsResource)getResource();
        MetadataDescriptor metadataDescriptor = resource.getPropertyCollection().getMetadata();
        return metadataDescriptor.toXML();   
  }
View Full Code Here

        Document wsdl = WsdlUtils.createWSDL(getEnvironment(), getWsdlPath(), true);
       
        ResourcePropertiesSchema schema = createPropertiesSchema(wsdl);
        _properties.setSchema(schema);
       
        MetadataDescriptor metadata = createMetadataDescriptor(wsdl);
        _properties.setMetadata(metadata);
       
        //
        // use parent to initialize capabilities now that WSRP model is in place
        //
View Full Code Here

        }
    }
   
    protected void addPermissions(QName qname)
    {
        MetadataDescriptor metadata = getMetadata();
       
        //
        // 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))
                approver = new InsertOnlyApprover(qname);
           
            //
            // read only
            //
View Full Code Here

   
    protected void deleteMutableProperties()
        throws BaseFault
    {
        Iterator i = getPropertyNames().iterator();
        MetadataDescriptor metadata = getMetadata();
       
        while (i.hasNext())
        {
            QName propName = (QName)i.next();
           
            if (metadata.canDelete(propName) && !metadata.isReadOnlyExternal(propName))
            {
                //
                // check if there are any instances to delete
                //
                Element[] instances = getResourceProperty(propName);
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.metadata.MetadataDescriptor

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.