public class WikiPageTrashHandler
extends com.liferay.portal.kernel.trash.BaseTrashHandler
| Constructor and Description |
|---|
WikiPageTrashHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.model.SystemEvent |
addDeletionSystemEvent(long userId,
long groupId,
long classPK,
java.lang.String classUuid,
java.lang.String referrerClassName) |
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 |
getContainerModelClassName() |
java.lang.String |
getContainerModelName() |
com.liferay.portal.model.ContainerModel |
getParentContainerModel(long classPK) |
com.liferay.portal.model.ContainerModel |
getParentContainerModel(com.liferay.portal.model.TrashedModel trashedModel) |
java.util.List<com.liferay.portal.model.ContainerModel> |
getParentContainerModels(long classPK) |
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) |
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 |
hasTrashPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long groupId,
long classPK,
java.lang.String trashActionId) |
boolean |
isInTrash(long classPK) |
boolean |
isInTrashContainer(long classPK) |
void |
restoreRelatedTrashEntry(java.lang.String className,
long classPK) |
void |
restoreTrashEntry(long userId,
long classPK) |
void |
updateTitle(long classPK,
java.lang.String name) |
checkDuplicateEntry, getAssetRendererFactory, getContainerModel, getContainerModels, getContainerModelsCount, getDeleteMessage, getRootContainerModelName, getSubcontainerModelName, getSystemEventClassName, getTrashContainedModelName, getTrashContainedModelsCount, getTrashContainedModelTrashRenderers, getTrashContainerModelName, getTrashContainerModelsCount, getTrashContainerModelTrashRenderers, isContainerModel, isDeletable, isMovable, isRestorable, isTrashEntry, moveEntry, moveTrashEntrypublic com.liferay.portal.model.SystemEvent addDeletionSystemEvent(long userId,
long groupId,
long classPK,
java.lang.String classUuid,
java.lang.String referrerClassName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
addDeletionSystemEvent in interface com.liferay.portal.kernel.trash.TrashHandleraddDeletionSystemEvent in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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 getContainerModelClassName()
getContainerModelClassName in interface com.liferay.portal.kernel.trash.TrashHandlergetContainerModelClassName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic java.lang.String getContainerModelName()
getContainerModelName in interface com.liferay.portal.kernel.trash.TrashHandlergetContainerModelName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic com.liferay.portal.model.ContainerModel getParentContainerModel(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getParentContainerModel in interface com.liferay.portal.kernel.trash.TrashHandlergetParentContainerModel in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.model.ContainerModel getParentContainerModel(com.liferay.portal.model.TrashedModel trashedModel)
getParentContainerModel in interface com.liferay.portal.kernel.trash.TrashHandlergetParentContainerModel in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic java.util.List<com.liferay.portal.model.ContainerModel> getParentContainerModels(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getParentContainerModels in interface com.liferay.portal.kernel.trash.TrashHandlergetParentContainerModels in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getRestoreMessage in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreMessage 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 hasTrashPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long groupId,
long classPK,
java.lang.String trashActionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
hasTrashPermission in interface com.liferay.portal.kernel.trash.TrashHandlerhasTrashPermission in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic 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 boolean isInTrashContainer(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
isInTrashContainer in interface com.liferay.portal.kernel.trash.TrashHandlerisInTrashContainer in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void restoreRelatedTrashEntry(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
restoreRelatedTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlerrestoreRelatedTrashEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.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