|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.kernel.trash.BaseTrashHandler
com.liferay.portlet.wiki.trash.BaseWikiTrashHandler
public abstract class BaseWikiTrashHandler
| Constructor Summary | |
|---|---|
BaseWikiTrashHandler()
|
|
| Method Summary | |
|---|---|
ContainerModel |
getContainerModel(long containerModelId)
Returns the container model with the primary key. |
String |
getContainerModelClassName(long classPK)
|
String |
getContainerModelName(long classPK)
|
List<ContainerModel> |
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)
|
String |
getRootContainerModelClassName()
|
long |
getRootContainerModelId(long classPK)
|
List<ContainerModel> |
getRootContainerModels(long groupId)
|
int |
getRootContainerModelsCount(long groupId)
|
String |
getRootContainerModelTitle(long containerModelId,
Locale locale)
|
String |
getSubcontainerModelName()
Returns the name of the subcontainer model (e.g. for a folder the subcontainer model name may be "subfolder"). |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.kernel.trash.TrashHandler |
|---|
deleteTrashEntry, getClassName, isInTrash, restoreTrashEntry |
| Constructor Detail |
|---|
public BaseWikiTrashHandler()
| Method Detail |
|---|
public ContainerModel getContainerModel(long containerModelId)
throws PortalException
TrashHandler
getContainerModel in interface TrashHandlergetContainerModel in class BaseTrashHandlercontainerModelId - the primary key of the container model
PortalException - if a container model with the primary key could
not be foundpublic String getContainerModelClassName(long classPK)
getContainerModelClassName in interface TrashHandlergetContainerModelClassName in class BaseTrashHandler
public String getContainerModelName(long classPK)
throws PortalException
getContainerModelName in interface TrashHandlergetContainerModelName in class BaseTrashHandlerPortalException
public List<ContainerModel> getContainerModels(long classPK,
long containerModelId,
int start,
int end)
throws PortalException
TrashHandlerThis method checks for the view permission when retrieving the container models.
Useful when paginating results. Returns a maximum of end -
start instances. The start and end
values are not primary keys but, rather, indexes in the result set. Thus,
0 refers to the first result in the set. Setting both
start and end to QueryUtil.ALL_POS will return the full
result set.
getContainerModels in interface TrashHandlergetContainerModels in class BaseTrashHandlerclassPK - the primary key of a model entity the container models
must be able to containcontainerModelId - the primary key of the parent container modelstart - the lower bound of the range of resultsend - the upper bound of the range of results (not inclusive)
PortalException - if a model entity with the primary key could not
be found
public int getContainerModelsCount(long classPK,
long containerModelId)
throws PortalException
TrashHandlerThis method checks for the view permission when counting the container models.
getContainerModelsCount in interface TrashHandlergetContainerModelsCount in class BaseTrashHandlerclassPK - the primary key of a model entity the container models
must be able to containcontainerModelId - the primary key of the parent container model
PortalException - if a model entity with the primary key could not
be found
public long getDestinationContainerModelId(long classPK,
long destinationContainerModelId)
getDestinationContainerModelId in interface TrashHandlergetDestinationContainerModelId in class BaseTrashHandlerpublic String getRootContainerModelClassName()
getRootContainerModelClassName in interface TrashHandlergetRootContainerModelClassName in class BaseTrashHandler
public long getRootContainerModelId(long classPK)
throws PortalException
getRootContainerModelId in interface TrashHandlergetRootContainerModelId in class BaseTrashHandlerPortalException
public List<ContainerModel> getRootContainerModels(long groupId)
throws PortalException
getRootContainerModels in interface TrashHandlergetRootContainerModels in class BaseTrashHandlerPortalExceptionpublic int getRootContainerModelsCount(long groupId)
getRootContainerModelsCount in interface TrashHandlergetRootContainerModelsCount in class BaseTrashHandler
public String getRootContainerModelTitle(long containerModelId,
Locale locale)
throws PortalException
getRootContainerModelTitle in interface TrashHandlergetRootContainerModelTitle in class BaseTrashHandlerPortalExceptionpublic String getSubcontainerModelName()
TrashHandler
getSubcontainerModelName in interface TrashHandlergetSubcontainerModelName in class BaseTrashHandler
public void moveEntry(long userId,
long classPK,
long containerModelId,
ServiceContext serviceContext)
throws PortalException
TrashHandler
moveEntry in interface TrashHandlermoveEntry in class BaseTrashHandleruserId - the user IDclassPK - the primary key of the model entitycontainerModelId - the primary key of the destination container
modelserviceContext - the service context to be applied
PortalException - if a model entity with the primary key or the
destination container model with the primary key could not be
found
public void moveTrashEntry(long userId,
long classPK,
long containerModelId,
ServiceContext serviceContext)
throws PortalException
TrashHandler
moveTrashEntry in interface TrashHandlermoveTrashEntry in class BaseTrashHandleruserId - the user IDclassPK - the primary key of the model entitycontainerModelId - the primary key of the destination container
modelserviceContext - the service context to be applied
PortalException - if a model entity with the primary key or the
destination container model with the primary key could not be
found
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||