001
014
015 package com.liferay.portlet.asset.model;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
020 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
021
022 import javax.portlet.PortletRequest;
023 import javax.portlet.PortletURL;
024
025
029 public interface AssetRendererFactory {
030
031 public static int TYPE_LATEST = 0;
032
033 public static int TYPE_LATEST_APPROVED = 1;
034
035 public AssetRenderer getAssetRenderer(long classPK)
036 throws PortalException, SystemException;
037
038 public AssetRenderer getAssetRenderer(long classPK, int type)
039 throws PortalException, SystemException;
040
041 public AssetRenderer getAssetRenderer(long groupId, String urlTitle)
042 throws PortalException, SystemException;
043
044 public String getClassName();
045
046 public long getClassNameId();
047
048 public String getIconPath(PortletRequest portletRequest);
049
050 public String getPortletId();
051
052 public String getType();
053
054 public PortletURL getURLAdd(
055 LiferayPortletRequest liferayPortletRequest,
056 LiferayPortletResponse liferayPortletResponse);
057
058 public boolean isSelectable();
059
060 public void setClassNameId(long classNameId);
061
062 public void setPortletId(String portletId);
063
064 }