com.liferay.portlet.asset.model
Interface AssetRenderer

All Known Implementing Classes:
BaseAssetRenderer

public interface AssetRenderer

Author:
Jorge Ferrer, Juan Fernández

Field Summary
static java.lang.String TEMPLATE_ABSTRACT
           
static java.lang.String TEMPLATE_FULL_CONTENT
           
 
Method Summary
 java.lang.String getAddToPagePortletId()
           
 int getAssetRendererType()
           
 java.lang.String[] getAvailableLanguageIds()
           
 java.lang.String[] getAvailableLocales()
          Deprecated. As of 6.2.0, replaced by getAvailableLanguageIds()
 java.lang.String getClassName()
           
 long getClassPK()
           
 java.lang.String getDiscussionPath()
           
 java.util.Date getDisplayDate()
           
 long getGroupId()
           
 java.lang.String getIconPath(javax.portlet.PortletRequest portletRequest)
           
 java.lang.String getNewName(java.lang.String oldName, java.lang.String token)
           
 java.lang.String getPreviewPath(javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse PortletResponse)
           
 java.lang.String getSearchSummary(java.util.Locale locale)
           
 java.lang.String getSummary(java.util.Locale locale)
           
 java.lang.String getThumbnailPath(javax.portlet.PortletRequest portletRequest)
           
 java.lang.String getTitle(java.util.Locale locale)
           
 java.lang.String getURLDownload(ThemeDisplay themeDisplay)
           
 javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState, javax.portlet.PortletURL redirectURL)
           
 javax.portlet.PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 java.lang.String getURLImagePreview(javax.portlet.PortletRequest portletRequest)
           
 java.lang.String getUrlTitle()
           
 javax.portlet.PortletURL getURLView(LiferayPortletResponse liferayPortletResponse, javax.portlet.WindowState windowState)
           
 java.lang.String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, java.lang.String noSuchEntryRedirect)
           
 long getUserId()
           
 java.lang.String getUserName()
           
 java.lang.String getUuid()
           
 java.lang.String getViewInContextMessage()
           
 boolean hasEditPermission(PermissionChecker permissionChecker)
           
 boolean hasViewPermission(PermissionChecker permissionChecker)
           
 boolean isConvertible()
           
 boolean isDisplayable()
           
 boolean isLocalizable()
           
 boolean isPreviewInContext()
           
 boolean isPrintable()
           
 java.lang.String render(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse, java.lang.String template)
           
 void setAddToPagePreferences(javax.portlet.PortletPreferences preferences, java.lang.String portletId, ThemeDisplay themeDisplay)
           
 

Field Detail

TEMPLATE_ABSTRACT

static final java.lang.String TEMPLATE_ABSTRACT
See Also:
Constant Field Values

TEMPLATE_FULL_CONTENT

static final java.lang.String TEMPLATE_FULL_CONTENT
See Also:
Constant Field Values
Method Detail

getAddToPagePortletId

java.lang.String getAddToPagePortletId()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getAssetRendererType

int getAssetRendererType()

getAvailableLanguageIds

java.lang.String[] getAvailableLanguageIds()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getAvailableLocales

java.lang.String[] getAvailableLocales()
                                       throws java.lang.Exception
Deprecated. As of 6.2.0, replaced by getAvailableLanguageIds()

Throws:
java.lang.Exception

getClassName

java.lang.String getClassName()

getClassPK

long getClassPK()

getDiscussionPath

java.lang.String getDiscussionPath()

getDisplayDate

java.util.Date getDisplayDate()

getGroupId

long getGroupId()

getIconPath

java.lang.String getIconPath(javax.portlet.PortletRequest portletRequest)

getNewName

java.lang.String getNewName(java.lang.String oldName,
                            java.lang.String token)

getPreviewPath

java.lang.String getPreviewPath(javax.portlet.PortletRequest portletRequest,
                                javax.portlet.PortletResponse PortletResponse)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getSearchSummary

java.lang.String getSearchSummary(java.util.Locale locale)

getSummary

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

getThumbnailPath

java.lang.String getThumbnailPath(javax.portlet.PortletRequest portletRequest)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getTitle

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

getURLDownload

java.lang.String getURLDownload(ThemeDisplay themeDisplay)

getURLEdit

javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
                                    LiferayPortletResponse liferayPortletResponse)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getURLEdit

javax.portlet.PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
                                    LiferayPortletResponse liferayPortletResponse,
                                    javax.portlet.WindowState windowState,
                                    javax.portlet.PortletURL redirectURL)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getURLExport

javax.portlet.PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest,
                                      LiferayPortletResponse liferayPortletResponse)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getURLImagePreview

java.lang.String getURLImagePreview(javax.portlet.PortletRequest portletRequest)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getUrlTitle

java.lang.String getUrlTitle()

getURLView

javax.portlet.PortletURL getURLView(LiferayPortletResponse liferayPortletResponse,
                                    javax.portlet.WindowState windowState)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getURLViewInContext

java.lang.String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,
                                     LiferayPortletResponse liferayPortletResponse,
                                     java.lang.String noSuchEntryRedirect)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getUserId

long getUserId()

getUserName

java.lang.String getUserName()

getUuid

java.lang.String getUuid()

getViewInContextMessage

java.lang.String getViewInContextMessage()

hasEditPermission

boolean hasEditPermission(PermissionChecker permissionChecker)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

hasViewPermission

boolean hasViewPermission(PermissionChecker permissionChecker)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

isConvertible

boolean isConvertible()

isDisplayable

boolean isDisplayable()

isLocalizable

boolean isLocalizable()

isPreviewInContext

boolean isPreviewInContext()

isPrintable

boolean isPrintable()

render

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

setAddToPagePreferences

void setAddToPagePreferences(javax.portlet.PortletPreferences preferences,
                             java.lang.String portletId,
                             ThemeDisplay themeDisplay)
                             throws java.lang.Exception
Throws:
java.lang.Exception