|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portlet.messageboards.trash.MBThreadTrashHandler
public class MBThreadTrashHandler
Implements trash handling for message boards thread entity.
| Field Summary | |
|---|---|
static String |
CLASS_NAME
|
| Constructor Summary | |
|---|---|
MBThreadTrashHandler()
|
|
| Method Summary | |
|---|---|
void |
deleteTrashAttachments(Group group,
Date date)
Deletes the group's attachments that were trashed before the given date. |
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. |
String |
getRestoreLink(PortletRequest portletRequest,
long classPK)
Returns the link to the location to which the trash entry was restored. |
String |
getRestoreMessage(PortletRequest portletRequest,
long classPK)
Returns the message describing the location to which the trash entry was restored. |
TrashRenderer |
getTrashRenderer(long classPK)
Returns the trash renderer associated to the model entity with the primary key. |
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, deleteTrashEntries, deleteTrashEntry, deleteTrashEntry, getAssetRendererFactory, getContainerModel, getContainerModelName, getContainerModels, getContainerModelsCount, getDeleteMessage, getRootContainerModelName, getSubcontainerModelName, hasTrashPermission, isRestorable, moveTrashEntry, restoreTrashEntry, updateTitle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CLASS_NAME
| Constructor Detail |
|---|
public MBThreadTrashHandler()
| Method Detail |
|---|
public void deleteTrashAttachments(Group group,
Date date)
throws PortalException,
SystemException
BaseTrashHandler
deleteTrashAttachments in interface TrashHandlerdeleteTrashAttachments in class BaseTrashHandlergroup - ID the primary key of the groupdate - the date from which attachments will be deleted
PortalException - if any one of the attachment file paths were
invalid
SystemException - if a system exception occurred
public void deleteTrashEntries(long[] classPKs,
boolean checkPermission)
throws PortalException,
SystemException
TrashHandler
classPKs - the primary keys of the model entities to deletecheckPermission - whether to check permission before deleting each
model entity
PortalException - if any one of the model entities could not be
found
SystemException - if a system exception occurredpublic String getClassName()
TrashHandler
public String getRestoreLink(PortletRequest portletRequest,
long classPK)
throws PortalException,
SystemException
BaseTrashHandler
getRestoreLink in interface TrashHandlergetRestoreLink in class BaseTrashHandlerportletRequest - the portlet requestclassPK - the primary key of the restored trash entry
PortalException - if a trash entry with the primary key could not
be found
SystemException - if a system exception occurred
public String getRestoreMessage(PortletRequest portletRequest,
long classPK)
throws PortalException,
SystemException
BaseTrashHandler
getRestoreMessage in interface TrashHandlergetRestoreMessage in class BaseTrashHandlerportletRequest - the portlet requestclassPK - the primary key of the restored trash entry
PortalException - if a trash entry with the primary key could not
be found
SystemException - if a system exception occurred
public TrashRenderer getTrashRenderer(long classPK)
throws PortalException,
SystemException
TrashHandler
getTrashRenderer in interface TrashHandlergetTrashRenderer in class BaseTrashHandlerclassPK - the primary key of the model entity
PortalException - if a model entity with the primary key could not
be found
SystemException - if a system exception occurredpublic boolean isInTrash(long classPK)
TrashHandlertrue if the model entity with the primary key is in
the Recycle Bin.
classPK - the primary key of the model entity
true if the model entity is in the Recycle Bin;
false otherwise
public void restoreTrashEntries(long[] classPKs)
throws PortalException,
SystemException
TrashHandler
classPKs - the primary keys of the model entities to restore
PortalException - if any one of the model entities could not be
found
SystemException - if a system exception occurred
protected boolean hasPermission(PermissionChecker permissionChecker,
long classPK,
String actionId)
throws PortalException,
SystemException
hasPermission in class BaseTrashHandlerPortalException
SystemException
|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||