001
014
015 package com.liferay.portlet.asset.model;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
019 import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
020 import com.liferay.portal.security.permission.PermissionChecker;
021 import com.liferay.portal.theme.ThemeDisplay;
022
023 import java.util.Date;
024 import java.util.Locale;
025
026 import javax.portlet.PortletPreferences;
027 import javax.portlet.PortletRequest;
028 import javax.portlet.PortletResponse;
029 import javax.portlet.PortletURL;
030 import javax.portlet.WindowState;
031
032
036 public interface AssetRenderer extends Renderer {
037
038 public static final String TEMPLATE_ABSTRACT = "abstract";
039
040 public static final String TEMPLATE_FULL_CONTENT = "full_content";
041
042 public static final String TEMPLATE_PREVIEW = "preview";
043
044
047 @Deprecated
048 public String getAddToPagePortletId() throws Exception;
049
050 public int getAssetRendererType();
051
052 public String[] getAvailableLanguageIds() throws Exception;
053
054
057 @Deprecated
058 public String[] getAvailableLocales() throws Exception;
059
060 public DDMFormValuesReader getDDMFormValuesReader();
061
062 public String getDiscussionPath();
063
064 public Date getDisplayDate();
065
066 public long getGroupId();
067
068 public String getNewName(String oldName, String token);
069
070
073 @Deprecated
074 public String getPreviewPath(
075 PortletRequest portletRequest, PortletResponse portletResponse)
076 throws Exception;
077
078 public String getSearchSummary(Locale locale);
079
080 public String getSummary();
081
082
086 @Deprecated
087 public String getSummary(Locale locale);
088
089 public String[] getSupportedConversions();
090
091 public String getThumbnailPath(PortletRequest portletRequest)
092 throws Exception;
093
094 public String getURLDownload(ThemeDisplay themeDisplay);
095
096 public PortletURL getURLEdit(
097 LiferayPortletRequest liferayPortletRequest,
098 LiferayPortletResponse liferayPortletResponse)
099 throws Exception;
100
101 public PortletURL getURLEdit(
102 LiferayPortletRequest liferayPortletRequest,
103 LiferayPortletResponse liferayPortletResponse,
104 WindowState windowState, PortletURL redirectURL)
105 throws Exception;
106
107 public PortletURL getURLExport(
108 LiferayPortletRequest liferayPortletRequest,
109 LiferayPortletResponse liferayPortletResponse)
110 throws Exception;
111
112 public String getURLImagePreview(PortletRequest portletRequest)
113 throws Exception;
114
115 public String getUrlTitle();
116
117 public PortletURL getURLView(
118 LiferayPortletResponse liferayPortletResponse,
119 WindowState windowState)
120 throws Exception;
121
122 public PortletURL getURLViewDiffs(
123 LiferayPortletRequest liferayPortletRequest,
124 LiferayPortletResponse liferayPortletResponse)
125 throws Exception;
126
127 public String getURLViewInContext(
128 LiferayPortletRequest liferayPortletRequest,
129 LiferayPortletResponse liferayPortletResponse,
130 String noSuchEntryRedirect)
131 throws Exception;
132
133 public long getUserId();
134
135 public String getUserName();
136
137 public String getUuid();
138
139 public String getViewInContextMessage();
140
141 public boolean hasEditPermission(PermissionChecker permissionChecker)
142 throws PortalException;
143
144 public boolean hasViewPermission(PermissionChecker permissionChecker)
145 throws PortalException;
146
147 public boolean isConvertible();
148
149 public boolean isDisplayable();
150
151 public boolean isLocalizable();
152
153 public boolean isPreviewInContext();
154
155 public boolean isPrintable();
156
157
160 @Deprecated
161 public void setAddToPagePreferences(
162 PortletPreferences portletPreferences, String portletId,
163 ThemeDisplay themeDisplay)
164 throws Exception;
165
166 }