You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-commits@ws.apache.org by sc...@apache.org on 2005/10/18 21:39:36 UTC

svn commit: r326217 - /webservices/wsrf/trunk/src/site/content/xdocs/dev_guide/resource.xml

Author: scamp
Date: Tue Oct 18 12:39:34 2005
New Revision: 326217

URL: http://svn.apache.org/viewcvs?rev=326217&view=rev
Log: (empty)

Modified:
    webservices/wsrf/trunk/src/site/content/xdocs/dev_guide/resource.xml

Modified: webservices/wsrf/trunk/src/site/content/xdocs/dev_guide/resource.xml
URL: http://svn.apache.org/viewcvs/webservices/wsrf/trunk/src/site/content/xdocs/dev_guide/resource.xml?rev=326217&r1=326216&r2=326217&view=diff
==============================================================================
--- webservices/wsrf/trunk/src/site/content/xdocs/dev_guide/resource.xml (original)
+++ webservices/wsrf/trunk/src/site/content/xdocs/dev_guide/resource.xml Tue Oct 18 12:39:34 2005
@@ -64,5 +64,18 @@
          		which allow you to initialize or clean up your resource.
          		</p>
 		</section>
+		<section id="read-only">
+			<title>Read-Only ResourceProperties</title>
+			<p>Individual ResourceProperties can be defined read-only by modifying the ResourceMetadata object:</p>
+						
+		        <source>resourceProperty = resourcePropertySet.get( FilesystemPropertyQNames.DEVICESPECIALFILE );
+...
+resourceProperty.getMetaData().setReadOnly( true );
+			</source>
+			<p>The default <code>readOnly</code> value for custom ResourceProperties is <code>false</code>.  Setting <code>readOnly</code> to true
+			will ensure a ResourceProperty will not be changed via a <code>SetResourceProperty</code> request.			
+         		</p>
+         		<note>Attempting to modify a read-only property will generated a fault.</note>
+		</section>		
 	</body>
 </document>