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 com.liferay.portal.service.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.
com.liferay.portal.service.LayoutServiceFactory
is responsible for
the lookup of the bean.
- Author:
- Brian Wing Shun Chan
- See Also:
LayoutService
,
LayoutServiceFactory
Method Summary |
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)
|
static void |
deleteLayout(long plid)
|
static void |
deleteLayout(long groupId,
boolean privateLayout,
long layoutId)
|
static byte[] |
exportLayouts(long groupId,
boolean privateLayout,
java.util.Map parameterMap)
|
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 prefsKey,
java.lang.String prefsValue)
|
static void |
importLayouts(long groupId,
boolean privateLayout,
java.util.Map parameterMap,
java.io.File file)
|
static void |
setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds)
|
static Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String languageId,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL)
|
static Layout |
updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String languageId,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes)
|
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.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
deleteLayout
public static void deleteLayout(long plid)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
deleteLayout
public static void deleteLayout(long groupId,
boolean privateLayout,
long layoutId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getLayoutName
public static java.lang.String getLayoutName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String languageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
getLayoutReferences
public static LayoutReference[] getLayoutReferences(long companyId,
java.lang.String portletId,
java.lang.String prefsKey,
java.lang.String prefsValue)
throws com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.SystemException
java.rmi.RemoteException
exportLayouts
public static byte[] exportLayouts(long groupId,
boolean privateLayout,
java.util.Map parameterMap)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
importLayouts
public static void importLayouts(long groupId,
boolean privateLayout,
java.util.Map parameterMap,
java.io.File file)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
setLayouts
public static void setLayouts(long groupId,
boolean privateLayout,
long parentLayoutId,
long[] layoutIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateLayout
public static Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String languageId,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateLayout
public static Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId,
java.lang.String name,
java.lang.String title,
java.lang.String languageId,
java.lang.String description,
java.lang.String type,
boolean hidden,
java.lang.String friendlyURL,
java.lang.Boolean iconImage,
byte[] iconBytes)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateLayout
public static Layout updateLayout(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String typeSettings)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
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.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateName
public static Layout updateName(long plid,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateName
public static Layout updateName(long groupId,
boolean privateLayout,
long layoutId,
java.lang.String name,
java.lang.String languageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateParentLayoutId
public static Layout updateParentLayoutId(long plid,
long parentPlid)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updateParentLayoutId
public static Layout updateParentLayoutId(long groupId,
boolean privateLayout,
long layoutId,
long parentLayoutId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updatePriority
public static Layout updatePriority(long plid,
int priority)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException
updatePriority
public static Layout updatePriority(long groupId,
boolean privateLayout,
long layoutId,
int priority)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException,
java.rmi.RemoteException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
java.rmi.RemoteException