|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyChangeApprover
PropertyChangeApprover describes a type of property listener that is invoked when a property change is about to occur (through the WS-RP SetResourceProperties operation). Approvers can prevent the change by throwing an exception from the validateChange() method. Before writing your own approver, make sure that Muse's WS-RMD support doesn't already do what you are trying to do.
MetadataDescriptor
Method Summary | |
---|---|
QName |
getPropertyName()
|
boolean |
isSecure(Object securityToken)
|
void |
setSecurityToken(Object securityToken)
Sets the security token that will be used in all security checks via isSecure(Object). |
void |
validateChange(Element oldValue,
Element newValue,
Object token)
Analyzes the property change being made and throws an exception if the change is invalid. |
Method Detail |
---|
QName getPropertyName()
boolean isSecure(Object securityToken)
securityToken
- The security token provided by the caller who wishes to make
the property change.
setSecurityToken(Object)
void setSecurityToken(Object securityToken)
securityToken
- isSecure(Object)
void validateChange(Element oldValue, Element newValue, Object token) throws BaseFault
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.
BaseFault
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |