com.liferay.portlet.blogs.trash
Class BlogsEntryTrashHandler
java.lang.Object
com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portlet.blogs.trash.BlogsEntryTrashHandler
- All Implemented Interfaces:
- TrashHandler
public class BlogsEntryTrashHandler
- extends BaseTrashHandler
Implements trash handling for the blogs entry entity.
|
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. |
void |
restoreTrashEntries(long[] classPKs)
Restores all the model entities with the primary keys. |
| Methods inherited from class com.liferay.portal.kernel.trash.BaseTrashHandler |
checkDuplicateTrashEntry, deleteTrashAttachments, deleteTrashEntries, deleteTrashEntry, deleteTrashEntry, getAssetRendererFactory, getContainerModel, getContainerModelName, getContainerModels, getContainerModelsCount, getDeleteMessage, getRestoreLink, getRestoreMessage, getRootContainerModelName, getSubcontainerModelName, getTrashRenderer, hasTrashPermission, isRestorable, moveTrashEntry, restoreTrashEntry, updateTitle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_NAME
public static final String CLASS_NAME
BlogsEntryTrashHandler
public BlogsEntryTrashHandler()
deleteTrashEntries
public void deleteTrashEntries(long[] classPKs,
boolean checkPermission)
throws PortalException,
SystemException
- 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 deletecheckPermission - whether to check permission before deleting each
model entity
- Throws:
PortalException - if any one of the model entities could not be
found
SystemException - if a system exception occurred
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
restoreTrashEntries
public void restoreTrashEntries(long[] classPKs)
throws PortalException,
SystemException
- 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
- Throws:
PortalException - if any one of the model entities could not be
found
SystemException - if a system exception occurred
hasPermission
protected boolean hasPermission(PermissionChecker permissionChecker,
long classPK,
String actionId)
throws PortalException,
SystemException
- Specified by:
hasPermission in class BaseTrashHandler
- Throws:
PortalException
SystemException