com.liferay.portlet.imagegallery.asset
Class IGImageAssetRenderer

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

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

View Source

Author:
Julio Camarero, Juan Fernández

Field Summary
 
Fields inherited from interface com.liferay.portlet.asset.model.AssetRenderer
TEMPLATE_ABSTRACT, TEMPLATE_FULL_CONTENT
 
Constructor Summary
IGImageAssetRenderer(com.liferay.portlet.imagegallery.model.IGImage image)
           
 
Method Summary
 long getClassPK()
           
 long getGroupId()
           
protected  java.lang.String getIconPath(com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 java.lang.String getSummary()
           
 java.lang.String getTitle()
           
 javax.portlet.PortletURL getURLEdit(com.liferay.portal.kernel.portlet.LiferayPortletRequest liferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse liferayPortletResponse)
           
 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 getViewInContextMessage()
           
 boolean hasEditPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
 boolean hasViewPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
           
 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, getDiscussionPath, getIconPath, getURLExport, getUrlTitle, isConvertible, isLocalizable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGImageAssetRenderer

public IGImageAssetRenderer(com.liferay.portlet.imagegallery.model.IGImage image)
Method Detail

getClassPK

public long getClassPK()

getGroupId

public long getGroupId()

getSummary

public java.lang.String getSummary()

getTitle

public java.lang.String getTitle()

getURLEdit

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

getURLViewInContext

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

getUserId

public long getUserId()

getViewInContextMessage

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

hasEditPermission

public boolean hasEditPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
hasEditPermission in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
hasEditPermission in class com.liferay.portlet.asset.model.BaseAssetRenderer
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasViewPermission

public boolean hasViewPermission(com.liferay.portal.security.permission.PermissionChecker permissionChecker)
                          throws com.liferay.portal.kernel.exception.PortalException,
                                 com.liferay.portal.kernel.exception.SystemException
Specified by:
hasViewPermission in interface com.liferay.portlet.asset.model.AssetRenderer
Overrides:
hasViewPermission in class com.liferay.portlet.asset.model.BaseAssetRenderer
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

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)

getIconPath

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