Package io.milton.event
Class MoveEvent
- java.lang.Object
-
- io.milton.event.MoveEvent
-
- All Implemented Interfaces:
Event,ResourceEvent
public class MoveEvent extends Object implements ResourceEvent
Fired just before the resource is moved.
-
-
Constructor Summary
Constructors Constructor Description MoveEvent(Resource res, CollectionResource destCollection, String destNewName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionResourcegetDestCollection()StringgetNewName()ResourcegetResource()
-
-
-
Constructor Detail
-
MoveEvent
public MoveEvent(Resource res, CollectionResource destCollection, String destNewName)
- Parameters:
res- - the resource to movedestCollection- - the destination collectiondestNewName- - the name of the resource within the destination folder
-
-
Method Detail
-
getResource
public Resource getResource()
- Specified by:
getResourcein interfaceResourceEvent
-
getDestCollection
public CollectionResource getDestCollection()
-
getNewName
public String getNewName()
-
-