public class WikiPageTrashHandler extends BaseWikiTrashHandler
| Constructor and Description |
|---|
WikiPageTrashHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.model.SystemEvent |
addDeletionSystemEvent(long userId,
long groupId,
long classPK,
java.lang.String classUuid,
java.lang.String referrerClassName) |
protected void |
checkRestorableEntry(long classPK,
long trashEntryId,
long containerModelId,
java.lang.String originalTitle,
java.lang.String newName) |
void |
checkRestorableEntry(long classPK,
long containerModelId,
java.lang.String newName) |
void |
checkRestorableEntry(com.liferay.trash.kernel.model.TrashEntry trashEntry,
long containerModelId,
java.lang.String newName) |
void |
deleteTrashEntry(long classPK) |
java.lang.String |
getClassName() |
com.liferay.portal.kernel.model.ContainerModel |
getParentContainerModel(long classPK) |
com.liferay.portal.kernel.model.ContainerModel |
getParentContainerModel(com.liferay.portal.kernel.model.TrashedModel trashedModel) |
java.util.List<com.liferay.portal.kernel.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 containerModel) |
int |
getTrashContainedModelsCount(long classPK) |
java.lang.String |
getTrashContainerModelName() |
int |
getTrashContainerModelsCount(long classPK) |
java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> |
getTrashContainerModelTrashRenderers(long classPK,
int start,
int end) |
com.liferay.trash.kernel.model.TrashEntry |
getTrashEntry(long classPK) |
java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> |
getTrashModelTrashRenderers(long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc) |
com.liferay.portal.kernel.trash.TrashRenderer |
getTrashRenderer(long classPK) |
protected boolean |
hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long classPK,
java.lang.String actionId) |
boolean |
hasTrashPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long groupId,
long classPK,
java.lang.String trashActionId) |
boolean |
isContainerModel() |
boolean |
isInTrash(long classPK) |
boolean |
isInTrashContainer(long classPK) |
boolean |
isMovable() |
void |
restoreRelatedTrashEntry(java.lang.String className,
long classPK) |
void |
restoreTrashEntry(long userId,
long classPK) |
protected void |
setWikiEngineRenderer(WikiEngineRenderer wikiEngineRenderer) |
protected void |
setWikiPageLocalService(com.liferay.wiki.service.WikiPageLocalService wikiPageLocalService) |
protected void |
setWikiPageResourceLocalService(com.liferay.wiki.service.WikiPageResourceLocalService wikiPageResourceLocalService) |
protected void |
setWikiPageService(com.liferay.wiki.service.WikiPageService wikiPageService) |
void |
updateTitle(long classPK,
java.lang.String name) |
getContainerModel, getContainerModelClassName, getContainerModelName, getContainerModels, getContainerModelsCount, getDestinationContainerModelId, getSubcontainerModelName, moveEntry, moveTrashEntrycheckDuplicateEntry, checkDuplicateTrashEntry, getAssetRendererFactory, getContainerModelClassName, getDeleteMessage, getExcludeFilter, getExcludeQuery, getRootContainerModelName, getSystemEventClassName, getTrashContainedModelName, getTrashContainedModelTrashRenderers, getTrashModelsCount, isDeletable, isRestorablepublic com.liferay.portal.kernel.model.SystemEvent addDeletionSystemEvent(long userId,
long groupId,
long classPK,
java.lang.String classUuid,
java.lang.String referrerClassName)
throws com.liferay.portal.kernel.exception.PortalException
addDeletionSystemEvent in interface com.liferay.portal.kernel.trash.TrashHandleraddDeletionSystemEvent in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic void checkRestorableEntry(long classPK,
long containerModelId,
java.lang.String newName)
throws com.liferay.portal.kernel.exception.PortalException
checkRestorableEntry in interface com.liferay.portal.kernel.trash.TrashHandlercheckRestorableEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic void checkRestorableEntry(com.liferay.trash.kernel.model.TrashEntry trashEntry,
long containerModelId,
java.lang.String newName)
throws com.liferay.portal.kernel.exception.PortalException
checkRestorableEntry in interface com.liferay.portal.kernel.trash.TrashHandlercheckRestorableEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteTrashEntry(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getClassName()
public com.liferay.portal.kernel.model.ContainerModel getParentContainerModel(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getParentContainerModel in interface com.liferay.portal.kernel.trash.TrashHandlergetParentContainerModel in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.model.ContainerModel getParentContainerModel(com.liferay.portal.kernel.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.kernel.model.ContainerModel> getParentContainerModels(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getParentContainerModels in interface com.liferay.portal.kernel.trash.TrashHandlergetParentContainerModels in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getRestoreContainedModelLink(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getRestoreContainedModelLink in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreContainedModelLink in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getRestoreContainerModelLink(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getRestoreContainerModelLink in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreContainerModelLink in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getRestoreMessage(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getRestoreMessage in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreMessage in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic int getTrashContainedModelsCount(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getTrashContainedModelsCount in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainedModelsCount in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getTrashContainerModelName()
getTrashContainerModelName in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainerModelName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic int getTrashContainerModelsCount(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getTrashContainerModelsCount in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainerModelsCount in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> getTrashContainerModelTrashRenderers(long classPK,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
getTrashContainerModelTrashRenderers in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainerModelTrashRenderers in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.trash.kernel.model.TrashEntry getTrashEntry(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> getTrashModelTrashRenderers(long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.PortalException
getTrashModelTrashRenderers in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashModelTrashRenderers in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.trash.TrashRenderer getTrashRenderer(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getTrashRenderer in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashRenderer in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic boolean hasTrashPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long groupId,
long classPK,
java.lang.String trashActionId)
throws com.liferay.portal.kernel.exception.PortalException
hasTrashPermission in interface com.liferay.portal.kernel.trash.TrashHandlerhasTrashPermission in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic 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.PortalExceptionpublic boolean isInTrashContainer(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
isInTrashContainer in interface com.liferay.portal.kernel.trash.TrashHandlerisInTrashContainer in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isMovable()
isMovable in interface com.liferay.portal.kernel.trash.TrashHandlerisMovable in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic void restoreRelatedTrashEntry(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
restoreRelatedTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlerrestoreRelatedTrashEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic void restoreTrashEntry(long userId,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void updateTitle(long classPK,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException
updateTitle in interface com.liferay.portal.kernel.trash.TrashHandlerupdateTitle in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionprotected void checkRestorableEntry(long classPK,
long trashEntryId,
long containerModelId,
java.lang.String originalTitle,
java.lang.String newName)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected javax.portlet.PortletURL getRestoreURL(javax.portlet.PortletRequest portletRequest,
long classPK,
boolean containerModel)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected boolean hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
long classPK,
java.lang.String actionId)
throws com.liferay.portal.kernel.exception.PortalException
hasPermission in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionprotected void setWikiEngineRenderer(WikiEngineRenderer wikiEngineRenderer)
protected void setWikiPageLocalService(com.liferay.wiki.service.WikiPageLocalService wikiPageLocalService)
protected void setWikiPageResourceLocalService(com.liferay.wiki.service.WikiPageResourceLocalService wikiPageResourceLocalService)
protected void setWikiPageService(com.liferay.wiki.service.WikiPageService wikiPageService)