@ProviderType
public abstract class BaseTrashHandler
extends java.lang.Object
implements com.liferay.portal.kernel.trash.TrashHandler
TrashHandler
.TrashHandler
Constructor and Description |
---|
BaseTrashHandler() |
Modifier and Type | Method and Description |
---|---|
com.liferay.portal.kernel.model.SystemEvent |
addDeletionSystemEvent(long userId,
long groupId,
long classPK,
java.lang.String classUuid,
java.lang.String referrerClassName) |
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 com.liferay.asset.kernel.model.AssetRendererFactory<?> |
getAssetRendererFactory() |
com.liferay.portal.kernel.model.ContainerModel |
getContainerModel(long containerModelId) |
java.lang.String |
getContainerModelClassName(long classPK) |
java.lang.String |
getContainerModelName() |
java.util.List<com.liferay.portal.kernel.model.ContainerModel> |
getContainerModels(long classPK,
long containerModelId,
int start,
int end) |
int |
getContainerModelsCount(long classPK,
long containerModelId) |
java.lang.String |
getDeleteMessage() |
long |
getDestinationContainerModelId(long classPK,
long destinationContainerModelId) |
com.liferay.portal.kernel.search.filter.Filter |
getExcludeFilter(com.liferay.portal.kernel.search.SearchContext searchContext) |
com.liferay.portal.kernel.model.ContainerModel |
getParentContainerModel(long classPK) |
com.liferay.portal.kernel.model.ContainerModel |
getParentContainerModel(com.liferay.portal.kernel.model.TrashedModel trashedModel) |
java.util.List<com.liferay.portal.kernel.model.ContainerModel> |
getParentContainerModels(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) |
java.lang.String |
getRootContainerModelName() |
java.lang.String |
getSubcontainerModelName() |
java.lang.String |
getSystemEventClassName() |
java.lang.String |
getTrashContainedModelName() |
int |
getTrashContainedModelsCount(long classPK) |
java.lang.String |
getTrashContainerModelName() |
int |
getTrashContainerModelsCount(long classPK) |
com.liferay.portal.kernel.model.TrashedModel |
getTrashedModel(long classPK) |
int |
getTrashModelsCount(long classPK) |
com.liferay.portal.kernel.trash.TrashRenderer |
getTrashRenderer(long classPK) |
protected abstract 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 |
isDeletable(long classPK) |
boolean |
isMovable(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 |
restoreRelatedTrashEntry(java.lang.String className,
long classPK) |
void |
updateTitle(long classPK,
java.lang.String title) |
public com.liferay.portal.kernel.model.SystemEvent addDeletionSystemEvent(long userId, long groupId, long classPK, java.lang.String classUuid, java.lang.String referrerClassName) throws com.liferay.portal.kernel.exception.PortalException
addDeletionSystemEvent
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
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
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
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.ContainerModel getContainerModel(long containerModelId) throws com.liferay.portal.kernel.exception.PortalException
getContainerModel
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getContainerModelClassName(long classPK)
getContainerModelClassName
in interface com.liferay.portal.kernel.trash.TrashHandler
public java.lang.String getContainerModelName()
getContainerModelName
in interface com.liferay.portal.kernel.trash.TrashHandler
public java.util.List<com.liferay.portal.kernel.model.ContainerModel> getContainerModels(long classPK, long containerModelId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
getContainerModels
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public int getContainerModelsCount(long classPK, long containerModelId) throws com.liferay.portal.kernel.exception.PortalException
getContainerModelsCount
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getDeleteMessage()
getDeleteMessage
in interface com.liferay.portal.kernel.trash.TrashHandler
public long getDestinationContainerModelId(long classPK, long destinationContainerModelId)
getDestinationContainerModelId
in interface com.liferay.portal.kernel.trash.TrashHandler
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
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
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
com.liferay.portal.kernel.exception.PortalException
public java.util.List<com.liferay.portal.kernel.model.ContainerModel> getParentContainerModels(long classPK) throws com.liferay.portal.kernel.exception.PortalException
getParentContainerModels
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public 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.TrashHandler
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
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
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getRootContainerModelName()
getRootContainerModelName
in interface com.liferay.portal.kernel.trash.TrashHandler
public java.lang.String getSubcontainerModelName()
getSubcontainerModelName
in interface com.liferay.portal.kernel.trash.TrashHandler
public java.lang.String getSystemEventClassName()
getSystemEventClassName
in interface com.liferay.portal.kernel.trash.TrashHandler
public java.lang.String getTrashContainedModelName()
getTrashContainedModelName
in interface com.liferay.portal.kernel.trash.TrashHandler
public int getTrashContainedModelsCount(long classPK) throws com.liferay.portal.kernel.exception.PortalException
getTrashContainedModelsCount
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public java.lang.String getTrashContainerModelName()
getTrashContainerModelName
in interface com.liferay.portal.kernel.trash.TrashHandler
public int getTrashContainerModelsCount(long classPK) throws com.liferay.portal.kernel.exception.PortalException
getTrashContainerModelsCount
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.model.TrashedModel getTrashedModel(long classPK)
getTrashedModel
in interface com.liferay.portal.kernel.trash.TrashHandler
public int getTrashModelsCount(long classPK) throws com.liferay.portal.kernel.exception.PortalException
getTrashModelsCount
in interface com.liferay.portal.kernel.trash.TrashHandler
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
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
com.liferay.portal.kernel.exception.PortalException
public boolean isContainerModel()
isContainerModel
in interface com.liferay.portal.kernel.trash.TrashHandler
public boolean isDeletable(long classPK) throws com.liferay.portal.kernel.exception.PortalException
isDeletable
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public boolean isMovable(long classPK) throws com.liferay.portal.kernel.exception.PortalException
isMovable
in interface com.liferay.portal.kernel.trash.TrashHandler
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
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
com.liferay.portal.kernel.exception.PortalException
public 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.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public void restoreRelatedTrashEntry(java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
restoreRelatedTrashEntry
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
public void updateTitle(long classPK, java.lang.String title) throws com.liferay.portal.kernel.exception.PortalException
updateTitle
in interface com.liferay.portal.kernel.trash.TrashHandler
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.asset.kernel.model.AssetRendererFactory<?> getAssetRendererFactory()
protected abstract boolean hasPermission(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, long classPK, java.lang.String actionId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException