com.liferay.portal.service
Class LayoutServiceUtil
java.lang.Object
com.liferay.portal.service.LayoutServiceUtil
public class LayoutServiceUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This class provides static methods for the
LayoutService
bean. The static methods of
this class calls the same methods of the bean instance. It's convenient to be
able to just write one line to call a method on a bean instead of writing a
lookup call and a method call.
- Author:
- Brian Wing Shun Chan
- See Also:
LayoutService
- Generated:
Method Summary |
static Layout |
addLayout(long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
ServiceContext serviceContext)
|
static Layout |
addLayout(long groupId,
boolean privateLayout,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
ServiceContext serviceContext)
|
static void |
deleteLayout(long plid)
|
static void |
deleteLayout(long groupId,
boolean privateLayout,
long layoutId)
|
static byte[] |
exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
|
static byte[] |
exportLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
|
static java.io.File |
exportLayoutsAsFile(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
|
static byte[] |
exportPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
|
static java.io.File |
exportPortletInfoAsFile(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
|
static java.lang.String |
getLayoutName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String languageId)
|
static LayoutReference[] |
getLayoutReferences(long companyId,
java.lang.String portletId,
java.lang.String preferencesKey,
java.lang.String preferencesValue)
|
static LayoutService |
getService()
|
static void |
importLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
byte[] bytes)
|
static void |
importLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
|
static void |
importLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
|
static void |
importPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
|
static void |
importPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
|
static void |
schedulePublishToLive(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String scope,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
|
static void |
schedulePublishToRemote(long sourceGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String remoteAddress,
int remotePort,
boolean secureConnection,
long remoteGroupId,
boolean remotePrivateLayout,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
|
static void |
setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds)
|
void |
setService(LayoutService service)
|
static void |
unschedulePublishToLive(long groupId,
java.lang.String jobName,
java.lang.String groupName)
|
static void |
unschedulePublishToRemote(long groupId,
java.lang.String jobName,
java.lang.String groupName)
|
static Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes,
ServiceContext serviceContext)
|
static Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
ServiceContext serviceContext)
|
static Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String typeSettings)
|
static Layout |
updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String themeId,
java.lang.String colorSchemeId,
java.lang.String css,
boolean wapTheme)
|
static Layout |
updateName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String name,
java.lang.String languageId)
|
static Layout |
updateName(long plid,
java.lang.String name,
java.lang.String languageId)
|
static Layout |
updateParentLayoutId(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId)
|
static Layout |
updateParentLayoutId(long plid,
long parentPlid)
|
static Layout |
updatePriority(long groupId,
boolean privateLayout,
long layoutId,
int priority)
|
static Layout |
updatePriority(long plid,
int priority)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutServiceUtil
public LayoutServiceUtil()
addLayout
public static Layout addLayout(long groupId,
boolean privateLayout,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addLayout
public static Layout addLayout(long groupId,
boolean privateLayout,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteLayout
public static void deleteLayout(long plid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteLayout
public static void deleteLayout(long groupId,
boolean privateLayout,
long layoutId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportLayouts
public static byte[] exportLayouts(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportLayouts
public static byte[] exportLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportLayoutsAsFile
public static java.io.File exportLayoutsAsFile(long groupId,
boolean privateLayout,
long[] layoutIds,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportPortletInfo
public static byte[] exportPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
exportPortletInfoAsFile
public static java.io.File exportPortletInfoAsFile(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.util.Date startDate,
java.util.Date endDate)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getLayoutName
public static java.lang.String getLayoutName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getLayoutReferences
public static LayoutReference[] getLayoutReferences(long companyId,
java.lang.String portletId,
java.lang.String preferencesKey,
java.lang.String preferencesValue)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
importLayouts
public static void importLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
byte[] bytes)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importLayouts
public static void importLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importLayouts
public static void importLayouts(long groupId,
boolean privateLayout,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPortletInfo
public static void importPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.File file)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
importPortletInfo
public static void importPortletInfo(long plid,
long groupId,
java.lang.String portletId,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
schedulePublishToLive
public static void schedulePublishToLive(long sourceGroupId,
long targetGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String scope,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
schedulePublishToRemote
public static void schedulePublishToRemote(long sourceGroupId,
boolean privateLayout,
java.util.Map<java.lang.Long,java.lang.Boolean> layoutIdMap,
java.util.Map<java.lang.String,java.lang.String[]> parameterMap,
java.lang.String remoteAddress,
int remotePort,
boolean secureConnection,
long remoteGroupId,
boolean remotePrivateLayout,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String groupName,
java.lang.String cronText,
java.util.Date schedulerStartDate,
java.util.Date schedulerEndDate,
java.lang.String description)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
setLayouts
public static void setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unschedulePublishToLive
public static void unschedulePublishToLive(long groupId,
java.lang.String jobName,
java.lang.String groupName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unschedulePublishToRemote
public static void unschedulePublishToRemote(long groupId,
java.lang.String jobName,
java.lang.String groupName)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateLayout
public static Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes,
ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateLayout
public static Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.util.Map<java.util.Locale,java.lang.String> localeNamesMap,
java.util.Map<java.util.Locale,java.lang.String> localeTitlesMap,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateLayout
public static Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String typeSettings)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateLookAndFeel
public static Layout updateLookAndFeel(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String themeId,
java.lang.String colorSchemeId,
java.lang.String css,
boolean wapTheme)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateName
public static Layout updateName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateName
public static Layout updateName(long plid,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateParentLayoutId
public static Layout updateParentLayoutId(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateParentLayoutId
public static Layout updateParentLayoutId(long plid,
long parentPlid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updatePriority
public static Layout updatePriority(long groupId,
boolean privateLayout,
long layoutId,
int priority)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updatePriority
public static Layout updatePriority(long plid,
int priority)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getService
public static LayoutService getService()
setService
public void setService(LayoutService service)