Java com.liferay.portal.kernel.trash TrashHandler fields, constructors, methods, implement or subclass

Example usage for Java com.liferay.portal.kernel.trash TrashHandler fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.liferay.portal.kernel.trash TrashHandler.

The text is from its open source code.

Implementation

com.liferay.portal.kernel.trash.TrashHandler has the following implementations.
Click this link to see all its implementation.

Method

SystemEventaddDeletionSystemEvent(long userId, long groupId, long classPK, String classUuid, String referrerClassName)
voidcheckRestorableEntry(long classPK, long containerModelId, String newName)
voidcheckRestorableEntry(TrashEntry trashEntry, long containerModelId, String newName)
Checks if a duplicate trash entry already exists in the destination container.
voiddeleteTrashEntry(long classPK)
Deletes the model entity with the primary key.
StringgetClassName()
Returns the class name handled by this trash handler.
ContainerModelgetContainerModel(long containerModelId)
Returns the container model with the primary key.
StringgetContainerModelClassName(long classPK)
StringgetContainerModelName()
Returns the name of the container model (e.g.
ListgetContainerModels(long classPK, long containerModelId, int start, int end)
Returns a range of all the container models that are children of the parent container model identified by the container model ID.
intgetContainerModelsCount(long classPK, long containerModelId)
Returns the number of container models that are children of the parent container model identified by the container model ID.
longgetDestinationContainerModelId(long classPK, long destinationContainerModelId)
FiltergetExcludeFilter(SearchContext searchContext)
ContainerModelgetParentContainerModel(long classPK)
Returns the parent container model of the model entity with the primary key.
ContainerModelgetParentContainerModel(TrashedModel trashedModel)
ListgetParentContainerModels(long classPK)
Returns all the parent container models of the model entity with the primary key ordered by hierarchy.
StringgetRestoreContainedModelLink(PortletRequest portletRequest, long classPK)
StringgetRestoreContainerModelLink(PortletRequest portletRequest, long classPK)
Returns the link to the location to which the model entity was restored.
StringgetRestoreMessage(PortletRequest portletRequest, long classPK)
Returns the message describing the location to which the model entity was restored.
StringgetRootContainerModelName()
Returns the name of the root container (e.g.
StringgetSystemEventClassName()
StringgetTrashContainedModelName()
Returns the name of the contained model.
intgetTrashContainedModelsCount(long classPK)
Returns the number of model entities (excluding container model entities) that are children of the parent container model identified by the primary key.
StringgetTrashContainerModelName()
Returns the name of the container model.
intgetTrashContainerModelsCount(long classPK)
Returns the number of container models that are children of the parent container model identified by the primary key.
TrashEntrygetTrashEntry(long classPK)
TrashRenderergetTrashRenderer(long classPK)
Returns the trash renderer associated to the model entity with the primary key.
booleanhasTrashPermission(PermissionChecker permissionChecker, long groupId, long classPK, String trashActionId)
Returns true if the user has the required permission to perform the trash action on the model entity with the primary key.
booleanisContainerModel()
Returns true if the entity is a container model.
booleanisDeletable()
Returns true if the entity can be deleted from the Recycle Bin.
booleanisInTrash(long classPK)
Returns true if the model entity with the primary key is in the Recycle Bin.
booleanisInTrashContainer(long classPK)
Returns true if the model entity with the primary key is in a container that is in the Recycle Bin.
booleanisMovable()
Returns true if the entity can be moved from one container model (such as a folder) to another.
booleanisRestorable(long classPK)
Returns true if the model entity can be restored to its original location.
voidmoveEntry(long userId, long classPK, long containerModelId, ServiceContext serviceContext)
Moves the entity with the class primary key to the container model with the class primary key
voidmoveTrashEntry(long userId, long classPK, long containerModelId, ServiceContext serviceContext)
Moves the model entity with the primary key out of the Recycle Bin to a new destination identified by the container model ID.
voidrestoreRelatedTrashEntry(String className, long classPK)
Restores the model entity that is related to the model entity with the class name and class PK.
voidrestoreTrashEntry(long userId, long classPK)
Restores the model entity with the primary key.
voidupdateTitle(long classPK, String title)
Updates the title of the model entity with the primary key.