Liferay 6.2.0-ce-m3

com.liferay.portlet.messageboards.trash
Class MBMessageTrashHandler

java.lang.Object
  extended by com.liferay.portal.kernel.trash.BaseTrashHandler
      extended by com.liferay.portlet.messageboards.trash.MBMessageTrashHandler
All Implemented Interfaces:
TrashHandler

public class MBMessageTrashHandler
extends BaseTrashHandler

Implements trash handling for message boards thread entity.


Constructor Summary
MBMessageTrashHandler()
           
 
Method Summary
 void deleteTrashEntries(long[] classPKs, boolean checkPermission)
          Deletes all the model entities with the primary keys, optionally checking permission before deleting each model entity.
 String getClassName()
          Returns the class name handled by this trash handler.
protected  boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId)
           
 boolean isInTrash(long classPK)
          Returns true if the model entity with the primary key is in the Recycle Bin.
 boolean isInTrashContainer(long classPK)
          Returns true if the model entity with the primary key is in a container that is in the Recycle Bin.
 void restoreTrashEntries(long[] classPKs)
          Restores all the model entities with the primary keys.
 
Methods inherited from class com.liferay.portal.kernel.trash.BaseTrashHandler
checkDuplicateTrashEntry, deleteTrashEntries, deleteTrashEntry, deleteTrashEntry, getAssetRendererFactory, getContainerModel, getContainerModelClassName, getContainerModelName, getContainerModels, getContainerModelsCount, getDeleteMessage, getParentContainerModel, getParentContainerModels, getRestoreLink, getRestoreMessage, getRootContainerModelName, getSubcontainerModelName, getTrashContainedModelName, getTrashContainedModelsCount, getTrashContainedModelTrashRenderers, getTrashContainerModelName, getTrashContainerModelsCount, getTrashContainerModelTrashRenderers, getTrashRenderer, hasTrashPermission, isContainerModel, isMovable, isRestorable, moveEntry, moveTrashEntry, restoreTrashEntry, updateTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageTrashHandler

public MBMessageTrashHandler()
Method Detail

deleteTrashEntries

public void deleteTrashEntries(long[] classPKs,
                               boolean checkPermission)
Description copied from interface: TrashHandler
Deletes all the model entities with the primary keys, optionally checking permission before deleting each model entity.

Parameters:
classPKs - the primary keys of the model entities to delete
checkPermission - whether to check permission before deleting each model entity

getClassName

public String getClassName()
Description copied from interface: TrashHandler
Returns the class name handled by this trash handler.

Returns:
the class name handled by this trash handler

isInTrash

public boolean isInTrash(long classPK)
                  throws PortalException,
                         SystemException
Description copied from interface: TrashHandler
Returns true if the model entity with the primary key is in the Recycle Bin.

Parameters:
classPK - the primary key of the model entity
Returns:
true if the model entity is in the Recycle Bin; false otherwise
Throws:
PortalException - if a model entity with the primary key could not be found in the portal
SystemException - if a system exception occurred

isInTrashContainer

public boolean isInTrashContainer(long classPK)
                           throws PortalException,
                                  SystemException
Description copied from interface: TrashHandler
Returns true if the model entity with the primary key is in a container that is in the Recycle Bin.

Specified by:
isInTrashContainer in interface TrashHandler
Overrides:
isInTrashContainer in class BaseTrashHandler
Parameters:
classPK - the primary key of the model entity
Returns:
true if the model entity with the primary key is in a container that is in the Recycle Bin; false otherwise
Throws:
PortalException - if a model entity with the primary key could not be found in the portal
SystemException - if a system exception occurred

restoreTrashEntries

public void restoreTrashEntries(long[] classPKs)
Description copied from interface: TrashHandler
Restores all the model entities with the primary keys.

Parameters:
classPKs - the primary keys of the model entities to restore

hasPermission

protected boolean hasPermission(PermissionChecker permissionChecker,
                                long classPK,
                                String actionId)
                         throws PortalException,
                                SystemException
Specified by:
hasPermission in class BaseTrashHandler
Throws:
PortalException
SystemException

Liferay 6.2.0-ce-m3