Liferay 7.0-ce-b4

com.liferay.portlet.asset.model
Interface AssetRenderer<T>

All Superinterfaces:
Renderer
All Known Implementing Classes:
BaseAssetRenderer, BaseJSPAssetRenderer

public interface AssetRenderer<T>
extends Renderer


Field Summary
static String TEMPLATE_ABSTRACT
           
static String TEMPLATE_FULL_CONTENT
           
static String TEMPLATE_PREVIEW
           
 
Method Summary
 String getAddToPagePortletId()
          Deprecated. As of 7.0.0, with no direct replacement
 T getAssetObject()
           
 AssetRendererFactory<T> getAssetRendererFactory()
           
 int getAssetRendererType()
           
 String[] getAvailableLanguageIds()
           
 String[] getAvailableLocales()
          Deprecated. As of 6.2.0, replaced by getAvailableLanguageIds()
 DDMFormValuesReader getDDMFormValuesReader()
           
 String getDiscussionPath()
           
 Date getDisplayDate()
           
 long getGroupId()
           
 String getNewName(String oldName, String token)
           
 String getPreviewPath(PortletRequest portletRequest, PortletResponse portletResponse)
          Deprecated. As of 7.0.0, with no direct replacement
 String getSearchSummary(Locale locale)
           
 int getStatus()
           
 String getSummary()
           
 String getSummary(Locale locale)
          Deprecated. As of 7.0.0, replaced by Renderer.getSummary(PortletRequest, PortletResponse)
 String[] getSupportedConversions()
           
 String getThumbnailPath(PortletRequest portletRequest)
           
 String getURLDownload(ThemeDisplay themeDisplay)
           
 PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, WindowState windowState, PortletURL redirectURL)
           
 PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 String getURLImagePreview(PortletRequest portletRequest)
           
 String getUrlTitle()
           
 String getURLView(LiferayPortletResponse liferayPortletResponse, WindowState windowState)
           
 PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse)
           
 String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect)
           
 long getUserId()
           
 String getUserName()
           
 String getUuid()
           
 String getViewInContextMessage()
           
 boolean hasEditPermission(PermissionChecker permissionChecker)
           
 boolean hasViewPermission(PermissionChecker permissionChecker)
           
 boolean isCommentable()
           
 boolean isConvertible()
           
 boolean isDisplayable()
           
 boolean isLocalizable()
           
 boolean isPreviewInContext()
           
 boolean isPrintable()
           
 boolean isRatable()
           
 void setAddToPagePreferences(PortletPreferences portletPreferences, String portletId, ThemeDisplay themeDisplay)
          Deprecated. As of 7.0.0, with no direct replacement
 
Methods inherited from interface com.liferay.portlet.asset.model.Renderer
getClassName, getClassPK, getIconCssClass, getIconPath, getSummary, getTitle, include
 

Field Detail

TEMPLATE_ABSTRACT

static final String TEMPLATE_ABSTRACT
See Also:
Constant Field Values

TEMPLATE_FULL_CONTENT

static final String TEMPLATE_FULL_CONTENT
See Also:
Constant Field Values

TEMPLATE_PREVIEW

static final String TEMPLATE_PREVIEW
See Also:
Constant Field Values
Method Detail

getAddToPagePortletId

@Deprecated
String getAddToPagePortletId()
                             throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

getAssetObject

T getAssetObject()

getAssetRendererFactory

AssetRendererFactory<T> getAssetRendererFactory()

getAssetRendererType

int getAssetRendererType()

getAvailableLanguageIds

String[] getAvailableLanguageIds()
                                 throws Exception
Throws:
Exception

getAvailableLocales

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

Throws:
Exception

getDDMFormValuesReader

DDMFormValuesReader getDDMFormValuesReader()

getDiscussionPath

String getDiscussionPath()

getDisplayDate

Date getDisplayDate()

getGroupId

long getGroupId()

getNewName

String getNewName(String oldName,
                  String token)

getPreviewPath

@Deprecated
String getPreviewPath(PortletRequest portletRequest,
                                 PortletResponse portletResponse)
                      throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

getSearchSummary

String getSearchSummary(Locale locale)

getStatus

int getStatus()

getSummary

String getSummary()

getSummary

@Deprecated
String getSummary(Locale locale)
Deprecated. As of 7.0.0, replaced by Renderer.getSummary(PortletRequest, PortletResponse)


getSupportedConversions

String[] getSupportedConversions()

getThumbnailPath

String getThumbnailPath(PortletRequest portletRequest)
                        throws Exception
Throws:
Exception

getURLDownload

String getURLDownload(ThemeDisplay themeDisplay)

getURLEdit

PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
                      LiferayPortletResponse liferayPortletResponse)
                      throws Exception
Throws:
Exception

getURLEdit

PortletURL getURLEdit(LiferayPortletRequest liferayPortletRequest,
                      LiferayPortletResponse liferayPortletResponse,
                      WindowState windowState,
                      PortletURL redirectURL)
                      throws Exception
Throws:
Exception

getURLExport

PortletURL getURLExport(LiferayPortletRequest liferayPortletRequest,
                        LiferayPortletResponse liferayPortletResponse)
                        throws Exception
Throws:
Exception

getURLImagePreview

String getURLImagePreview(PortletRequest portletRequest)
                          throws Exception
Throws:
Exception

getUrlTitle

String getUrlTitle()

getURLView

String getURLView(LiferayPortletResponse liferayPortletResponse,
                  WindowState windowState)
                  throws Exception
Throws:
Exception

getURLViewDiffs

PortletURL getURLViewDiffs(LiferayPortletRequest liferayPortletRequest,
                           LiferayPortletResponse liferayPortletResponse)
                           throws Exception
Throws:
Exception

getURLViewInContext

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

getUserId

long getUserId()

getUserName

String getUserName()

getUuid

String getUuid()

getViewInContextMessage

String getViewInContextMessage()

hasEditPermission

boolean hasEditPermission(PermissionChecker permissionChecker)
                          throws PortalException
Throws:
PortalException

hasViewPermission

boolean hasViewPermission(PermissionChecker permissionChecker)
                          throws PortalException
Throws:
PortalException

isCommentable

boolean isCommentable()

isConvertible

boolean isConvertible()

isDisplayable

boolean isDisplayable()

isLocalizable

boolean isLocalizable()

isPreviewInContext

boolean isPreviewInContext()

isPrintable

boolean isPrintable()

isRatable

boolean isRatable()

setAddToPagePreferences

@Deprecated
void setAddToPagePreferences(PortletPreferences portletPreferences,
                                        String portletId,
                                        ThemeDisplay themeDisplay)
                             throws Exception
Deprecated. As of 7.0.0, with no direct replacement

Throws:
Exception

Liferay 7.0-ce-b4