|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.viewtools.NavigationWebAPI
public class NavigationWebAPI
| Field Summary | |
|---|---|
int |
formCount
|
| Constructor Summary | |
|---|---|
NavigationWebAPI()
|
|
| Method Summary | |
|---|---|
java.lang.String |
buildMenuItems(java.lang.String startFromPath,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
Return and/or create the path of the file with the menu items ordered. |
java.lang.String |
createMenu(java.lang.String startFromPath,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
Return the htmlcode with the navigation menu |
java.lang.String |
createMenuByDepth(int startFromLevel,
int maxDepth,
javax.servlet.http.HttpServletRequest request)
Return path of the file with the menu items ordered |
java.lang.String |
createSiteMapMenu(int startFromLevel,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
This code is to built the site map menu |
java.lang.String |
createSiteMapMenu(int startFromLevel,
int numberOfLevels,
java.lang.String path,
javax.servlet.http.HttpServletRequest request,
boolean addHome)
This code is to built the site map menu |
java.lang.String |
createSiteMapMenu(int startFromLevel,
int numberOfLevels,
java.lang.String path,
javax.servlet.http.HttpServletRequest request,
boolean addHome,
boolean reverseOrder)
This code is to built the site map menu |
java.lang.String |
crumbTrail(javax.servlet.http.HttpServletRequest request,
java.lang.String imgPath)
Return the htmlcode with the crumbtrail |
java.lang.String |
crumbTrail(javax.servlet.http.HttpServletRequest request,
java.lang.String imgPath,
java.lang.String homePath)
Return the htmlcode with the crumbtrail |
java.lang.String |
crumbTrail(javax.servlet.http.HttpServletRequest request,
java.lang.String imgPath,
java.lang.String homePath,
java.lang.String crumbTitle)
Return the htmlcode with the crumbtrail |
int |
getFormCount()
|
java.util.List<HTMLPage> |
getPagesList(java.lang.String folderPath,
javax.servlet.http.HttpServletRequest request)
Return array list of html page in a folder |
java.lang.String |
getStartFromPath(int startFromLevel,
javax.servlet.http.HttpServletRequest request)
Return start from path |
void |
increaseFormCount()
|
void |
init(java.lang.Object obj)
WebApi init method |
boolean |
menuItems(java.lang.String startFromPath,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
Returns true if the menu is valid and contains items in it |
boolean |
menuItemsByDepth(int startFromLevel,
int maxDepth,
javax.servlet.http.HttpServletRequest request)
Returns true if the menu is valid and contains items in it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int formCount
| Constructor Detail |
|---|
public NavigationWebAPI()
| Method Detail |
|---|
public java.lang.String crumbTrail(javax.servlet.http.HttpServletRequest request,
java.lang.String imgPath)
throws javax.servlet.jsp.JspException,
DotSecurityException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException
request - HttpServletRequest.imgPath - String.
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
JspException.
DotSecurityException.
javax.servlet.jsp.JspException
DotSecurityException
public java.lang.String crumbTrail(javax.servlet.http.HttpServletRequest request,
java.lang.String imgPath,
java.lang.String homePath)
throws javax.servlet.jsp.JspException,
DotSecurityException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException
request - HttpServletRequest.homePath - String.imgPath - String.
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
JspException.
DotSecurityException.
javax.servlet.jsp.JspException
DotSecurityException
public java.lang.String crumbTrail(javax.servlet.http.HttpServletRequest request,
java.lang.String imgPath,
java.lang.String homePath,
java.lang.String crumbTitle)
throws javax.servlet.jsp.JspException,
DotSecurityException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException
request - HttpServletRequest.imgPath - String.homePath - String.crumbTitle - String.
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
JspException.
DotSecurityException.
javax.servlet.jsp.JspException
DotSecurityException
public java.lang.String createMenu(java.lang.String startFromPath,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
startFromPath - String.numberOfLevels - int.request - HttpServletRequest.
DotSecurityException
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
JspException.public void init(java.lang.Object obj)
init in interface org.apache.velocity.tools.view.tools.ViewToolobj - Object.
public java.lang.String createSiteMapMenu(int startFromLevel,
int numberOfLevels,
java.lang.String path,
javax.servlet.http.HttpServletRequest request,
boolean addHome)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
startFromLevel - This is number of folders the map should start at from the path.numberOfLevels - This is how many folders to drill inside of from the start depth.path - This is the path of the current folderrequest - HttpServletRequest
javax.servlet.jsp.JspException
DotSecurityException
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public java.lang.String createSiteMapMenu(int startFromLevel,
int numberOfLevels,
java.lang.String path,
javax.servlet.http.HttpServletRequest request,
boolean addHome,
boolean reverseOrder)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
startFromLevel - This is number of folders the map should start at from the path.numberOfLevels - This is how many folders to drill inside of from the start depth.path - This is the path of the current folderrequest - HttpServletRequestreverseOrder - return the list in reverse order
javax.servlet.jsp.JspException
DotSecurityException
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public java.lang.String createSiteMapMenu(int startFromLevel,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
throws javax.servlet.jsp.JspException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
startFromLevel - This is number of folders the map should start at from the path.numberOfLevels - This is how many folders to drill inside of from the start depth.request - HttpServletRequest
javax.servlet.jsp.JspException
DotSecurityException
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public boolean menuItemsByDepth(int startFromLevel,
int maxDepth,
javax.servlet.http.HttpServletRequest request)
throws javax.servlet.jsp.JspException
startFromLevel - start level from the current request pathmaxDepth - request -
javax.servlet.jsp.JspException
public boolean menuItems(java.lang.String startFromPath,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
throws javax.servlet.jsp.JspException
startFromPath - maxDepth - request -
javax.servlet.jsp.JspException
public java.util.List<HTMLPage> getPagesList(java.lang.String folderPath,
javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
folderPath - String.request - HttpServletRequest.
javax.servlet.jsp.JspException
DotSecurityException
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public java.lang.String createMenuByDepth(int startFromLevel,
int maxDepth,
javax.servlet.http.HttpServletRequest request)
throws javax.servlet.jsp.JspException,
com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
startFromLevel - integer with the level where the navigation menu will start to show.maxDepth - integer with the number of level to show counting from the startFromLevel.request - HttpServletRequest.
javax.servlet.jsp.JspException
DotSecurityException
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
public java.lang.String getStartFromPath(int startFromLevel,
javax.servlet.http.HttpServletRequest request)
throws javax.servlet.jsp.JspException
startFromLevel - integer with the level where the path will start to show.request - HttpServletRequest.
javax.servlet.jsp.JspException
public java.lang.String buildMenuItems(java.lang.String startFromPath,
int numberOfLevels,
javax.servlet.http.HttpServletRequest request)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
DotDataException,
DotSecurityException
startFromPath - String with the start path of the menu items.numberOfLevels - integer with the number of level of the menu items counting from startFromPath.request - HttpServletRequest.
DotSecurityException
DotDataException
com.liferay.portal.SystemException
com.liferay.portal.PortalException
javax.servlet.jsp.JspExceptionpublic int getFormCount()
public void increaseFormCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||