Package com.liferay.trash
Class BaseTrashHandler
java.lang.Object
com.liferay.trash.BaseTrashHandler
- All Implemented Interfaces:
com.liferay.portal.kernel.trash.TrashHandler
@ProviderType
public abstract class BaseTrashHandler
extends Object
implements com.liferay.portal.kernel.trash.TrashHandler
Provides the base implementation of
TrashHandler.- See Also:
-
TrashHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.portal.kernel.model.SystemEventaddDeletionSystemEvent(long userId, long groupId, long classPK, String classUuid, String referrerClassName) voidcheckRestorableEntry(long classPK, long containerModelId, String newName) voidcheckRestorableEntry(com.liferay.trash.kernel.model.TrashEntry trashEntry, long containerModelId, String newName) protected com.liferay.asset.kernel.model.AssetRendererFactory<?>com.liferay.portal.kernel.model.ContainerModelgetContainerModel(long containerModelId) getContainerModelClassName(long classPK) List<com.liferay.portal.kernel.model.ContainerModel>getContainerModels(long classPK, long containerModelId, int start, int end) intgetContainerModelsCount(long classPK, long containerModelId) longgetDestinationContainerModelId(long classPK, long destinationContainerModelId) com.liferay.portal.kernel.search.filter.FiltergetExcludeFilter(com.liferay.portal.kernel.search.SearchContext searchContext) com.liferay.portal.kernel.model.ContainerModelgetParentContainerModel(long classPK) com.liferay.portal.kernel.model.ContainerModelgetParentContainerModel(com.liferay.portal.kernel.model.TrashedModel trashedModel) List<com.liferay.portal.kernel.model.ContainerModel>getParentContainerModels(long classPK) getRestoreContainedModelLink(javax.portlet.PortletRequest portletRequest, long classPK) getRestoreContainerModelLink(javax.portlet.PortletRequest portletRequest, long classPK) getRestoreMessage(javax.portlet.PortletRequest portletRequest, long classPK) intgetTrashContainedModelsCount(long classPK) intgetTrashContainerModelsCount(long classPK) com.liferay.portal.kernel.model.TrashedModelgetTrashedModel(long classPK) intgetTrashModelsCount(long classPK) com.liferay.portal.kernel.trash.TrashRenderergetTrashRenderer(long classPK) protected abstract booleanhasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long classPK, String actionId) booleanhasTrashPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, long classPK, String trashActionId) booleanbooleanisDeletable(long classPK) booleanisMovable(long classPK) booleanisRestorable(long classPK) voidmoveEntry(long userId, long classPK, long containerModelId, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidmoveTrashEntry(long userId, long classPK, long containerModelId, com.liferay.portal.kernel.service.ServiceContext serviceContext) voidrestoreRelatedTrashEntry(String className, long classPK) voidupdateTitle(long classPK, String title) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.trash.TrashHandler
deleteTrashEntry, getClassName, getTrashModelTrashedModels, isInTrash, restoreTrashEntry
-
Constructor Details
-
BaseTrashHandler
public BaseTrashHandler()
-
-
Method Details
-
addDeletionSystemEvent
public com.liferay.portal.kernel.model.SystemEvent addDeletionSystemEvent(long userId, long groupId, long classPK, String classUuid, String referrerClassName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
addDeletionSystemEventin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkRestorableEntry
public void checkRestorableEntry(long classPK, long containerModelId, String newName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkRestorableEntryin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
checkRestorableEntry
public void checkRestorableEntry(com.liferay.trash.kernel.model.TrashEntry trashEntry, long containerModelId, String newName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
checkRestorableEntryin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getContainerModel
public com.liferay.portal.kernel.model.ContainerModel getContainerModel(long containerModelId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getContainerModelin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getContainerModelClassName
- Specified by:
getContainerModelClassNamein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getContainerModelName
- Specified by:
getContainerModelNamein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getContainerModels
public List<com.liferay.portal.kernel.model.ContainerModel> getContainerModels(long classPK, long containerModelId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getContainerModelsin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getContainerModelsCount
public int getContainerModelsCount(long classPK, long containerModelId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getContainerModelsCountin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDeleteMessage
- Specified by:
getDeleteMessagein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getDestinationContainerModelId
public long getDestinationContainerModelId(long classPK, long destinationContainerModelId) - Specified by:
getDestinationContainerModelIdin interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getExcludeFilter
public com.liferay.portal.kernel.search.filter.Filter getExcludeFilter(com.liferay.portal.kernel.search.SearchContext searchContext) - Specified by:
getExcludeFilterin interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getParentContainerModel
public com.liferay.portal.kernel.model.ContainerModel getParentContainerModel(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getParentContainerModelin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getParentContainerModel
public com.liferay.portal.kernel.model.ContainerModel getParentContainerModel(com.liferay.portal.kernel.model.TrashedModel trashedModel) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getParentContainerModelin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getParentContainerModels
public List<com.liferay.portal.kernel.model.ContainerModel> getParentContainerModels(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getParentContainerModelsin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRestoreContainedModelLink
public String getRestoreContainedModelLink(javax.portlet.PortletRequest portletRequest, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRestoreContainedModelLinkin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRestoreContainerModelLink
public String getRestoreContainerModelLink(javax.portlet.PortletRequest portletRequest, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRestoreContainerModelLinkin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRestoreMessage
public String getRestoreMessage(javax.portlet.PortletRequest portletRequest, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getRestoreMessagein interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getRootContainerModelName
- Specified by:
getRootContainerModelNamein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getSubcontainerModelName
- Specified by:
getSubcontainerModelNamein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getSystemEventClassName
- Specified by:
getSystemEventClassNamein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getTrashContainedModelName
- Specified by:
getTrashContainedModelNamein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getTrashContainedModelsCount
public int getTrashContainedModelsCount(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getTrashContainedModelsCountin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getTrashContainerModelName
- Specified by:
getTrashContainerModelNamein interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getTrashContainerModelsCount
public int getTrashContainerModelsCount(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getTrashContainerModelsCountin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getTrashedModel
public com.liferay.portal.kernel.model.TrashedModel getTrashedModel(long classPK) - Specified by:
getTrashedModelin interfacecom.liferay.portal.kernel.trash.TrashHandler
-
getTrashModelsCount
public int getTrashModelsCount(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getTrashModelsCountin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getTrashRenderer
public com.liferay.portal.kernel.trash.TrashRenderer getTrashRenderer(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getTrashRendererin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasTrashPermission
public boolean hasTrashPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long groupId, long classPK, String trashActionId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
hasTrashPermissionin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isContainerModel
public boolean isContainerModel()- Specified by:
isContainerModelin interfacecom.liferay.portal.kernel.trash.TrashHandler
-
isDeletable
public boolean isDeletable(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
isDeletablein interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isMovable
public boolean isMovable(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
isMovablein interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
isRestorable
public boolean isRestorable(long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
isRestorablein interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveEntry
public void moveEntry(long userId, long classPK, long containerModelId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveEntryin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveTrashEntry
public void moveTrashEntry(long userId, long classPK, long containerModelId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveTrashEntryin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
restoreRelatedTrashEntry
public void restoreRelatedTrashEntry(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
restoreRelatedTrashEntryin interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateTitle
public void updateTitle(long classPK, String title) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
updateTitlein interfacecom.liferay.portal.kernel.trash.TrashHandler- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAssetRendererFactory
protected com.liferay.asset.kernel.model.AssetRendererFactory<?> getAssetRendererFactory() -
hasPermission
protected abstract boolean hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long classPK, String actionId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-