|
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.blogs.trash.BlogsEntryTrashHandler
public class BlogsEntryTrashHandler
Implements trash handling for the blogs entry entity.
Constructor Summary | |
---|---|
BlogsEntryTrashHandler()
|
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. |
String |
getRestoreContainedModelLink(PortletRequest portletRequest,
long classPK)
|
String |
getRestoreContainerModelLink(PortletRequest portletRequest,
long classPK)
Returns the link to the location to which the model entity was restored. |
String |
getRestoreMessage(PortletRequest portletRequest,
long classPK)
Returns the message describing the location to which the model entity was restored. |
protected PortletURL |
getRestoreURL(PortletRequest portletRequest,
long classPK,
boolean isContainerModel)
|
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 |
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 BlogsEntryTrashHandler()
Method Detail |
---|
public void deleteTrashEntry(long classPK) throws PortalException, SystemException
TrashHandler
classPK
- the primary key of the model entity to delete
PortalException
- if a model entity with the primary key could not
be found
SystemException
- if a system exception occurredpublic String getClassName()
TrashHandler
public String getRestoreContainedModelLink(PortletRequest portletRequest, long classPK) throws PortalException, SystemException
getRestoreContainedModelLink
in interface TrashHandler
getRestoreContainedModelLink
in class BaseTrashHandler
PortalException
SystemException
public String getRestoreContainerModelLink(PortletRequest portletRequest, long classPK) throws PortalException, SystemException
TrashHandler
getRestoreContainerModelLink
in interface TrashHandler
getRestoreContainerModelLink
in class BaseTrashHandler
portletRequest
- the portlet requestclassPK
- the primary key of the restored model entity
PortalException
- if a model entity with the primary key could not
be found
SystemException
- if a system exception occurredpublic String getRestoreMessage(PortletRequest portletRequest, long classPK)
TrashHandler
getRestoreMessage
in interface TrashHandler
getRestoreMessage
in class BaseTrashHandler
portletRequest
- the portlet requestclassPK
- the primary key of the restored model entity
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 void restoreTrashEntry(long userId, long classPK) throws PortalException, SystemException
TrashHandler
userId
- the user IDclassPK
- the primary key of the model entity to restore
PortalException
- if a model entity with the primary key could not
be found
SystemException
- if a system exception occurredprotected PortletURL getRestoreURL(PortletRequest portletRequest, long classPK, boolean isContainerModel) throws PortalException, SystemException
PortalException
SystemException
protected 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 |