com.liferay.portal.model
Class LayoutWrapper

java.lang.Object
  extended by com.liferay.portal.model.LayoutWrapper
All Implemented Interfaces:
BaseModel<Layout>, Layout, LayoutModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Layout>

public class LayoutWrapper
extends java.lang.Object
implements Layout

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class is a wrapper for Layout.

Author:
Brian Wing Shun Chan
See Also:
Layout, Serialized Form
Generated:

Constructor Summary
LayoutWrapper(Layout layout)
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(Layout layout)
           
 java.util.List<Layout> getAllChildren()
           
 long getAncestorLayoutId()
           
 long getAncestorPlid()
           
 java.util.List<Layout> getAncestors()
           
 java.util.List<Layout> getChildren()
           
 java.util.List<Layout> getChildren(PermissionChecker permissionChecker)
           
 ColorScheme getColorScheme()
           
 java.lang.String getColorSchemeId()
           
 long getCompanyId()
           
 java.lang.String getCss()
           
 java.lang.String getCssText()
           
 java.lang.String getDescription()
           
 long getDlFolderId()
           
 ExpandoBridge getExpandoBridge()
           
 java.lang.String getFriendlyURL()
           
 Group getGroup()
           
 long getGroupId()
           
 boolean getHidden()
           
 java.lang.String getHTMLTitle(java.util.Locale locale)
           
 java.lang.String getHTMLTitle(java.lang.String localeLanguageId)
           
 boolean getIconImage()
           
 long getIconImageId()
           
 long getLayoutId()
           
 long getLayoutPrototypeId()
           
 LayoutSet getLayoutSet()
           
 LayoutType getLayoutType()
           
 java.lang.String getName()
           
 java.lang.String getName(java.util.Locale locale)
           
 java.lang.String getName(java.util.Locale locale, boolean useDefault)
           
 java.lang.String getName(java.lang.String localeLanguageId)
           
 java.lang.String getName(java.lang.String localeLanguageId, boolean useDefault)
           
 long getParentLayoutId()
           
 long getPlid()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 int getPriority()
           
 boolean getPrivateLayout()
           
 java.lang.String getRegularURL(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
           
 java.lang.String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
           
 Group getScopeGroup()
           
 java.lang.String getTarget()
           
 Theme getTheme()
           
 java.lang.String getThemeId()
           
 java.lang.String getTitle()
           
 java.lang.String getTitle(java.util.Locale locale)
           
 java.lang.String getTitle(java.util.Locale locale, boolean useDefault)
           
 java.lang.String getTitle(java.lang.String localeLanguageId)
           
 java.lang.String getTitle(java.lang.String localeLanguageId, boolean useDefault)
           
 java.lang.String getType()
           
 java.lang.String getTypeSettings()
           
 com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()
           
 ColorScheme getWapColorScheme()
           
 java.lang.String getWapColorSchemeId()
           
 Theme getWapTheme()
           
 java.lang.String getWapThemeId()
           
 Layout getWrappedLayout()
           
 boolean hasAncestor(long layoutId)
           
 boolean hasChildren()
           
 int hashCode()
           
 boolean hasScopeGroup()
           
 boolean isCachedModel()
           
 boolean isChildSelected(boolean selectable, Layout layout)
           
 boolean isEscapedModel()
           
 boolean isFirstChild()
           
 boolean isFirstParent()
           
 boolean isHidden()
           
 boolean isIconImage()
           
 boolean isInheritLookAndFeel()
           
 boolean isInheritWapLookAndFeel()
           
 boolean isNew()
           
 boolean isPrivateLayout()
           
 boolean isPublicLayout()
           
 boolean isRootLayout()
           
 boolean isSelected(boolean selectable, Layout layout, long ancestorPlid)
           
 void setCachedModel(boolean cachedModel)
           
 void setColorSchemeId(java.lang.String colorSchemeId)
           
 void setCompanyId(long companyId)
           
 void setCss(java.lang.String css)
           
 void setDescription(java.lang.String description)
           
 void setDlFolderId(long dlFolderId)
           
 void setEscapedModel(boolean escapedModel)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
           
 void setFriendlyURL(java.lang.String friendlyURL)
           
 void setGroupId(long groupId)
           
 void setHidden(boolean hidden)
           
 void setIconImage(boolean iconImage)
           
 void setIconImageId(long iconImageId)
           
 void setLayoutId(long layoutId)
           
 void setLayoutPrototypeId(long layoutPrototypeId)
           
 void setName(java.lang.String name)
           
 void setName(java.lang.String name, java.util.Locale locale)
           
 boolean setNew(boolean n)
           
 void setParentLayoutId(long parentLayoutId)
           
 void setPlid(long plid)
           
 void setPrimaryKey(long pk)
           
 void setPriority(int priority)
           
 void setPrivateLayout(boolean privateLayout)
           
 void setThemeId(java.lang.String themeId)
           
 void setTitle(java.lang.String title)
           
 void setTitle(java.lang.String title, java.util.Locale locale)
           
 void setType(java.lang.String type)
           
 void setTypeSettings(java.lang.String typeSettings)
           
 void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
           
 void setWapColorSchemeId(java.lang.String wapColorSchemeId)
           
 void setWapThemeId(java.lang.String wapThemeId)
           
 Layout toEscapedModel()
           
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LayoutWrapper

public LayoutWrapper(Layout layout)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface LayoutModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface LayoutModel

getPlid

public long getPlid()
Specified by:
getPlid in interface LayoutModel

setPlid

public void setPlid(long plid)
Specified by:
setPlid in interface LayoutModel

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface LayoutModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface LayoutModel

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface LayoutModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface LayoutModel

getPrivateLayout

public boolean getPrivateLayout()
Specified by:
getPrivateLayout in interface LayoutModel

isPrivateLayout

public boolean isPrivateLayout()
Specified by:
isPrivateLayout in interface LayoutModel

setPrivateLayout

public void setPrivateLayout(boolean privateLayout)
Specified by:
setPrivateLayout in interface LayoutModel

getLayoutId

public long getLayoutId()
Specified by:
getLayoutId in interface LayoutModel

setLayoutId

public void setLayoutId(long layoutId)
Specified by:
setLayoutId in interface LayoutModel

getParentLayoutId

public long getParentLayoutId()
Specified by:
getParentLayoutId in interface LayoutModel

setParentLayoutId

public void setParentLayoutId(long parentLayoutId)
Specified by:
setParentLayoutId in interface LayoutModel

getName

public java.lang.String getName()
Specified by:
getName in interface LayoutModel

setName

public void setName(java.lang.String name)
Specified by:
setName in interface LayoutModel

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface LayoutModel

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface LayoutModel

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface LayoutModel

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface LayoutModel

getType

public java.lang.String getType()
Specified by:
getType in interface LayoutModel

setType

public void setType(java.lang.String type)
Specified by:
setType in interface LayoutModel

getTypeSettings

public java.lang.String getTypeSettings()
Specified by:
getTypeSettings in interface Layout
Specified by:
getTypeSettings in interface LayoutModel

setTypeSettings

public void setTypeSettings(java.lang.String typeSettings)
Specified by:
setTypeSettings in interface Layout
Specified by:
setTypeSettings in interface LayoutModel

getHidden

public boolean getHidden()
Specified by:
getHidden in interface LayoutModel

isHidden

public boolean isHidden()
Specified by:
isHidden in interface LayoutModel

setHidden

public void setHidden(boolean hidden)
Specified by:
setHidden in interface LayoutModel

getFriendlyURL

public java.lang.String getFriendlyURL()
Specified by:
getFriendlyURL in interface LayoutModel

setFriendlyURL

public void setFriendlyURL(java.lang.String friendlyURL)
Specified by:
setFriendlyURL in interface LayoutModel

getIconImage

public boolean getIconImage()
Specified by:
getIconImage in interface LayoutModel

isIconImage

public boolean isIconImage()
Specified by:
isIconImage in interface LayoutModel

setIconImage

public void setIconImage(boolean iconImage)
Specified by:
setIconImage in interface LayoutModel

getIconImageId

public long getIconImageId()
Specified by:
getIconImageId in interface LayoutModel

setIconImageId

public void setIconImageId(long iconImageId)
Specified by:
setIconImageId in interface LayoutModel

getThemeId

public java.lang.String getThemeId()
Specified by:
getThemeId in interface LayoutModel

setThemeId

public void setThemeId(java.lang.String themeId)
Specified by:
setThemeId in interface LayoutModel

getColorSchemeId

public java.lang.String getColorSchemeId()
Specified by:
getColorSchemeId in interface LayoutModel

setColorSchemeId

public void setColorSchemeId(java.lang.String colorSchemeId)
Specified by:
setColorSchemeId in interface LayoutModel

getWapThemeId

public java.lang.String getWapThemeId()
Specified by:
getWapThemeId in interface LayoutModel

setWapThemeId

public void setWapThemeId(java.lang.String wapThemeId)
Specified by:
setWapThemeId in interface LayoutModel

getWapColorSchemeId

public java.lang.String getWapColorSchemeId()
Specified by:
getWapColorSchemeId in interface LayoutModel

setWapColorSchemeId

public void setWapColorSchemeId(java.lang.String wapColorSchemeId)
Specified by:
setWapColorSchemeId in interface LayoutModel

getCss

public java.lang.String getCss()
Specified by:
getCss in interface LayoutModel

setCss

public void setCss(java.lang.String css)
Specified by:
setCss in interface LayoutModel

getPriority

public int getPriority()
Specified by:
getPriority in interface LayoutModel

setPriority

public void setPriority(int priority)
Specified by:
setPriority in interface LayoutModel

getLayoutPrototypeId

public long getLayoutPrototypeId()
Specified by:
getLayoutPrototypeId in interface LayoutModel

setLayoutPrototypeId

public void setLayoutPrototypeId(long layoutPrototypeId)
Specified by:
setLayoutPrototypeId in interface LayoutModel

getDlFolderId

public long getDlFolderId()
Specified by:
getDlFolderId in interface LayoutModel

setDlFolderId

public void setDlFolderId(long dlFolderId)
Specified by:
setDlFolderId in interface LayoutModel

toEscapedModel

public Layout toEscapedModel()
Specified by:
toEscapedModel in interface LayoutModel

isNew

public boolean isNew()
Specified by:
isNew in interface BaseModel<Layout>
Specified by:
isNew in interface LayoutModel

setNew

public boolean setNew(boolean n)
Specified by:
setNew in interface BaseModel<Layout>
Specified by:
setNew in interface LayoutModel

isCachedModel

public boolean isCachedModel()
Specified by:
isCachedModel in interface BaseModel<Layout>
Specified by:
isCachedModel in interface LayoutModel

setCachedModel

public void setCachedModel(boolean cachedModel)
Specified by:
setCachedModel in interface BaseModel<Layout>
Specified by:
setCachedModel in interface LayoutModel

isEscapedModel

public boolean isEscapedModel()
Specified by:
isEscapedModel in interface BaseModel<Layout>
Specified by:
isEscapedModel in interface LayoutModel

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Specified by:
setEscapedModel in interface BaseModel<Layout>
Specified by:
setEscapedModel in interface LayoutModel

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface BaseModel<Layout>
Specified by:
getPrimaryKeyObj in interface LayoutModel

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface BaseModel<Layout>
Specified by:
getExpandoBridge in interface LayoutModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<Layout>
Specified by:
setExpandoBridgeAttributes in interface LayoutModel

clone

public java.lang.Object clone()
Specified by:
clone in interface BaseModel<Layout>
Specified by:
clone in interface LayoutModel
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(Layout layout)
Specified by:
compareTo in interface LayoutModel
Specified by:
compareTo in interface java.lang.Comparable<Layout>

hashCode

public int hashCode()
Specified by:
hashCode in interface LayoutModel
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface LayoutModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface BaseModel<Layout>
Specified by:
toXmlString in interface LayoutModel

getGroup

public Group getGroup()
Specified by:
getGroup in interface Layout

getScopeGroup

public Group getScopeGroup()
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Specified by:
getScopeGroup in interface Layout
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasScopeGroup

public boolean hasScopeGroup()
                      throws com.liferay.portal.kernel.exception.PortalException,
                             com.liferay.portal.kernel.exception.SystemException
Specified by:
hasScopeGroup in interface Layout
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

isPublicLayout

public boolean isPublicLayout()
Specified by:
isPublicLayout in interface Layout

getAncestorPlid

public long getAncestorPlid()
Specified by:
getAncestorPlid in interface Layout

getAncestorLayoutId

public long getAncestorLayoutId()
Specified by:
getAncestorLayoutId in interface Layout

getAncestors

public java.util.List<Layout> getAncestors()
                                    throws com.liferay.portal.kernel.exception.PortalException,
                                           com.liferay.portal.kernel.exception.SystemException
Specified by:
getAncestors in interface Layout
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

hasAncestor

public boolean hasAncestor(long layoutId)
                    throws com.liferay.portal.kernel.exception.PortalException,
                           com.liferay.portal.kernel.exception.SystemException
Specified by:
hasAncestor in interface Layout
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

isFirstParent

public boolean isFirstParent()
Specified by:
isFirstParent in interface Layout

isFirstChild

public boolean isFirstChild()
Specified by:
isFirstChild in interface Layout

isRootLayout

public boolean isRootLayout()
Specified by:
isRootLayout in interface Layout

getChildren

public java.util.List<Layout> getChildren()
                                   throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getChildren in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

hasChildren

public boolean hasChildren()
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
hasChildren in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getAllChildren

public java.util.List<Layout> getAllChildren()
                                      throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getAllChildren in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getChildren

public java.util.List<Layout> getChildren(PermissionChecker permissionChecker)
                                   throws com.liferay.portal.kernel.exception.PortalException,
                                          com.liferay.portal.kernel.exception.SystemException
Specified by:
getChildren in interface Layout
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getName

public java.lang.String getName(java.util.Locale locale)
Specified by:
getName in interface Layout

getName

public java.lang.String getName(java.lang.String localeLanguageId)
Specified by:
getName in interface Layout

getName

public java.lang.String getName(java.util.Locale locale,
                                boolean useDefault)
Specified by:
getName in interface Layout

getName

public java.lang.String getName(java.lang.String localeLanguageId,
                                boolean useDefault)
Specified by:
getName in interface Layout

setName

public void setName(java.lang.String name,
                    java.util.Locale locale)
Specified by:
setName in interface Layout

getTitle

public java.lang.String getTitle(java.util.Locale locale)
Specified by:
getTitle in interface Layout

getTitle

public java.lang.String getTitle(java.lang.String localeLanguageId)
Specified by:
getTitle in interface Layout

getTitle

public java.lang.String getTitle(java.util.Locale locale,
                                 boolean useDefault)
Specified by:
getTitle in interface Layout

getTitle

public java.lang.String getTitle(java.lang.String localeLanguageId,
                                 boolean useDefault)
Specified by:
getTitle in interface Layout

getHTMLTitle

public java.lang.String getHTMLTitle(java.util.Locale locale)
Specified by:
getHTMLTitle in interface Layout

getHTMLTitle

public java.lang.String getHTMLTitle(java.lang.String localeLanguageId)
Specified by:
getHTMLTitle in interface Layout

setTitle

public void setTitle(java.lang.String title,
                     java.util.Locale locale)
Specified by:
setTitle in interface Layout

getLayoutType

public LayoutType getLayoutType()
Specified by:
getLayoutType in interface Layout

getTypeSettingsProperties

public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()
Specified by:
getTypeSettingsProperties in interface Layout

setTypeSettingsProperties

public void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
Specified by:
setTypeSettingsProperties in interface Layout

getLayoutSet

public LayoutSet getLayoutSet()
Specified by:
getLayoutSet in interface Layout

isInheritLookAndFeel

public boolean isInheritLookAndFeel()
Specified by:
isInheritLookAndFeel in interface Layout

getTheme

public Theme getTheme()
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getTheme in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getColorScheme

public ColorScheme getColorScheme()
                           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getColorScheme in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

isInheritWapLookAndFeel

public boolean isInheritWapLookAndFeel()
Specified by:
isInheritWapLookAndFeel in interface Layout

getWapTheme

public Theme getWapTheme()
                  throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getWapTheme in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getWapColorScheme

public ColorScheme getWapColorScheme()
                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getWapColorScheme in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getCssText

public java.lang.String getCssText()
Specified by:
getCssText in interface Layout

getRegularURL

public java.lang.String getRegularURL(javax.servlet.http.HttpServletRequest request)
                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getRegularURL in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getResetMaxStateURL

public java.lang.String getResetMaxStateURL(javax.servlet.http.HttpServletRequest request)
                                     throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getResetMaxStateURL in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getResetLayoutURL

public java.lang.String getResetLayoutURL(javax.servlet.http.HttpServletRequest request)
                                   throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getResetLayoutURL in interface Layout
Throws:
com.liferay.portal.kernel.exception.SystemException

getTarget

public java.lang.String getTarget()
Specified by:
getTarget in interface Layout

isChildSelected

public boolean isChildSelected(boolean selectable,
                               Layout layout)
Specified by:
isChildSelected in interface Layout

isSelected

public boolean isSelected(boolean selectable,
                          Layout layout,
                          long ancestorPlid)
Specified by:
isSelected in interface Layout

getWrappedLayout

public Layout getWrappedLayout()