com.novell.emframe.dev
Class VetoDeletor
java.lang.Object
com.novell.emframe.dev.Plugin
com.novell.emframe.dev.Deletor
com.novell.emframe.dev.VetoDeletor
- public class VetoDeletor
- extends Deletor
Generic Deletor that will Veto any delete operation. If your custom Deletor decides it needs to Veto the deletion,
extended the VetoDeletor class and overwrite the doDelete method. Then in your doDelete method when you determine
you need to Veto the deletion, simply call the parent.doDelete to Veto the deletion. You must also register as an
object deletor in your XML descriptor under the <object-deletor> element.
|
Field Summary |
protected java.lang.String |
m_header
Header of the message. |
protected java.lang.String |
m_msg
Body of deletion message to display. |
protected java.lang.String |
m_objectName
Full DN of the object to be deleted. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_header
protected java.lang.String m_header
- Header of the message.
m_msg
protected java.lang.String m_msg
- Body of deletion message to display.
m_objectName
protected java.lang.String m_objectName
- Full DN of the object to be deleted.
VetoDeletor
public VetoDeletor()
doDelete
public void doDelete(ObjectEntry oe,
TaskContext context)
throws PluginException
- Called for this deletor to delete the object. This method will always throw a PluginException.
- Overrides:
doDelete in class Deletor
- Parameters:
oe - ObjectEntry containing the object to be deletedcontext - TaskContext of the plug-in
- Throws:
PluginException - if the deletion failed or should be Vetoed
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated September 2 2004 0111.