public class TourManagerImpl extends Object implements TourManager
Constructor and Description |
---|
TourManagerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTourShowable(String callerIdentifier,
int versionNumber,
String currentUser)
Check if a given tour can be shown or not.
|
void |
setShowNextTime(String callerIdentifier,
int versionNumber,
boolean show,
String username)
This function is invoked to request a specific action to take (@see the show value) the next time the user will see the tour uniquely identified
by the couple {callerIdentifier, versionNumber}.
|
public void setShowNextTime(String callerIdentifier, int versionNumber, boolean show, String username)
setShowNextTime
in interface TourManager
callerIdentifier
- is the unique identifier of the portlet (e.g. its name or the name of the servlet it contains, if any)versionNumber
- is the unique version number for the tourshow
- a boolean value to show or not the tourusername
- the user name of the user involved.public boolean isTourShowable(String callerIdentifier, int versionNumber, String currentUser) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException, Exception
isTourShowable
in interface TourManager
callerIdentifier
- is the unique identifier of the portlet (e.g. the name of the portlet or the name of the servlet it contains, if any)versionNumber
- is the unique version number for the tourcurrentUser
- the user name of the user involved.Exception
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
Copyright © 2017. All Rights Reserved.