Class LayoutTypePortletImpl

Object
com.liferay.portal.model.impl.LayoutTypeImpl
com.liferay.portal.model.impl.LayoutTypePortletImpl
All Implemented Interfaces:
com.liferay.portal.kernel.model.LayoutType, com.liferay.portal.kernel.model.LayoutTypePortlet, Serializable
Direct Known Subclasses:
LayoutTypeURLImpl

public class LayoutTypePortletImpl extends LayoutTypeImpl implements com.liferay.portal.kernel.model.LayoutTypePortlet
Author:
Brian Wing Shun Chan, Berentey Zsolt, Jorge Ferrer, Raymond Augé, Neil Griffin
See Also:
  • Constructor Details

    • LayoutTypePortletImpl

      public LayoutTypePortletImpl(com.liferay.portal.kernel.model.Layout layout, com.liferay.portal.kernel.model.LayoutTypeController layoutTypeController, com.liferay.portal.kernel.model.LayoutTypeAccessPolicy layoutTypeAccessPolicy)
  • Method Details

    • addModeAboutPortletId

      public void addModeAboutPortletId(String portletId)
      Specified by:
      addModeAboutPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModeConfigPortletId

      public void addModeConfigPortletId(String portletId)
      Specified by:
      addModeConfigPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModeCustomPortletId

      public void addModeCustomPortletId(String portletId, String portletMode)
      Specified by:
      addModeCustomPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModeEditDefaultsPortletId

      public void addModeEditDefaultsPortletId(String portletId)
      Specified by:
      addModeEditDefaultsPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModeEditGuestPortletId

      public void addModeEditGuestPortletId(String portletId)
      Specified by:
      addModeEditGuestPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModeEditPortletId

      public void addModeEditPortletId(String portletId)
      Specified by:
      addModeEditPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModeHelpPortletId

      public void addModeHelpPortletId(String portletId)
      Specified by:
      addModeHelpPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModePreviewPortletId

      public void addModePreviewPortletId(String portletId)
      Specified by:
      addModePreviewPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addModePrintPortletId

      public void addModePrintPortletId(String portletId)
      Specified by:
      addModePrintPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addPortletId

      public String addPortletId(long userId, String portletId)
      Specified by:
      addPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addPortletId

      public String addPortletId(long userId, String portletId, boolean checkPermission)
      Specified by:
      addPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addPortletId

      public String addPortletId(long userId, String portletId, String columnId, int columnPos)
      Specified by:
      addPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addPortletId

      public String addPortletId(long userId, String portletId, String columnId, int columnPos, boolean checkPermission)
      Specified by:
      addPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addPortletIds

      public void addPortletIds(long userId, String[] portletIds, boolean checkPermission)
      Specified by:
      addPortletIds in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addPortletIds

      public void addPortletIds(long userId, String[] portletIds, String columnId, boolean checkPermission)
      Specified by:
      addPortletIds in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addStateMaxPortletId

      public void addStateMaxPortletId(String portletId)
      Specified by:
      addStateMaxPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addStateMinPortletId

      public void addStateMinPortletId(String portletId)
      Specified by:
      addStateMinPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addStaticPortlets

      public List<com.liferay.portal.kernel.model.Portlet> addStaticPortlets(List<com.liferay.portal.kernel.model.Portlet> portlets, List<com.liferay.portal.kernel.model.Portlet> startPortlets, List<com.liferay.portal.kernel.model.Portlet> endPortlets)
      Specified by:
      addStaticPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getAddedCustomPortletMode

      public String getAddedCustomPortletMode()
      Specified by:
      getAddedCustomPortletMode in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getAllNonembeddedPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getAllNonembeddedPortlets()
      Specified by:
      getAllNonembeddedPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getAllPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getAllPortlets()
      Specified by:
      getAllPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getAllPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getAllPortlets(boolean includeSystem)
      Specified by:
      getAllPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getAllPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getAllPortlets(String columnId)
      Specified by:
      getAllPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getColumn

      public String getColumn(String portletId)
      Specified by:
      getColumn in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getColumns

      public List<String> getColumns()
      Specified by:
      getColumns in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getEmbeddedPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getEmbeddedPortlets()
      Specified by:
      getEmbeddedPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getExplicitlyAddedPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getExplicitlyAddedPortlets()
      Specified by:
      getExplicitlyAddedPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getExplicitlyAddedPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getExplicitlyAddedPortlets(boolean includeCustomizableColumns)
      Specified by:
      getExplicitlyAddedPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getLayoutSetPrototypeLayout

      public com.liferay.portal.kernel.model.Layout getLayoutSetPrototypeLayout()
      Specified by:
      getLayoutSetPrototypeLayout in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getLayoutSetPrototypeLayoutProperty

      public String getLayoutSetPrototypeLayoutProperty(String key)
      Specified by:
      getLayoutSetPrototypeLayoutProperty in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getLayoutTemplate

      public com.liferay.portal.kernel.model.LayoutTemplate getLayoutTemplate()
      Specified by:
      getLayoutTemplate in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getLayoutTemplateId

      public String getLayoutTemplateId()
      Specified by:
      getLayoutTemplateId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModeAbout

      public String getModeAbout()
      Specified by:
      getModeAbout in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModeConfig

      public String getModeConfig()
      Specified by:
      getModeConfig in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModeCustom

      public String getModeCustom(String portletMode)
      Specified by:
      getModeCustom in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModeEdit

      public String getModeEdit()
      Specified by:
      getModeEdit in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModeEditDefaults

      public String getModeEditDefaults()
      Specified by:
      getModeEditDefaults in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModeEditGuest

      public String getModeEditGuest()
      Specified by:
      getModeEditGuest in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModeHelp

      public String getModeHelp()
      Specified by:
      getModeHelp in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModePreview

      public String getModePreview()
      Specified by:
      getModePreview in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getModePrint

      public String getModePrint()
      Specified by:
      getModePrint in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getNumOfColumns

      public int getNumOfColumns()
      Specified by:
      getNumOfColumns in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getPortalPreferences

      public com.liferay.portal.kernel.portlet.PortalPreferences getPortalPreferences()
      Specified by:
      getPortalPreferences in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getPortletIds

      public List<String> getPortletIds()
      Specified by:
      getPortletIds in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getPortlets()
      Specified by:
      getPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getStateMax

      public String getStateMax()
      Specified by:
      getStateMax in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getStateMaxPortletId

      public String getStateMaxPortletId()
      Specified by:
      getStateMaxPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getStateMin

      public String getStateMin()
      Specified by:
      getStateMin in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • getStaticPortlets

      public List<com.liferay.portal.kernel.model.Portlet> getStaticPortlets(String position)
      Specified by:
      getStaticPortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasDefaultScopePortletId

      public boolean hasDefaultScopePortletId(long groupId, String portletId)
      Specified by:
      hasDefaultScopePortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeAboutPortletId

      public boolean hasModeAboutPortletId(String portletId)
      Specified by:
      hasModeAboutPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeConfigPortletId

      public boolean hasModeConfigPortletId(String portletId)
      Specified by:
      hasModeConfigPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeCustomPortletId

      public boolean hasModeCustomPortletId(String portletId, String portletMode)
      Specified by:
      hasModeCustomPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeEditDefaultsPortletId

      public boolean hasModeEditDefaultsPortletId(String portletId)
      Specified by:
      hasModeEditDefaultsPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeEditGuestPortletId

      public boolean hasModeEditGuestPortletId(String portletId)
      Specified by:
      hasModeEditGuestPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeEditPortletId

      public boolean hasModeEditPortletId(String portletId)
      Specified by:
      hasModeEditPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeHelpPortletId

      public boolean hasModeHelpPortletId(String portletId)
      Specified by:
      hasModeHelpPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModePreviewPortletId

      public boolean hasModePreviewPortletId(String portletId)
      Specified by:
      hasModePreviewPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModePrintPortletId

      public boolean hasModePrintPortletId(String portletId)
      Specified by:
      hasModePrintPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasModeViewPortletId

      public boolean hasModeViewPortletId(String portletId)
      Specified by:
      hasModeViewPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasPortletId

      public boolean hasPortletId(String portletId)
      Specified by:
      hasPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasPortletId

      public boolean hasPortletId(String portletId, boolean strict)
      Specified by:
      hasPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasStateMax

      public boolean hasStateMax()
      Specified by:
      hasStateMax in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasStateMaxPortletId

      public boolean hasStateMaxPortletId(String portletId)
      Specified by:
      hasStateMaxPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasStateMin

      public boolean hasStateMin()
      Specified by:
      hasStateMin in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasStateMinPortletId

      public boolean hasStateMinPortletId(String portletId)
      Specified by:
      hasStateMinPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasStateNormalPortletId

      public boolean hasStateNormalPortletId(String portletId)
      Specified by:
      hasStateNormalPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • hasUpdatePermission

      public boolean hasUpdatePermission()
      Specified by:
      hasUpdatePermission in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isCacheable

      public boolean isCacheable()
      Specified by:
      isCacheable in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isColumnCustomizable

      public boolean isColumnCustomizable(String columnId)
      Specified by:
      isColumnCustomizable in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isColumnDisabled

      public boolean isColumnDisabled(String columnId)
      Specified by:
      isColumnDisabled in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isCustomizable

      public boolean isCustomizable()
      Specified by:
      isCustomizable in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isCustomizedView

      public boolean isCustomizedView()
      Specified by:
      isCustomizedView in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isDefaultUpdated

      public boolean isDefaultUpdated()
      Specified by:
      isDefaultUpdated in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isPortletCustomizable

      public boolean isPortletCustomizable(String portletId)
      Specified by:
      isPortletCustomizable in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • isPortletEmbedded

      public boolean isPortletEmbedded(String portletId)
      Specified by:
      isPortletEmbedded in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • movePortletId

      public void movePortletId(long userId, String portletId, String columnId, int columnPos)
      Specified by:
      movePortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeCustomization

      public void removeCustomization(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsUnicodeProperties)
      Specified by:
      removeCustomization in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModeAboutPortletId

      public void removeModeAboutPortletId(String portletId)
      Specified by:
      removeModeAboutPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModeConfigPortletId

      public void removeModeConfigPortletId(String portletId)
      Specified by:
      removeModeConfigPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModeEditDefaultsPortletId

      public void removeModeEditDefaultsPortletId(String portletId)
      Specified by:
      removeModeEditDefaultsPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModeEditGuestPortletId

      public void removeModeEditGuestPortletId(String portletId)
      Specified by:
      removeModeEditGuestPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModeEditPortletId

      public void removeModeEditPortletId(String portletId)
      Specified by:
      removeModeEditPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModeHelpPortletId

      public void removeModeHelpPortletId(String portletId)
      Specified by:
      removeModeHelpPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModePreviewPortletId

      public void removeModePreviewPortletId(String portletId)
      Specified by:
      removeModePreviewPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModePrintPortletId

      public void removeModePrintPortletId(String portletId)
      Specified by:
      removeModePrintPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeModesPortletId

      public void removeModesPortletId(String portletId)
      Specified by:
      removeModesPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeNestedColumns

      public void removeNestedColumns(String portletNamespace)
      Specified by:
      removeNestedColumns in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removePortletId

      public void removePortletId(long userId, String portletId)
      Specified by:
      removePortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removePortletId

      public void removePortletId(long userId, String portletId, boolean cleanUp)
      Specified by:
      removePortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeStateMaxPortletId

      public void removeStateMaxPortletId(String portletId)
      Specified by:
      removeStateMaxPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeStateMinPortletId

      public void removeStateMinPortletId(String portletId)
      Specified by:
      removeStateMinPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • removeStatesPortletId

      public void removeStatesPortletId(String portletId)
      Specified by:
      removeStatesPortletId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • reorganizePortlets

      public void reorganizePortlets(List<String> newColumns, List<String> oldColumns)
      Specified by:
      reorganizePortlets in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • resetModes

      public void resetModes()
      Specified by:
      resetModes in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • resetStates

      public void resetStates()
      Specified by:
      resetStates in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • resetUserPreferences

      public void resetUserPreferences()
      Specified by:
      resetUserPreferences in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setCustomizedView

      public void setCustomizedView(boolean customizedView)
      Specified by:
      setCustomizedView in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setLayoutTemplateId

      public void setLayoutTemplateId(long userId, String newLayoutTemplateId)
      Specified by:
      setLayoutTemplateId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setLayoutTemplateId

      public void setLayoutTemplateId(long userId, String newLayoutTemplateId, boolean checkPermission)
      Specified by:
      setLayoutTemplateId in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModeAbout

      public void setModeAbout(String modeAbout)
      Specified by:
      setModeAbout in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModeConfig

      public void setModeConfig(String modeConfig)
      Specified by:
      setModeConfig in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModeCustom

      public void setModeCustom(String modeCustom, String portletMode)
      Specified by:
      setModeCustom in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModeEdit

      public void setModeEdit(String modeEdit)
      Specified by:
      setModeEdit in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModeEditDefaults

      public void setModeEditDefaults(String modeEditDefaults)
      Specified by:
      setModeEditDefaults in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModeEditGuest

      public void setModeEditGuest(String modeEditGuest)
      Specified by:
      setModeEditGuest in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModeHelp

      public void setModeHelp(String modeHelp)
      Specified by:
      setModeHelp in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModePreview

      public void setModePreview(String modePreview)
      Specified by:
      setModePreview in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setModePrint

      public void setModePrint(String modePrint)
      Specified by:
      setModePrint in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setPortalPreferences

      public void setPortalPreferences(com.liferay.portal.kernel.portlet.PortalPreferences portalPreferences)
      Specified by:
      setPortalPreferences in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setStateMax

      public void setStateMax(String stateMax)
      Specified by:
      setStateMax in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setStateMin

      public void setStateMin(String stateMin)
      Specified by:
      setStateMin in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • setUpdatePermission

      public void setUpdatePermission(boolean updatePermission)
      Specified by:
      setUpdatePermission in interface com.liferay.portal.kernel.model.LayoutTypePortlet
    • addNestedColumn

      protected void addNestedColumn(String columnId)
    • addPortletId

      protected String addPortletId(long userId, String portletId, String columnId, int columnPos, boolean checkPermission, boolean strictHasPortlet)
    • copyPreferences

      protected void copyPreferences(long userId, String sourcePortletId, String targetPortletId)
    • copyResourcePermissions

      protected void copyResourcePermissions(String sourcePortletId, String targetPortletId)
    • getColumnValue

      protected String getColumnValue(String columnId)
    • getCompanyId

      protected long getCompanyId()
    • getDefaultLayoutTypePortletImpl

      protected LayoutTypePortletImpl getDefaultLayoutTypePortletImpl()
    • getNestedColumns

      protected String[] getNestedColumns()
    • getPlid

      protected long getPlid()
    • getStaticPortletIds

      protected String[] getStaticPortletIds(String position)
    • getThemeId

      protected String getThemeId()
    • getUserPreference

      protected String getUserPreference(String key)
    • hasNonstaticPortletId

      protected boolean hasNonstaticPortletId(String portletId)
    • hasNonstaticPortletId

      protected boolean hasNonstaticPortletId(String columnId, String portletId)
    • hasStaticPortletId

      protected boolean hasStaticPortletId(String columnId, String portletId)
    • hasUserPreferences

      protected boolean hasUserPreferences()
    • isLayoutSetPrototype

      protected boolean isLayoutSetPrototype()
    • onRemoveFromLayout

      protected void onRemoveFromLayout(String[] portletIds)
    • setUserPreference

      protected void setUserPreference(String key, String value)