|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 TrashHandler
getContainerModel
in class BaseTrashHandler
containerModelId
- 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 TrashHandler
getContainerModelClassName
in class BaseTrashHandler
public ContainerModel getParentContainerModel(TrashedModel trashedModel) throws PortalException, SystemException
getParentContainerModel
in interface TrashHandler
getParentContainerModel
in class BaseTrashHandler
PortalException
SystemException
public TrashEntry getTrashEntry(long classPK) throws PortalException, SystemException
getTrashEntry
in interface TrashHandler
getTrashEntry
in class BaseTrashHandler
PortalException
SystemException
public boolean isDeletable()
TrashHandler
true
if the entity can be deleted from the Recycle
Bin.
isDeletable
in interface TrashHandler
isDeletable
in class BaseTrashHandler
true
if the entity can be deleted from the Recycle
Bin.public boolean isInTrash(long classPK) throws PortalException, SystemException
TrashHandler
true
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 occurredpublic boolean isInTrashContainer(long classPK) throws PortalException, SystemException
TrashHandler
true
if the model entity with the primary key is in
a container that is in the Recycle Bin.
isInTrashContainer
in interface TrashHandler
isInTrashContainer
in class BaseTrashHandler
classPK
- 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 occurredpublic void restoreRelatedTrashEntry(String className, long classPK) throws PortalException, SystemException
TrashHandler
WikiPageTrashHandler.restoreRelatedTrashEntry(
String, long)
restores the attachment related to the wiki page with the
class name and class PK.
restoreRelatedTrashEntry
in interface TrashHandler
restoreRelatedTrashEntry
in class BaseTrashHandler
className
- 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 occurredpublic void restoreTrashEntry(long userId, long classPK)
TrashHandler
userId
- the user IDclassPK
- the primary key of the model entity to restoreprotected boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId) throws PortalException, SystemException
hasPermission
in class BaseTrashHandler
PortalException
SystemException
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |