Liferay 7.0-ce-m3

com.liferay.portlet.layoutsadmin.trash
Class ExportImportConfigurationTrashHandler

java.lang.Object
  extended by com.liferay.portal.kernel.trash.BaseTrashHandler
      extended by com.liferay.portlet.layoutsadmin.trash.ExportImportConfigurationTrashHandler
All Implemented Interfaces:
TrashHandler

public class ExportImportConfigurationTrashHandler
extends BaseTrashHandler


Constructor Summary
ExportImportConfigurationTrashHandler()
           
 
Method Summary
 void deleteTrashEntry(long classPK)
          Deletes the model entity with the primary key.
 String getClassName()
          Returns the class name handled by this trash handler.
 String getRestoreMessage(PortletRequest portletRequest, long classPK)
          Returns the message describing the location to which the model entity was restored.
 TrashEntry getTrashEntry(long classPK)
           
 TrashRenderer getTrashRenderer(long classPK)
          Returns the trash renderer associated to the model entity with the primary key.
protected  boolean hasPermission(PermissionChecker permissionChecker, long classPK, String actionId)
           
 boolean isInTrash(long classPK)
          Returns true if the model entity with the primary key is in the Recycle Bin.
 void restoreTrashEntry(long userId, long classPK)
          Restores the model entity with the primary key.
 
Methods inherited from class com.liferay.portal.kernel.trash.BaseTrashHandler
addDeletionSystemEvent, checkDuplicateEntry, checkDuplicateTrashEntry, checkRestorableEntry, checkRestorableEntry, getAssetRendererFactory, getContainerModel, getContainerModelClassName, getContainerModelClassName, getContainerModelName, getContainerModelName, getContainerModels, getContainerModelsCount, getDeleteMessage, getDestinationContainerModelId, getParentContainerModel, getParentContainerModel, getParentContainerModels, getRestoreContainedModelLink, getRestoreContainerModelLink, getRootContainerModelClassName, getRootContainerModelId, getRootContainerModelName, getRootContainerModels, getRootContainerModelsCount, getRootContainerModelTitle, getSubcontainerModelName, getSystemEventClassName, getTrashContainedModelName, getTrashContainedModelsCount, getTrashContainedModelTrashRenderers, getTrashContainerModelName, getTrashContainerModelsCount, getTrashContainerModelTrashRenderers, hasTrashPermission, isContainerModel, isDeletable, isInTrashContainer, isMovable, isRestorable, isRootContainerModelMovable, moveEntry, moveTrashEntry, restoreRelatedTrashEntry, updateTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportImportConfigurationTrashHandler

public ExportImportConfigurationTrashHandler()
Method Detail

deleteTrashEntry

public void deleteTrashEntry(long classPK)
                      throws PortalException
Description copied from interface: TrashHandler
Deletes the model entity with the primary key.

Parameters:
classPK - the primary key of the model entity to delete
Throws:
PortalException - if a model entity with the primary key could not be found

getClassName

public String getClassName()
Description copied from interface: TrashHandler
Returns the class name handled by this trash handler.

Returns:
the class name handled by this trash handler

getRestoreMessage

public String getRestoreMessage(PortletRequest portletRequest,
                                long classPK)
Description copied from interface: TrashHandler
Returns the message describing the location to which the model entity was restored.

Specified by:
getRestoreMessage in interface TrashHandler
Overrides:
getRestoreMessage in class BaseTrashHandler
Parameters:
portletRequest - the portlet request
classPK - the primary key of the restored model entity
Returns:
the restore message

getTrashEntry

public TrashEntry getTrashEntry(long classPK)
                         throws PortalException
Specified by:
getTrashEntry in interface TrashHandler
Overrides:
getTrashEntry in class BaseTrashHandler
Throws:
PortalException

getTrashRenderer

public TrashRenderer getTrashRenderer(long classPK)
                               throws PortalException
Description copied from interface: TrashHandler
Returns the trash renderer associated to the model entity with the primary key.

Specified by:
getTrashRenderer in interface TrashHandler
Overrides:
getTrashRenderer in class BaseTrashHandler
Parameters:
classPK - the primary key of the model entity
Returns:
the trash renderer associated to the model entity
Throws:
PortalException - if a model entity with the primary key could not be found

isInTrash

public boolean isInTrash(long classPK)
                  throws PortalException
Description copied from interface: TrashHandler
Returns true if the model entity with the primary key is in the Recycle Bin.

Parameters:
classPK - the primary key of the model entity
Returns:
true if the model entity is in the Recycle Bin; false otherwise
Throws:
PortalException - if a model entity with the primary key could not be found in the portal

restoreTrashEntry

public void restoreTrashEntry(long userId,
                              long classPK)
                       throws PortalException
Description copied from interface: TrashHandler
Restores the model entity with the primary key.

Parameters:
userId - the user ID
classPK - the primary key of the model entity to restore
Throws:
PortalException - if a model entity with the primary key could not be found

hasPermission

protected boolean hasPermission(PermissionChecker permissionChecker,
                                long classPK,
                                String actionId)
                         throws PortalException
Specified by:
hasPermission in class BaseTrashHandler
Throws:
PortalException

Liferay 7.0-ce-m3