public class MBCategoryTrashHandler
extends com.liferay.portal.kernel.trash.BaseTrashHandler
| Constructor and Description |
|---|
MBCategoryTrashHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTrashEntry(long classPK) |
java.lang.String |
getClassName() |
com.liferay.portal.model.ContainerModel |
getContainerModel(long containerModelId) |
java.lang.String |
getContainerModelClassName() |
java.lang.String |
getContainerModelName() |
java.util.List<com.liferay.portal.model.ContainerModel> |
getContainerModels(long classPK,
long parentContainerModelId,
int start,
int end) |
int |
getContainerModelsCount(long classPK,
long parentContainerModelId) |
java.lang.String |
getDeleteMessage() |
java.util.List<com.liferay.portal.model.ContainerModel> |
getParentContainerModels(long containerModelId) |
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) |
protected javax.portlet.PortletURL |
getRestoreURL(javax.portlet.PortletRequest portletRequest,
long classPK) |
java.lang.String |
getRootContainerModelName() |
java.lang.String |
getTrashContainedModelName() |
int |
getTrashContainedModelsCount(long classPK) |
java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> |
getTrashContainedModelTrashRenderers(long classPK,
int start,
int end) |
java.lang.String |
getTrashContainerModelName() |
int |
getTrashContainerModelsCount(long classPK) |
java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> |
getTrashContainerModelTrashRenderers(long classPK,
int start,
int end) |
com.liferay.portlet.trash.model.TrashEntry |
getTrashEntry(long classPK) |
com.liferay.portal.kernel.trash.TrashRenderer |
getTrashRenderer(long classPK) |
protected boolean |
hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long classPK,
java.lang.String actionId) |
boolean |
hasTrashPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long groupId,
long classPK,
java.lang.String trashActionId) |
boolean |
isContainerModel() |
boolean |
isInTrash(long classPK) |
boolean |
isInTrashContainer(long classPK) |
boolean |
isMovable() |
boolean |
isRestorable(long classPK) |
void |
moveEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.service.ServiceContext serviceContext) |
void |
moveTrashEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.service.ServiceContext serviceContext) |
void |
restoreTrashEntry(long userId,
long classPK) |
void |
updateTitle(long classPK,
java.lang.String name) |
addDeletionSystemEvent, checkDuplicateEntry, checkDuplicateTrashEntry, getAssetRendererFactory, getParentContainerModel, getParentContainerModel, getSubcontainerModelName, getSystemEventClassName, isDeletable, isTrashEntry, restoreRelatedTrashEntrypublic void deleteTrashEntry(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getClassName()
public com.liferay.portal.model.ContainerModel getContainerModel(long containerModelId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getContainerModel in interface com.liferay.portal.kernel.trash.TrashHandlergetContainerModel in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getContainerModelClassName()
getContainerModelClassName in interface com.liferay.portal.kernel.trash.TrashHandlergetContainerModelClassName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic java.lang.String getContainerModelName()
getContainerModelName in interface com.liferay.portal.kernel.trash.TrashHandlergetContainerModelName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic java.util.List<com.liferay.portal.model.ContainerModel> getContainerModels(long classPK,
long parentContainerModelId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getContainerModels in interface com.liferay.portal.kernel.trash.TrashHandlergetContainerModels in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic int getContainerModelsCount(long classPK,
long parentContainerModelId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getContainerModelsCount in interface com.liferay.portal.kernel.trash.TrashHandlergetContainerModelsCount in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getDeleteMessage()
getDeleteMessage in interface com.liferay.portal.kernel.trash.TrashHandlergetDeleteMessage in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic java.util.List<com.liferay.portal.model.ContainerModel> getParentContainerModels(long containerModelId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getParentContainerModels in interface com.liferay.portal.kernel.trash.TrashHandlergetParentContainerModels in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getRestoreContainedModelLink(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getRestoreContainedModelLink in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreContainedModelLink in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getRestoreContainerModelLink(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getRestoreContainerModelLink in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreContainerModelLink in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getRestoreMessage(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getRestoreMessage in interface com.liferay.portal.kernel.trash.TrashHandlergetRestoreMessage in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getRootContainerModelName()
getRootContainerModelName in interface com.liferay.portal.kernel.trash.TrashHandlergetRootContainerModelName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic java.lang.String getTrashContainedModelName()
getTrashContainedModelName in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainedModelName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic int getTrashContainedModelsCount(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashContainedModelsCount in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainedModelsCount in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> getTrashContainedModelTrashRenderers(long classPK,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashContainedModelTrashRenderers in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainedModelTrashRenderers in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.lang.String getTrashContainerModelName()
getTrashContainerModelName in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainerModelName in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic int getTrashContainerModelsCount(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashContainerModelsCount in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainerModelsCount in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portal.kernel.trash.TrashRenderer> getTrashContainerModelTrashRenderers(long classPK,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashContainerModelTrashRenderers in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashContainerModelTrashRenderers in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.trash.model.TrashEntry getTrashEntry(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portal.kernel.trash.TrashRenderer getTrashRenderer(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
getTrashRenderer in interface com.liferay.portal.kernel.trash.TrashHandlergetTrashRenderer in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic boolean hasTrashPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long groupId,
long classPK,
java.lang.String trashActionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
hasTrashPermission in interface com.liferay.portal.kernel.trash.TrashHandlerhasTrashPermission in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic boolean isContainerModel()
isContainerModel in interface com.liferay.portal.kernel.trash.TrashHandlerisContainerModel in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic boolean isInTrash(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic boolean isInTrashContainer(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
isInTrashContainer in interface com.liferay.portal.kernel.trash.TrashHandlerisInTrashContainer in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic boolean isMovable()
isMovable in interface com.liferay.portal.kernel.trash.TrashHandlerisMovable in class com.liferay.portal.kernel.trash.BaseTrashHandlerpublic boolean isRestorable(long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
isRestorable in interface com.liferay.portal.kernel.trash.TrashHandlerisRestorable in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void moveEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
moveEntry in interface com.liferay.portal.kernel.trash.TrashHandlermoveEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void moveTrashEntry(long userId,
long classPK,
long containerModelId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
moveTrashEntry in interface com.liferay.portal.kernel.trash.TrashHandlermoveTrashEntry in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void restoreTrashEntry(long userId,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic void updateTitle(long classPK,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
updateTitle in interface com.liferay.portal.kernel.trash.TrashHandlerupdateTitle in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected javax.portlet.PortletURL getRestoreURL(javax.portlet.PortletRequest portletRequest,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected boolean hasPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker,
long classPK,
java.lang.String actionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
hasPermission in class com.liferay.portal.kernel.trash.BaseTrashHandlercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException