Class PropertyRestrictionListener
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.bean.PropertyRestrictionListener
-
- All Implemented Interfaces:
ChangeListener
public class PropertyRestrictionListener extends Object implements ChangeListener
Add this ChangeListener to your EditProcessObject when modifying the ontology, and we will refresh the PropertyRestrictionPolicyHelper bean as appropriate.
-
-
Constructor Summary
Constructors Constructor Description PropertyRestrictionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoDeleted(Object oldObj, EditProcessObject epo)If the deleted property had a non-null restriction, rebuild the bean.voiddoInserted(Object newObj, EditProcessObject epo)Update the inserted property.voiddoUpdated(Object oldObj, Object newObj, EditProcessObject epo)Update the changed property.
-
-
-
Method Detail
-
doDeleted
public void doDeleted(Object oldObj, EditProcessObject epo)
If the deleted property had a non-null restriction, rebuild the bean.- Specified by:
doDeletedin interfaceChangeListener
-
doInserted
public void doInserted(Object newObj, EditProcessObject epo)
Update the inserted property.- Specified by:
doInsertedin interfaceChangeListener
-
doUpdated
public void doUpdated(Object oldObj, Object newObj, EditProcessObject epo)
Update the changed property.- Specified by:
doUpdatedin interfaceChangeListener
-
-