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 import com.liferay.portal.security.permission.PermissionChecker;
022
023 import javax.portlet.PortletRequest;
024 import javax.portlet.PortletURL;
025
026
032 public interface AssetRendererFactory {
033
034 public static int TYPE_LATEST = 0;
035
036 public static int TYPE_LATEST_APPROVED = 1;
037
038 public AssetEntry getAssetEntry(long assetEntryId)
039 throws PortalException, SystemException;
040
041 public AssetEntry getAssetEntry(String classNameId, long classPK)
042 throws PortalException, SystemException;
043
044 public AssetRenderer getAssetRenderer(long classPK)
045 throws PortalException, SystemException;
046
047 public AssetRenderer getAssetRenderer(long classPK, int type)
048 throws PortalException, SystemException;
049
050 public AssetRenderer getAssetRenderer(long groupId, String urlTitle)
051 throws PortalException, SystemException;
052
053 public String getClassName();
054
055 public long getClassNameId();
056
057 public String getIconPath(PortletRequest portletRequest);
058
059 public String getPortletId();
060
061 public String getType();
062
063 public PortletURL getURLAdd(
064 LiferayPortletRequest liferayPortletRequest,
065 LiferayPortletResponse liferayPortletResponse)
066 throws PortalException, SystemException;
067
068 public boolean hasPermission(
069 PermissionChecker permissionChecker, long entryClassPK,
070 String actionId)
071 throws Exception;
072
073 public boolean isSelectable();
074
075 public void setClassNameId(long classNameId);
076
077 public void setPortletId(String portletId);
078
079 }