Package com.liferay.portal.service.http
Class LayoutServiceHttp
Object
com.liferay.portal.service.http.LayoutServiceHttp
Provides the HTTP utility for the
LayoutServiceUtil
service
utility. The
static methods of this class calls the same methods of the service utility.
However, the signatures are different because it requires an additional
HttpPrincipal
parameter.
The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.
Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.
The HTTP utility is only generated for remote services.
- Author:
- Brian Wing Shun Chan
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.liferay.portal.kernel.model.Layout
addLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, long classNameId, long classPK, Map<Locale, String> localeNamesMap, Map<Locale, String> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, boolean system, Map<Locale, String> friendlyURLMap, long masterLayoutPlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.portal.kernel.model.Layout
addLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, String name, String title, String description, String type, boolean hidden, String friendlyURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.portal.kernel.model.Layout
addLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale, String> localeNamesMap, Map<Locale, String> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, Map<Locale, String> friendlyURLMap, long masterLayoutPlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.portal.kernel.model.Layout
addLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale, String> localeNamesMap, Map<Locale, String> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, Map<Locale, String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.portal.kernel.repository.model.FileEntry
addTempFileEntry
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String folderName, String fileName, InputStream inputStream, String mimeType) static com.liferay.portal.kernel.model.Layout
copyLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, Map<Locale, String> localeNamesMap, boolean hidden, boolean system, boolean copyPermissions, long sourcePlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
deleteLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) static void
deleteTempFileEntry
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String folderName, String fileName) static com.liferay.portal.kernel.model.Layout
fetchFirstLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, boolean published) static com.liferay.portal.kernel.model.Layout
fetchLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId) static com.liferay.portal.kernel.model.Layout
fetchLayoutByExternalReferenceCode
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) static long
fetchLayoutPlid
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) static List<com.liferay.portal.kernel.model.Layout>
getAncestorLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid) static long
getControlPanelLayoutPlid
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal) static long
getDefaultPlid
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout) static long
getDefaultPlid
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long scopeGroupId, boolean privateLayout, String portletId) static long
getDefaultPlid
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long scopeGroupId, String portletId) static com.liferay.portal.kernel.model.Layout
getLayoutByExternalReferenceCode
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) static com.liferay.portal.kernel.model.Layout
getLayoutByUuidAndGroupId
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) static String
getLayoutName
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String languageId) static long
getLayoutPlid
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) static com.liferay.portal.kernel.model.LayoutReference[]
getLayoutReferences
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String portletId, String preferencesKey, String preferencesValue) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, boolean incomplete, int start, int end) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, int start, int end) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String type) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String type, int start, int end) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Layout> orderByComparator) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Layout> orderByComparator) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String type) static List<com.liferay.portal.kernel.model.Layout>
getLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String type, int start, int end) static int
getLayoutsCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout) static int
getLayoutsCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId) static int
getLayoutsCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, int priority) static int
getLayoutsCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String type) static int
getLayoutsCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types) static int
getLayoutsCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types, int[] statuses) static int
getLayoutsCount
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String type) static String[]
getTempFileNames
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String folderName) static boolean
hasLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) static boolean
hasPortletId
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, String portletId) static com.liferay.portal.kernel.model.Layout
publishLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid) static void
schedulePublishToLive
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, String groupName, String cronText, Date schedulerStartDate, Date schedulerEndDate, String description) static void
schedulePublishToRemote
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long sourceGroupId, boolean privateLayout, Map<Long, Boolean> layoutIdMap, Map<String, String[]> parameterMap, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean remotePrivateLayout, Date startDate, Date endDate, String groupName, String cronText, Date schedulerStartDate, Date schedulerEndDate, String description) static void
setLayouts
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) static void
unschedulePublishToLive
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String jobName, String groupName) static void
unschedulePublishToRemote
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String jobName, String groupName) static com.liferay.portal.kernel.model.Layout
updateIconImage
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, byte[] bytes) static com.liferay.portal.kernel.model.Layout
updateLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, long parentLayoutId, Map<Locale, String> localeNamesMap, Map<Locale, String> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, boolean hidden, Map<Locale, String> friendlyURLMap, boolean hasIconImage, byte[] iconBytes, long styleBookEntryId, long faviconFileEntryId, long masterLayoutPlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) static com.liferay.portal.kernel.model.Layout
updateLayout
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String typeSettings) static com.liferay.portal.kernel.model.Layout
updateLookAndFeel
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String themeId, String colorSchemeId, String css) static com.liferay.portal.kernel.model.Layout
updateName
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String name, String languageId) static com.liferay.portal.kernel.model.Layout
updateName
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, String name, String languageId) static com.liferay.portal.kernel.model.Layout
updateParentLayoutId
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, long parentLayoutId) static com.liferay.portal.kernel.model.Layout
updateParentLayoutId
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, long parentPlid) static com.liferay.portal.kernel.model.Layout
updateParentLayoutIdAndPriority
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, long parentPlid, int priority) static com.liferay.portal.kernel.model.Layout
updatePriority
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, int priority) static com.liferay.portal.kernel.model.Layout
updatePriority
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, long nextLayoutId, long previousLayoutId) static com.liferay.portal.kernel.model.Layout
updatePriority
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, int priority) static com.liferay.portal.kernel.model.Layout
updateType
(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, String type)
-
Constructor Details
-
LayoutServiceHttp
public LayoutServiceHttp()
-
-
Method Details
-
addLayout
public static com.liferay.portal.kernel.model.Layout addLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, long classNameId, long classPK, Map<Locale, String> localeNamesMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, boolean system, Map<Locale, String> friendlyURLMap, long masterLayoutPlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addLayout
public static com.liferay.portal.kernel.model.Layout addLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale, String> localeNamesMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, Map<Locale, String> friendlyURLMap, long masterLayoutPlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addLayout
public static com.liferay.portal.kernel.model.Layout addLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, Map<Locale, String> localeNamesMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, String typeSettings, boolean hidden, Map<Locale, String> friendlyURLMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addLayout
public static com.liferay.portal.kernel.model.Layout addLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId, boolean privateLayout, long parentLayoutId, String name, String title, String description, String type, boolean hidden, String friendlyURL, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addTempFileEntry
public static com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String folderName, String fileName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
copyLayout
public static com.liferay.portal.kernel.model.Layout copyLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, Map<Locale, String> localeNamesMap, boolean hidden, boolean system, boolean copyPermissions, long sourcePlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLayout
public static void deleteLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLayout
public static void deleteLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteLayout
public static void deleteLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTempFileEntry
public static void deleteTempFileEntry(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String folderName, String fileName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchFirstLayout
public static com.liferay.portal.kernel.model.Layout fetchFirstLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, boolean published) -
fetchLayout
public static com.liferay.portal.kernel.model.Layout fetchLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchLayoutByExternalReferenceCode
public static com.liferay.portal.kernel.model.Layout fetchLayoutByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchLayoutPlid
public static long fetchLayoutPlid(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getAncestorLayouts
public static List<com.liferay.portal.kernel.model.Layout> getAncestorLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getControlPanelLayoutPlid
public static long getControlPanelLayoutPlid(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDefaultPlid
public static long getDefaultPlid(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout) -
getDefaultPlid
public static long getDefaultPlid(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long scopeGroupId, boolean privateLayout, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getDefaultPlid
public static long getDefaultPlid(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long scopeGroupId, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutByExternalReferenceCode
public static com.liferay.portal.kernel.model.Layout getLayoutByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutByUuidAndGroupId
public static com.liferay.portal.kernel.model.Layout getLayoutByUuidAndGroupId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutName
public static String getLayoutName(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String languageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutPlid
public static long getLayoutPlid(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutReferences
-
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout) -
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, boolean incomplete, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String type, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Layout> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayouts
public static List<com.liferay.portal.kernel.model.Layout> getLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types, int[] statuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Layout> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayouts
-
getLayouts
-
getLayoutsCount
public static int getLayoutsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout) -
getLayoutsCount
public static int getLayoutsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId) -
getLayoutsCount
public static int getLayoutsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, int priority) -
getLayoutsCount
public static int getLayoutsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String type) -
getLayoutsCount
public static int getLayoutsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutsCount
public static int getLayoutsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, String keywords, String[] types, int[] statuses) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getLayoutsCount
public static int getLayoutsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String type) -
getTempFileNames
public static String[] getTempFileNames(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String folderName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasLayout
public static boolean hasLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String uuid, long groupId, boolean privateLayout) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasPortletId
public static boolean hasPortletId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, String portletId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
publishLayout
public static com.liferay.portal.kernel.model.Layout publishLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid) throws Exception - Throws:
Exception
-
schedulePublishToLive
public static void schedulePublishToLive(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long sourceGroupId, long targetGroupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, String groupName, String cronText, Date schedulerStartDate, Date schedulerEndDate, String description) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
schedulePublishToRemote
public static void schedulePublishToRemote(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long sourceGroupId, boolean privateLayout, Map<Long, Boolean> layoutIdMap, Map<String, throws com.liferay.portal.kernel.exception.PortalExceptionString[]> parameterMap, String remoteAddress, int remotePort, String remotePathContext, boolean secureConnection, long remoteGroupId, boolean remotePrivateLayout, Date startDate, Date endDate, String groupName, String cronText, Date schedulerStartDate, Date schedulerEndDate, String description) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
setLayouts
public static void setLayouts(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long parentLayoutId, long[] layoutIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unschedulePublishToLive
public static void unschedulePublishToLive(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String jobName, String groupName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unschedulePublishToRemote
public static void unschedulePublishToRemote(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String jobName, String groupName) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateIconImage
public static com.liferay.portal.kernel.model.Layout updateIconImage(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, byte[] bytes) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLayout
public static com.liferay.portal.kernel.model.Layout updateLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, long parentLayoutId, Map<Locale, String> localeNamesMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> localeTitlesMap, Map<Locale, String> descriptionMap, Map<Locale, String> keywordsMap, Map<Locale, String> robotsMap, String type, boolean hidden, Map<Locale, String> friendlyURLMap, boolean hasIconImage, byte[] iconBytes, long styleBookEntryId, long faviconFileEntryId, long masterLayoutPlid, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLayout
public static com.liferay.portal.kernel.model.Layout updateLayout(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateLookAndFeel
public static com.liferay.portal.kernel.model.Layout updateLookAndFeel(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String themeId, String colorSchemeId, String css) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateName
public static com.liferay.portal.kernel.model.Layout updateName(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, String name, String languageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateName
public static com.liferay.portal.kernel.model.Layout updateName(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, String name, String languageId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateParentLayoutId
public static com.liferay.portal.kernel.model.Layout updateParentLayoutId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, long parentLayoutId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateParentLayoutId
public static com.liferay.portal.kernel.model.Layout updateParentLayoutId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, long parentPlid) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateParentLayoutIdAndPriority
public static com.liferay.portal.kernel.model.Layout updateParentLayoutIdAndPriority(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, long parentPlid, int priority) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePriority
public static com.liferay.portal.kernel.model.Layout updatePriority(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, int priority) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePriority
public static com.liferay.portal.kernel.model.Layout updatePriority(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, long layoutId, long nextLayoutId, long previousLayoutId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updatePriority
public static com.liferay.portal.kernel.model.Layout updatePriority(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, int priority) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateType
public static com.liferay.portal.kernel.model.Layout updateType(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long plid, String type) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-