public class JournalFolderTrashHandler extends JournalBaseTrashHandler
| Constructor and Description |
|---|
JournalFolderTrashHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkDuplicateEntry(long classPK,
long trashEntryId,
long containerModelId,
java.lang.String originalTitle,
java.lang.String newName) |
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) |
protected void |
checkValidContainer(long classPK,
long containerModelId) |
void |
deleteTrashEntry(long classPK) |
java.lang.String |
getClassName() |
java.lang.String |
getDeleteMessage() |
protected long |
getGroupId(long classPK) |
protected com.liferay.journal.model.JournalFolder |
getJournalFolder(long classPK) |
com.liferay.portal.kernel.model.ContainerModel |
getParentContainerModel(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) |
com.liferay.trash.kernel.model.TrashEntry |
getTrashEntry(long classPK) |
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 |
isRestorable(long classPK) |
void |
moveEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
moveTrashEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
restoreTrashEntry(long userId,
long classPK) |
protected void |
setJournalFolderLocalService(com.liferay.journal.service.JournalFolderLocalService journalFolderLocalService) |
void |
updateTitle(long classPK,
java.lang.String name) |
getContainerModel, getContainerModelClassName, getContainerModelName, getContainerModels, getContainerModelsCount, getParentContainerModels, getRootContainerModelName, getSubcontainerModelName, getTrashContainedModelName, getTrashContainedModelsCount, getTrashContainedModelTrashRenderers, getTrashContainerModelName, getTrashContainerModelsCount, getTrashContainerModelTrashRenderers, getTrashModelsCount, getTrashModelTrashRenderers, isMovableaddDeletionSystemEvent, checkDuplicateEntry, checkDuplicateTrashEntry, getAssetRendererFactory, getContainerModelClassName, getDestinationContainerModelId, getExcludeFilter, getExcludeQuery, getParentContainerModel, getSystemEventClassName, isDeletable, restoreRelatedTrashEntrypublic 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 java.lang.String getDeleteMessage()
getDeleteMessage in interface com.liferay.portal.kernel.trash.TrashHandlergetDeleteMessage in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic 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 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 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 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 isRestorable(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
isRestorable in interface com.liferay.portal.kernel.trash.TrashHandlerisRestorable in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic void moveEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
moveEntry in interface com.liferay.portal.kernel.trash.TrashHandlermoveEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionpublic void moveTrashEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
moveTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlermoveTrashEntry 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 checkDuplicateEntry(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 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 void checkValidContainer(long classPK,
long containerModelId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected long getGroupId(long classPK)
throws com.liferay.portal.kernel.exception.PortalException
getGroupId in class JournalBaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptionprotected com.liferay.journal.model.JournalFolder getJournalFolder(long classPK)
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 setJournalFolderLocalService(com.liferay.journal.service.JournalFolderLocalService journalFolderLocalService)