|
Liferay 6.2-ce-ga2 | |||||||||
| 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.MBMessageTrashHandler
public class MBMessageTrashHandler
Implements trash handling for message boards message entity.
| Constructor Summary | |
|---|---|
MBMessageTrashHandler()
|
|
| Method Summary | |
|---|---|
void |
deleteTrashEntry(long classPK)
Deletes the model entity with the primary key. |
String |
getClassName()
Returns the class name handled by this trash handler. |
ContainerModel |
getContainerModel(long containerModelId)
Returns the container model with the primary key. |
String |
getContainerModelClassName()
Returns the parent container model's class name. |
ContainerModel |
getParentContainerModel(TrashedModel trashedModel)
|
TrashEntry |
getTrashEntry(long classPK)
|
protected boolean |
hasPermission(PermissionChecker permissionChecker,
long classPK,
String actionId)
|
boolean |
isDeletable()
Returns true if the entity can be deleted from the Recycle
Bin. |
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 |
restoreRelatedTrashEntry(String className,
long classPK)
Restores the model entity that is related to the model entity with the class name and class PK. |
void |
restoreTrashEntry(long userId,
long classPK)
Restores the model entity with the primary key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBMessageTrashHandler()
| Method Detail |
|---|
public void deleteTrashEntry(long classPK)
TrashHandler
classPK - the primary key of the model entity to deletepublic String getClassName()
TrashHandler
public ContainerModel getContainerModel(long containerModelId)
throws PortalException,
SystemException
TrashHandler
getContainerModel in interface TrashHandlergetContainerModel in class BaseTrashHandlercontainerModelId - the primary key of the container model
PortalException - if a container model with the primary key could
not be found
SystemException - if a system exception occurredpublic String getContainerModelClassName()
TrashHandler
getContainerModelClassName in interface TrashHandlergetContainerModelClassName in class BaseTrashHandler
public ContainerModel getParentContainerModel(TrashedModel trashedModel)
throws PortalException,
SystemException
getParentContainerModel in interface TrashHandlergetParentContainerModel in class BaseTrashHandlerPortalException
SystemException
public TrashEntry getTrashEntry(long classPK)
throws PortalException,
SystemException
getTrashEntry in interface TrashHandlergetTrashEntry in class BaseTrashHandlerPortalException
SystemExceptionpublic boolean isDeletable()
TrashHandlertrue if the entity can be deleted from the Recycle
Bin.
isDeletable in interface TrashHandlerisDeletable in class BaseTrashHandlertrue if the entity can be deleted from the Recycle
Bin.
public boolean isInTrash(long classPK)
throws PortalException,
SystemException
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
PortalException - if a model entity with the primary key could not
be found in the portal
SystemException - if a system exception occurred
public boolean isInTrashContainer(long classPK)
throws PortalException,
SystemException
TrashHandlertrue if the model entity with the primary key is in
a container that is in the Recycle Bin.
isInTrashContainer in interface TrashHandlerisInTrashContainer in class BaseTrashHandlerclassPK - the primary key of the model entity
true if the model entity with the primary key is in
a container that is in the Recycle Bin; false
otherwise
PortalException - if a model entity with the primary key could not
be found in the portal
SystemException - if a system exception occurred
public void restoreRelatedTrashEntry(String className,
long classPK)
throws PortalException,
SystemException
TrashHandlerWikiPageTrashHandler.restoreRelatedTrashEntry(
String, long) restores the attachment related to the wiki page with the
class name and class PK.
restoreRelatedTrashEntry in interface TrashHandlerrestoreRelatedTrashEntry in class BaseTrashHandlerclassName - the class name of the model entity with a related model
entity to restoreclassPK - the primary key of the model entity with a related model
entity to restore
PortalException - if a model entity with the primary key could not
be found
SystemException - if a system exception occurred
public void restoreTrashEntry(long userId,
long classPK)
TrashHandler
userId - the user IDclassPK - the primary key of the model entity to restore
protected boolean hasPermission(PermissionChecker permissionChecker,
long classPK,
String actionId)
throws PortalException,
SystemException
hasPermission in class BaseTrashHandlerPortalException
SystemException
|
Liferay 6.2-ce-ga2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||