public class WikiNodeTrashHandler
extends com.liferay.portal.kernel.trash.BaseTrashHandler
| Constructor and Description |
|---|
WikiNodeTrashHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkDuplicateTrashEntry(com.liferay.portlet.trash.model.TrashEntry trashEntry,
long containerModelId,
java.lang.String newName) |
void |
deleteTrashEntry(long classPK) |
java.lang.String |
getClassName() |
java.lang.String |
getRestoreContainedModelLink(javax.portlet.PortletRequest portletRequest,
long classPK) |
java.lang.String |
getRestoreContainerModelLink(javax.portlet.PortletRequest portletRequest,
long classPK) |
java.lang.String |
getRestoreMessage(javax.portlet.PortletRequest portletRequest,
long classPK) |
protected javax.portlet.PortletURL |
getRestoreURL(javax.portlet.PortletRequest portletRequest,
long classPK,
boolean isContainerModel) |
java.lang.String |
getTrashContainedModelName() |
int |
getTrashContainedModelsCount(long classPK) |
java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> |
getTrashContainedModelTrashRenderers(long classPK,
int start,
int end) |
com.liferay.portlet.trash.model.TrashEntry |
getTrashEntry(long classPK) |
com.liferay.portal.kernel.trash.TrashRenderer |
getTrashRenderer(long classPK) |
protected boolean |
hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long classPK,
java.lang.String actionId) |
boolean |
isContainerModel() |
boolean |
isInTrash(long classPK) |
void |
restoreTrashEntry(long userId,
long classPK) |
void |
updateTitle(long classPK,
java.lang.String name) |
addDeletionSystemEvent, checkDuplicateEntry, getAssetRendererFactory, getContainerModel, getContainerModelClassName, getContainerModelName, getContainerModels, getContainerModelsCount, getDeleteMessage, getParentContainerModel, getParentContainerModel, getParentContainerModels, getRootContainerModelName, getSubcontainerModelName, getSystemEventClassName, getTrashContainerModelName, getTrashContainerModelsCount, getTrashContainerModelTrashRenderers, hasTrashPermission, isDeletable, isInTrashContainer, isMovable, isRestorable, isTrashEntry, moveEntry, moveTrashEntry, restoreRelatedTrashEntrypublic void checkDuplicateTrashEntry(com.liferay.portlet.trash.model.TrashEntry trashEntry,
long containerModelId,
java.lang.String newName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
checkDuplicateTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlercheckDuplicateTrashEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void deleteTrashEntry(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getClassName()
public java.lang.String getRestoreContainedModelLink(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getRestoreContainedModelLink in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreContainedModelLink in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getRestoreContainerModelLink(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getRestoreContainerModelLink in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreContainerModelLink in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getRestoreMessage(javax.portlet.PortletRequest portletRequest,
long classPK)
getRestoreMessage in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreMessage in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic java.lang.String getTrashContainedModelName()
getTrashContainedModelName in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainedModelName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic int getTrashContainedModelsCount(long classPK)
throws com.liferay.portal.kernel.exception.SystemException
getTrashContainedModelsCount in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainedModelsCount in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> getTrashContainedModelTrashRenderers(long classPK,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashContainedModelTrashRenderers in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainedModelTrashRenderers in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.trash.model.TrashEntry getTrashEntry(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.trash.TrashRenderer getTrashRenderer(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashRenderer in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashRenderer in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic boolean isContainerModel()
isContainerModel in interface com.liferay.portal.kernel.trash.TrashHandlerisContainerModel in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic boolean isInTrash(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void restoreTrashEntry(long userId,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void updateTitle(long classPK,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
updateTitle in interface com.liferay.portal.kernel.trash.TrashHandlerupdateTitle in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected javax.portlet.PortletURL getRestoreURL(javax.portlet.PortletRequest portletRequest,
long classPK,
boolean isContainerModel)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected boolean hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long classPK,
java.lang.String actionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
hasPermission in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException