com.liferay.portlet.wiki.asset
Class WikiPageAssetRenderer

java.lang.Object
  extended by com.liferay.portlet.asset.model.BaseAssetRenderer
      extended by com.liferay.portlet.wiki.asset.WikiPageAssetRenderer
All Implemented Interfaces:
com.liferay.portlet.asset.model.AssetRenderer

public class WikiPageAssetRenderer
extends com.liferay.portlet.asset.model.BaseAssetRenderer

Author:
Julio Camarero, Sergio González

Field Summary
 
Fields inherited from interface com.liferay.portlet.asset.model.AssetRenderer
TEMPLATE_ABSTRACT, TEMPLATE_FULL_CONTENT
 
Constructor Summary
WikiPageAssetRenderer(com.liferay.portlet.wiki.model.WikiPage page)
           
 
Method Summary
 long getClassPK()
           
 java.lang.String getDiscussionPath()
           
 long getGroupId()
           
protected  java.lang.String getIconPath(com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.String getSummary(java.util.Locale locale)
           
 java.lang.String getTitle(java.util.Locale locale)
           
 javax.portlet.PortletURL getURLEdit(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
           
 javax.portlet.PortletURL getURLExport(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
           
 javax.portlet.PortletURL getURLView(com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState)
           
 java.lang.String getURLViewInContext(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse, java.lang.String noSuchEntryRedirect)
           
 long getUserId()
           
 java.lang.String getUuid()
           
 boolean hasEditPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
 boolean hasViewPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
 boolean isConvertible()
           
 boolean isPrintable()
           
 java.lang.String render(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse, java.lang.String template)
           
 
Methods inherited from class com.liferay.portlet.asset.model.BaseAssetRenderer
getAvailableLocales, getControlPanelPlid, getControlPanelPlid, getIconPath, getUrlTitle, getURLViewInContext, getViewInContextMessage, isDisplayable, isLocalizable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPageAssetRenderer

public WikiPageAssetRenderer(com.liferay.portlet.wiki.model.WikiPage page)
Method Detail

getClassPK

public long getClassPK()

getDiscussionPath

public java.lang.String getDiscussionPath()
Specified by:
getDiscussionPath in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getDiscussionPath in class com.liferay.portlet.asset.model.BaseAssetRenderer

getGroupId

public long getGroupId()

getSummary

public java.lang.String getSummary(java.util.Locale locale)

getTitle

public java.lang.String getTitle(java.util.Locale locale)

getURLEdit

public javax.portlet.PortletURL getURLEdit(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
                                           com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
                                    throws java.lang.Exception
Specified by:
getURLEdit in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getURLEdit in class com.liferay.portlet.asset.model.BaseAssetRenderer
Throws:
java.lang.Exception

getURLExport

public javax.portlet.PortletURL getURLExport(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
                                             com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
Specified by:
getURLExport in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getURLExport in class com.liferay.portlet.asset.model.BaseAssetRenderer

getURLView

public javax.portlet.PortletURL getURLView(com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
                                           javax.portlet.WindowState windowState)
                                    throws java.lang.Exception
Specified by:
getURLView in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getURLView in class com.liferay.portlet.asset.model.BaseAssetRenderer
Throws:
java.lang.Exception

getURLViewInContext

public java.lang.String getURLViewInContext(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest,
                                            com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse,
                                            java.lang.String noSuchEntryRedirect)
Specified by:
getURLViewInContext in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
getURLViewInContext in class com.liferay.portlet.asset.model.BaseAssetRenderer

getUserId

public long getUserId()

getUuid

public java.lang.String getUuid()

hasEditPermission

public boolean hasEditPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
Specified by:
hasEditPermission in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
hasEditPermission in class com.liferay.portlet.asset.model.BaseAssetRenderer

hasViewPermission

public boolean hasViewPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
Specified by:
hasViewPermission in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
hasViewPermission in class com.liferay.portlet.asset.model.BaseAssetRenderer

isConvertible

public boolean isConvertible()
Specified by:
isConvertible in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
isConvertible in class com.liferay.portlet.asset.model.BaseAssetRenderer

isPrintable

public boolean isPrintable()
Specified by:
isPrintable in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
isPrintable in class com.liferay.portlet.asset.model.BaseAssetRenderer

render

public java.lang.String render(javax.portlet.RenderRequest renderRequest,
                               javax.portlet.RenderResponse renderResponse,
                               java.lang.String template)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getIconPath

protected java.lang.String getIconPath(com.liferay.portal.theme.ThemeDisplay themeDisplay)
Overrides:
getIconPath in class com.liferay.portlet.asset.model.BaseAssetRenderer