public class JournalArticleTrashHandler extends JournalBaseTrashHandler
Constructor and Description |
---|
JournalArticleTrashHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDuplicateEntry(long classPK,
long trashEntryId,
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() |
com.liferay.portal.kernel.search.filter.Filter |
getExcludeFilter(com.liferay.portal.kernel.search.SearchContext searchContext) |
protected long |
getGroupId(long classPK) |
com.liferay.portal.kernel.model.ContainerModel |
getParentContainerModel(long classPK) |
com.liferay.portal.kernel.model.ContainerModel |
getParentContainerModel(com.liferay.portal.kernel.model.TrashedModel trashedModel) |
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 |
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 containerId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
restoreTrashEntry(long userId,
long classPK) |
protected void |
setDDMStructureLocalService(com.liferay.dynamic.data.mapping.service.DDMStructureLocalService ddmStructureLocalService) |
protected void |
setJournalArticleLocalService(JournalArticleLocalService journalArticleLocalService) |
protected void |
setJournalArticleResourceLocalService(JournalArticleResourceLocalService journalArticleResourceLocalService) |
protected void |
setJournalFolderLocalService(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, isMovable
addDeletionSystemEvent, checkDuplicateEntry, checkDuplicateTrashEntry, getAssetRendererFactory, getContainerModelClassName, getDeleteMessage, getDestinationContainerModelId, getExcludeQuery, getRestoreContainedModelLink, getSystemEventClassName, isContainerModel, isDeletable, restoreRelatedTrashEntry
public 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.TrashHandler
checkRestorableEntry
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public 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.TrashHandler
checkRestorableEntry
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public void deleteTrashEntry(long classPK) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getClassName()
public com.liferay.portal.kernel.search.filter.Filter getExcludeFilter(com.liferay.portal.kernel.search.SearchContext searchContext)
getExcludeFilter
in interface com.liferay.portal.kernel.trash.TrashHandler
getExcludeFilter
in class com.liferay.portal.kernel.trash.BaseTrashHandler
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.TrashHandler
getParentContainerModel
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.ContainerModel getParentContainerModel(com.liferay.portal.kernel.model.TrashedModel trashedModel) throws com.liferay.portal.kernel.exception.PortalException
getParentContainerModel
in interface com.liferay.portal.kernel.trash.TrashHandler
getParentContainerModel
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public 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.TrashHandler
getRestoreContainerModelLink
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public 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.TrashHandler
getRestoreMessage
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public com.liferay.trash.kernel.model.TrashEntry getTrashEntry(long classPK) throws com.liferay.portal.kernel.exception.PortalException
getTrashEntry
in interface com.liferay.portal.kernel.trash.TrashHandler
getTrashEntry
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.trash.TrashRenderer getTrashRenderer(long classPK) throws com.liferay.portal.kernel.exception.PortalException
getTrashRenderer
in interface com.liferay.portal.kernel.trash.TrashHandler
getTrashRenderer
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public 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.TrashHandler
hasTrashPermission
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public boolean isInTrash(long classPK) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isInTrashContainer(long classPK) throws com.liferay.portal.kernel.exception.PortalException
isInTrashContainer
in interface com.liferay.portal.kernel.trash.TrashHandler
isInTrashContainer
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public boolean isRestorable(long classPK) throws com.liferay.portal.kernel.exception.PortalException
isRestorable
in interface com.liferay.portal.kernel.trash.TrashHandler
isRestorable
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public 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.TrashHandler
moveEntry
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public void moveTrashEntry(long userId, long classPK, long containerId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
moveTrashEntry
in interface com.liferay.portal.kernel.trash.TrashHandler
moveTrashEntry
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
public void restoreTrashEntry(long userId, long classPK) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void updateTitle(long classPK, java.lang.String name) throws com.liferay.portal.kernel.exception.PortalException
updateTitle
in interface com.liferay.portal.kernel.trash.TrashHandler
updateTitle
in class com.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
protected void checkDuplicateEntry(long classPK, long trashEntryId, java.lang.String originalTitle, java.lang.String newName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected 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.PortalException
protected void checkValidContainer(long classPK, long containerModelId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected long getGroupId(long classPK) throws com.liferay.portal.kernel.exception.PortalException
getGroupId
in class JournalBaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
protected 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.BaseTrashHandler
com.liferay.portal.kernel.exception.PortalException
protected void setDDMStructureLocalService(com.liferay.dynamic.data.mapping.service.DDMStructureLocalService ddmStructureLocalService)
protected void setJournalArticleLocalService(JournalArticleLocalService journalArticleLocalService)
protected void setJournalArticleResourceLocalService(JournalArticleResourceLocalService journalArticleResourceLocalService)
protected void setJournalFolderLocalService(JournalFolderLocalService journalFolderLocalService)