Example usage for Java com.liferay.portal.kernel.trash TrashHandler fields, constructors, methods, implement or subclass
The text is from its open source code.
SystemEvent | addDeletionSystemEvent(long userId, long groupId, long classPK, String classUuid, String referrerClassName) |
void | checkRestorableEntry(long classPK, long containerModelId, String newName) |
void | checkRestorableEntry(TrashEntry trashEntry, long containerModelId, String newName) Checks if a duplicate trash entry already exists in the destination container. |
void | deleteTrashEntry(long classPK) Deletes the model entity with the primary key. |
String | getClassName() Returns the class name handled by this trash handler. |
ContainerModel | getContainerModel(long containerModelId) Returns the container model with the primary key. |
String | getContainerModelClassName(long classPK) |
String | getContainerModelName() Returns the name of the container model (e.g. |
List | getContainerModels(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. |
int | getContainerModelsCount(long classPK, long containerModelId) Returns the number of container models that are children of the parent container model identified by the container model ID. |
long | getDestinationContainerModelId(long classPK, long destinationContainerModelId) |
Filter | getExcludeFilter(SearchContext searchContext) |
ContainerModel | getParentContainerModel(long classPK) Returns the parent container model of the model entity with the primary key. |
ContainerModel | getParentContainerModel(TrashedModel trashedModel) |
List | getParentContainerModels(long classPK) Returns all the parent container models of the model entity with the primary key ordered by hierarchy. |
String | getRestoreContainedModelLink(PortletRequest portletRequest, long classPK) |
String | getRestoreContainerModelLink(PortletRequest portletRequest, long classPK) Returns the link to the location to which the model entity was restored. |
String | getRestoreMessage(PortletRequest portletRequest, long classPK) Returns the message describing the location to which the model entity was restored. |
String | getRootContainerModelName() Returns the name of the root container (e.g. |
String | getSystemEventClassName() |
String | getTrashContainedModelName() Returns the name of the contained model. |
int | getTrashContainedModelsCount(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. |
String | getTrashContainerModelName() Returns the name of the container model. |
int | getTrashContainerModelsCount(long classPK) Returns the number of container models that are children of the parent container model identified by the primary key. |
TrashEntry | getTrashEntry(long classPK) |
TrashRenderer | getTrashRenderer(long classPK) Returns the trash renderer associated to the model entity with the primary key. |
boolean | hasTrashPermission(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. |
boolean | isContainerModel() Returns true if the entity is a container model. |
boolean | isDeletable() Returns true if the entity can be deleted from the Recycle Bin. |
boolean | isInTrash(long classPK) Returns true if the model entity with the primary key is in the Recycle Bin. |
boolean | isInTrashContainer(long classPK) Returns true if the model entity with the primary key is in a container that is in the Recycle Bin. |
boolean | isMovable() Returns true if the entity can be moved from one container model (such as a folder) to another. |
boolean | isRestorable(long classPK) Returns true if the model entity can be restored to its original location. |
void | moveEntry(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 |
void | moveTrashEntry(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. |
void | restoreRelatedTrashEntry(String className, long classPK) Restores the model entity that is related to the model entity with the class name and class PK. |
void | restoreTrashEntry(long userId, long classPK) Restores the model entity with the primary key. |
void | updateTitle(long classPK, String title) Updates the title of the model entity with the primary key. |