org.apache.muse.ws.resource.metadata.impl
Class ReadOnlyApprover
java.lang.Object
org.apache.muse.ws.resource.properties.listeners.AbstractChangeApprover
org.apache.muse.ws.resource.metadata.impl.ReadOnlyApprover
- All Implemented Interfaces:
- PropertyChangeApprover
public class ReadOnlyApprover
- extends AbstractChangeApprover
ReadOnlyApprover is a PropertyChangeApprover
that prevents modifications to read-only properties. It throws an exception for
any and all attempts to change a property.
- Author:
- Dan Jemiolo (danj)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyApprover
public ReadOnlyApprover(QName qname)
validateChange
public void validateChange(Element oldValue,
Element newValue,
Object token)
throws BaseFault
- Always throws an exception - no changes are allowed for
read-only properties.
- Parameters:
oldValue
- The current (about to be "old") value of the resource property.
This should be null if the change is a WS-RP Insert.newValue
- The potential new value of the resource property. This should
be null if the change is a WS-RP Delete.token
- The security token provided by the caller who wishes to make
the property change.
- Throws:
BaseFault
-
- If the modification is not allowed for any reason.
Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.