Liferay 6.2-ce-ga5

com.liferay.portal.kernel.trash
Interface TrashHandlerRegistry


public interface TrashHandlerRegistry

Represents the interface for registering handlers for those entities that can be moved to Trash.

The entities that can be registered are:


Method Summary
 TrashHandler getTrashHandler(String className)
          Returns the trash handler associated with the class name.
 List<TrashHandler> getTrashHandlers()
          Returns all of the trash handlers.
 void register(TrashHandler trashHandler)
          Registers the trash handler.
 void unregister(TrashHandler trashHandler)
          Unregisters the trash handler.
 

Method Detail

getTrashHandler

TrashHandler getTrashHandler(String className)
Returns the trash handler associated with the class name.

Parameters:
className - class name of the TrashHandler
Returns:
the trash handler associated with the class name

getTrashHandlers

List<TrashHandler> getTrashHandlers()
Returns all of the trash handlers.

Returns:
the trash handlers

register

void register(TrashHandler trashHandler)
Registers the trash handler.

Parameters:
trashHandler - the TrashHandler to register

unregister

void unregister(TrashHandler trashHandler)
Unregisters the trash handler.

Parameters:
trashHandler - the trash handler to unregister

Liferay 6.2-ce-ga5