Novell exteNd
Director 5.2 API

com.sssw.webdav.event.api
Class EboCopyEvent

java.lang.Object
 |
 +--com.sssw.fw.event.api.EboEvent
       |
       +--com.sssw.fw.event.api.EboStateChangeEvent
             |
             +--com.sssw.webdav.event.api.EboWebdavEvent
                   |
                   +--com.sssw.webdav.event.api.EboCopyEvent
All Implemented Interfaces:
Serializable

public class EboCopyEvent
extends EboWebdavEvent

This event is fired off when a WebDAV COPY method is executed.

See Also:
Serialized Form

Fields inherited from class com.sssw.fw.event.api.EboStateChangeEvent
EVENT_ID_BASE, EVENT_ID_LAST, EVENT_ID_UNKNOWN, SC_BASE, SC_CHECK_ACCESS, SC_CLEAR, SC_COPY, SC_CREATE, SC_DEFAULT, SC_DELETE, SC_EXECUTE, SC_EXPORT, SC_FAIL, SC_GENERATE, SC_IMPORT, SC_INVALIDATE, SC_LAST, SC_LIST, SC_LOGOFF, SC_LOGON, SC_MOVE, SC_PUT, SC_QUERY, SC_REDEPLOY, SC_REGISTERED, SC_RETRIEVE, SC_SELECT, SC_SILENCE, SC_START, SC_STATUS, SC_STOP, SC_UNREGISTERED, SC_UPDATE, STR_SC_CHECK_ACCESS, STR_SC_CLEAR, STR_SC_COPY, STR_SC_CREATE, STR_SC_DEFAULT, STR_SC_DELETE, STR_SC_EXECUTE, STR_SC_EXPORT, STR_SC_FAIL, STR_SC_GENERATE, STR_SC_IMPORT, STR_SC_INVALIDATE, STR_SC_LIST, STR_SC_LOGOFF, STR_SC_LOGON, STR_SC_MOVE, STR_SC_QUERY, STR_SC_REGISTERED, STR_SC_RETRIEVE, STR_SC_SELECT, STR_SC_SILENCE, STR_SC_START, STR_SC_STATUS, STR_SC_STOP, STR_SC_UNKNOWN, STR_SC_UNREGISTERED, STR_SC_UPDATE
 
Constructor Summary
EboCopyEvent()
          Constructor.
 
Method Summary
 String getCopyName()
          Gets the name of the new copy.
 int getDepth()
          Gets the depth for the COPY method.
 int getEventID()
          Gets the event ID.
 boolean getOverwrite()
          Gets the overwrite flag.
 EbiDirectoryEntry getSource()
          Gets the source CM resource that is being copied.
 EbiDirectory getTarget()
          Gets the CM destination for this COPY method.
 String getVerboseDescr()
          Gets a verbose description of the event.
 void setCopyName(String copyName)
          Sets the name of the new copy.
 void setDepth(int depth)
          Sets the depth for the COPY method.
 void setOverwrite(boolean overwrite)
          Sets the overwrite flag.
 void setSource(EbiDirectoryEntry entry)
          Sets the source CM resource that is being copied.
 void setTarget(EbiDirectory target)
          Sets the CM destination for this COPY method.
 
Methods inherited from class com.sssw.webdav.event.api.EboWebdavEvent
getContext, getStateDescr, setContext
 
Methods inherited from class com.sssw.fw.event.api.EboStateChangeEvent
getState, setState
 
Methods inherited from class com.sssw.fw.event.api.EboEvent
getObject, setObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EboCopyEvent

public EboCopyEvent()
Constructor. Initializes the state to SC_COPY
Method Detail

getSource

public EbiDirectoryEntry getSource()
Gets the source CM resource that is being copied.
Returns:
the CM resource to be copied

getOverwrite

public boolean getOverwrite()
Gets the overwrite flag. If it is true the destination resource will be overwritten if it has the same name as the source.
Returns:
the overwrite flag

getTarget

public EbiDirectory getTarget()
Gets the CM destination for this COPY method.
Returns:
the CM destination for the source

getDepth

public int getDepth()
Gets the depth for the COPY method.
Returns:
the depth

getCopyName

public String getCopyName()
Gets the name of the new copy.
Returns:
the name of the new copy

setSource

public void setSource(EbiDirectoryEntry entry)
Sets the source CM resource that is being copied.
Parameters:
entry - the CM resource to be copied

setOverwrite

public void setOverwrite(boolean overwrite)
Sets the overwrite flag.
Parameters:
overwrite - the overwrite flag

setTarget

public void setTarget(EbiDirectory target)
Sets the CM destination for this COPY method.
Parameters:
target - the CM destination

setDepth

public void setDepth(int depth)
Sets the depth for the COPY method.
Parameters:
depth - the depth

setCopyName

public void setCopyName(String copyName)
Sets the name of the new copy.
Parameters:
copyName - the name of the new copy

getVerboseDescr

public String getVerboseDescr()
Gets a verbose description of the event.
Overrides:
getVerboseDescr in class EboWebdavEvent
Returns:
a verbose description of the event

getEventID

public int getEventID()
Gets the event ID.
Overrides:
getEventID in class EboWebdavEvent
Returns:
the event ID

Novell exteNd
Director 5.2 API