Liferay 6.0.5

com.liferay.portal.model.impl
Class LayoutTypePortletImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.LayoutTypeImpl
      extended by com.liferay.portal.model.impl.LayoutTypePortletImpl
All Implemented Interfaces:
LayoutType, LayoutTypePortlet, Serializable

public class LayoutTypePortletImpl
extends LayoutTypeImpl
implements LayoutTypePortlet

See Also:
Serialized Form

Constructor Summary
LayoutTypePortletImpl(Layout layout)
           
 
Method Summary
 void addModeAboutPortletId(String portletId)
           
 void addModeConfigPortletId(String portletId)
           
 void addModeEditDefaultsPortletId(String portletId)
           
 void addModeEditGuestPortletId(String portletId)
           
 void addModeEditPortletId(String portletId)
           
 void addModeHelpPortletId(String portletId)
           
 void addModePreviewPortletId(String portletId)
           
 void addModePrintPortletId(String portletId)
           
protected  void addNestedColumn(String columnId)
           
 String addPortletId(long userId, String portletId)
           
 String addPortletId(long userId, String portletId, boolean checkPermission)
           
 String addPortletId(long userId, String portletId, String columnId, int columnPos)
           
 String addPortletId(long userId, String portletId, String columnId, int columnPos, boolean checkPermission)
           
 void addPortletIds(long userId, String[] portletIds, boolean checkPermission)
           
 void addPortletIds(long userId, String[] portletIds, String columnId, boolean checkPermission)
           
 void addStateMaxPortletId(String portletId)
           
 void addStateMinPortletId(String portletId)
           
 List<Portlet> addStaticPortlets(List<Portlet> portlets, List<Portlet> startPortlets, List<Portlet> endPortlets)
           
protected  void deletePortletSetup(String portletId)
           
 List<Portlet> getAllPortlets()
           
 List<Portlet> getAllPortlets(String columnId)
           
protected  List<String> getColumns()
           
static String getFullInstanceSeparator()
           
 LayoutTemplate getLayoutTemplate()
           
 String getLayoutTemplateId()
           
 String getModeAbout()
           
 String getModeConfig()
           
 String getModeEdit()
           
 String getModeEditDefaults()
           
 String getModeEditGuest()
           
 String getModeHelp()
           
 String getModePreview()
           
 String getModePrint()
           
protected  List<String> getNestedColumns()
           
 int getNumOfColumns()
           
 List<String> getPortletIds()
           
 List<Portlet> getPortlets()
           
 String getStateMax()
           
 String getStateMaxPortletId()
           
 String getStateMin()
           
protected  String[] getStaticPortletIds(String position)
           
protected  List<Portlet> getStaticPortlets(String position)
           
 boolean hasDefaultScopePortletId(long groupId, String portletId)
           
 boolean hasModeAboutPortletId(String portletId)
           
 boolean hasModeConfigPortletId(String portletId)
           
 boolean hasModeEditDefaultsPortletId(String portletId)
           
 boolean hasModeEditGuestPortletId(String portletId)
           
 boolean hasModeEditPortletId(String portletId)
           
 boolean hasModeHelpPortletId(String portletId)
           
 boolean hasModePreviewPortletId(String portletId)
           
 boolean hasModePrintPortletId(String portletId)
           
 boolean hasModeViewPortletId(String portletId)
           
protected  boolean hasNonstaticPortletId(String portletId)
           
protected  boolean hasNonstaticPortletId(String columnId, String portletId)
           
 boolean hasPortletId(String portletId)
           
 boolean hasStateMax()
           
 boolean hasStateMaxPortletId(String portletId)
           
 boolean hasStateMin()
           
 boolean hasStateMinPortletId(String portletId)
           
 boolean hasStateNormalPortletId(String portletId)
           
protected  boolean hasStaticPortletId(String columnId, String portletId)
           
 void movePortletId(long userId, String portletId, String columnId, int columnPos)
           
protected  void onRemoveFromLayout(String portletId)
           
 void removeModeAboutPortletId(String portletId)
           
 void removeModeConfigPortletId(String portletId)
           
 void removeModeEditDefaultsPortletId(String portletId)
           
 void removeModeEditGuestPortletId(String portletId)
           
 void removeModeEditPortletId(String portletId)
           
 void removeModeHelpPortletId(String portletId)
           
 void removeModePreviewPortletId(String portletId)
           
 void removeModePrintPortletId(String portletId)
           
 void removeModesPortletId(String portletId)
           
 void removeNestedColumns(String portletId)
           
 void removePortletId(long userId, String portletId)
           
 void removePortletId(long userId, String portletId, boolean cleanUp)
           
 void removeStateMaxPortletId(String portletId)
           
 void removeStateMinPortletId(String portletId)
           
 void removeStatesPortletId(String portletId)
           
 void reorganizePortlets(List<String> newColumns, List<String> oldColumns)
           
 void resetModes()
           
 void resetStates()
           
 void setLayoutTemplateId(long userId, String newLayoutTemplateId)
           
 void setLayoutTemplateId(long userId, String newLayoutTemplateId, boolean checkPermission)
           
 void setModeAbout(String modeAbout)
           
 void setModeConfig(String modeConfig)
           
 void setModeEdit(String modeEdit)
           
 void setModeEditDefaults(String modeEditDefaults)
           
 void setModeEditGuest(String modeEditGuest)
           
 void setModeHelp(String modeHelp)
           
 void setModePreview(String modePreview)
           
 void setModePrint(String modePrint)
           
 void setPortletIds(String columnId, String portletIds)
           
 void setStateMax(String stateMax)
           
 void setStateMin(String stateMin)
           
 
Methods inherited from class com.liferay.portal.model.impl.LayoutTypeImpl
getLayout, getTypeSettingsProperties, setLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.LayoutType
getLayout, getTypeSettingsProperties, setLayout
 

Constructor Detail

LayoutTypePortletImpl

public LayoutTypePortletImpl(Layout layout)
Method Detail

getFullInstanceSeparator

public static String getFullInstanceSeparator()

addModeAboutPortletId

public void addModeAboutPortletId(String portletId)
Specified by:
addModeAboutPortletId in interface LayoutTypePortlet

addModeConfigPortletId

public void addModeConfigPortletId(String portletId)
Specified by:
addModeConfigPortletId in interface LayoutTypePortlet

addModeEditDefaultsPortletId

public void addModeEditDefaultsPortletId(String portletId)
Specified by:
addModeEditDefaultsPortletId in interface LayoutTypePortlet

addModeEditGuestPortletId

public void addModeEditGuestPortletId(String portletId)
Specified by:
addModeEditGuestPortletId in interface LayoutTypePortlet

addModeEditPortletId

public void addModeEditPortletId(String portletId)
Specified by:
addModeEditPortletId in interface LayoutTypePortlet

addModeHelpPortletId

public void addModeHelpPortletId(String portletId)
Specified by:
addModeHelpPortletId in interface LayoutTypePortlet

addModePreviewPortletId

public void addModePreviewPortletId(String portletId)
Specified by:
addModePreviewPortletId in interface LayoutTypePortlet

addModePrintPortletId

public void addModePrintPortletId(String portletId)
Specified by:
addModePrintPortletId in interface LayoutTypePortlet

addPortletId

public String addPortletId(long userId,
                           String portletId)
                    throws PortalException,
                           SystemException
Specified by:
addPortletId in interface LayoutTypePortlet
Throws:
PortalException
SystemException

addPortletId

public String addPortletId(long userId,
                           String portletId,
                           boolean checkPermission)
                    throws PortalException,
                           SystemException
Specified by:
addPortletId in interface LayoutTypePortlet
Throws:
PortalException
SystemException

addPortletId

public String addPortletId(long userId,
                           String portletId,
                           String columnId,
                           int columnPos)
                    throws PortalException,
                           SystemException
Specified by:
addPortletId in interface LayoutTypePortlet
Throws:
PortalException
SystemException

addPortletId

public String addPortletId(long userId,
                           String portletId,
                           String columnId,
                           int columnPos,
                           boolean checkPermission)
                    throws PortalException,
                           SystemException
Specified by:
addPortletId in interface LayoutTypePortlet
Throws:
PortalException
SystemException

addPortletIds

public void addPortletIds(long userId,
                          String[] portletIds,
                          boolean checkPermission)
                   throws PortalException,
                          SystemException
Specified by:
addPortletIds in interface LayoutTypePortlet
Throws:
PortalException
SystemException

addPortletIds

public void addPortletIds(long userId,
                          String[] portletIds,
                          String columnId,
                          boolean checkPermission)
                   throws PortalException,
                          SystemException
Specified by:
addPortletIds in interface LayoutTypePortlet
Throws:
PortalException
SystemException

addStateMaxPortletId

public void addStateMaxPortletId(String portletId)
Specified by:
addStateMaxPortletId in interface LayoutTypePortlet

addStateMinPortletId

public void addStateMinPortletId(String portletId)
Specified by:
addStateMinPortletId in interface LayoutTypePortlet

addStaticPortlets

public List<Portlet> addStaticPortlets(List<Portlet> portlets,
                                       List<Portlet> startPortlets,
                                       List<Portlet> endPortlets)
Specified by:
addStaticPortlets in interface LayoutTypePortlet

getAllPortlets

public List<Portlet> getAllPortlets()
                             throws PortalException,
                                    SystemException
Specified by:
getAllPortlets in interface LayoutTypePortlet
Throws:
PortalException
SystemException

getAllPortlets

public List<Portlet> getAllPortlets(String columnId)
                             throws PortalException,
                                    SystemException
Specified by:
getAllPortlets in interface LayoutTypePortlet
Throws:
PortalException
SystemException

getLayoutTemplate

public LayoutTemplate getLayoutTemplate()
Specified by:
getLayoutTemplate in interface LayoutTypePortlet

getLayoutTemplateId

public String getLayoutTemplateId()
Specified by:
getLayoutTemplateId in interface LayoutTypePortlet

getModeAbout

public String getModeAbout()
Specified by:
getModeAbout in interface LayoutTypePortlet

getModeConfig

public String getModeConfig()
Specified by:
getModeConfig in interface LayoutTypePortlet

getModeEdit

public String getModeEdit()
Specified by:
getModeEdit in interface LayoutTypePortlet

getModeEditDefaults

public String getModeEditDefaults()
Specified by:
getModeEditDefaults in interface LayoutTypePortlet

getModeEditGuest

public String getModeEditGuest()
Specified by:
getModeEditGuest in interface LayoutTypePortlet

getModeHelp

public String getModeHelp()
Specified by:
getModeHelp in interface LayoutTypePortlet

getModePreview

public String getModePreview()
Specified by:
getModePreview in interface LayoutTypePortlet

getModePrint

public String getModePrint()
Specified by:
getModePrint in interface LayoutTypePortlet

getNumOfColumns

public int getNumOfColumns()
Specified by:
getNumOfColumns in interface LayoutTypePortlet

getPortletIds

public List<String> getPortletIds()
Specified by:
getPortletIds in interface LayoutTypePortlet

getPortlets

public List<Portlet> getPortlets()
                          throws SystemException
Specified by:
getPortlets in interface LayoutTypePortlet
Throws:
SystemException

getStateMax

public String getStateMax()
Specified by:
getStateMax in interface LayoutTypePortlet

getStateMaxPortletId

public String getStateMaxPortletId()
Specified by:
getStateMaxPortletId in interface LayoutTypePortlet

getStateMin

public String getStateMin()
Specified by:
getStateMin in interface LayoutTypePortlet

hasDefaultScopePortletId

public boolean hasDefaultScopePortletId(long groupId,
                                        String portletId)
                                 throws PortalException,
                                        SystemException
Specified by:
hasDefaultScopePortletId in interface LayoutTypePortlet
Throws:
PortalException
SystemException

hasModeAboutPortletId

public boolean hasModeAboutPortletId(String portletId)
Specified by:
hasModeAboutPortletId in interface LayoutTypePortlet

hasModeConfigPortletId

public boolean hasModeConfigPortletId(String portletId)
Specified by:
hasModeConfigPortletId in interface LayoutTypePortlet

hasModeEditDefaultsPortletId

public boolean hasModeEditDefaultsPortletId(String portletId)
Specified by:
hasModeEditDefaultsPortletId in interface LayoutTypePortlet

hasModeEditGuestPortletId

public boolean hasModeEditGuestPortletId(String portletId)
Specified by:
hasModeEditGuestPortletId in interface LayoutTypePortlet

hasModeEditPortletId

public boolean hasModeEditPortletId(String portletId)
Specified by:
hasModeEditPortletId in interface LayoutTypePortlet

hasModeHelpPortletId

public boolean hasModeHelpPortletId(String portletId)
Specified by:
hasModeHelpPortletId in interface LayoutTypePortlet

hasModePreviewPortletId

public boolean hasModePreviewPortletId(String portletId)
Specified by:
hasModePreviewPortletId in interface LayoutTypePortlet

hasModePrintPortletId

public boolean hasModePrintPortletId(String portletId)
Specified by:
hasModePrintPortletId in interface LayoutTypePortlet

hasModeViewPortletId

public boolean hasModeViewPortletId(String portletId)
Specified by:
hasModeViewPortletId in interface LayoutTypePortlet

hasPortletId

public boolean hasPortletId(String portletId)
                     throws PortalException,
                            SystemException
Specified by:
hasPortletId in interface LayoutTypePortlet
Throws:
PortalException
SystemException

hasStateMax

public boolean hasStateMax()
Specified by:
hasStateMax in interface LayoutTypePortlet

hasStateMaxPortletId

public boolean hasStateMaxPortletId(String portletId)
Specified by:
hasStateMaxPortletId in interface LayoutTypePortlet

hasStateMin

public boolean hasStateMin()
Specified by:
hasStateMin in interface LayoutTypePortlet

hasStateMinPortletId

public boolean hasStateMinPortletId(String portletId)
Specified by:
hasStateMinPortletId in interface LayoutTypePortlet

hasStateNormalPortletId

public boolean hasStateNormalPortletId(String portletId)
Specified by:
hasStateNormalPortletId in interface LayoutTypePortlet

movePortletId

public void movePortletId(long userId,
                          String portletId,
                          String columnId,
                          int columnPos)
                   throws PortalException,
                          SystemException
Specified by:
movePortletId in interface LayoutTypePortlet
Throws:
PortalException
SystemException

removeModeAboutPortletId

public void removeModeAboutPortletId(String portletId)
Specified by:
removeModeAboutPortletId in interface LayoutTypePortlet

removeModeConfigPortletId

public void removeModeConfigPortletId(String portletId)
Specified by:
removeModeConfigPortletId in interface LayoutTypePortlet

removeModeEditDefaultsPortletId

public void removeModeEditDefaultsPortletId(String portletId)
Specified by:
removeModeEditDefaultsPortletId in interface LayoutTypePortlet

removeModeEditGuestPortletId

public void removeModeEditGuestPortletId(String portletId)
Specified by:
removeModeEditGuestPortletId in interface LayoutTypePortlet

removeModeEditPortletId

public void removeModeEditPortletId(String portletId)
Specified by:
removeModeEditPortletId in interface LayoutTypePortlet

removeModeHelpPortletId

public void removeModeHelpPortletId(String portletId)
Specified by:
removeModeHelpPortletId in interface LayoutTypePortlet

removeModePreviewPortletId

public void removeModePreviewPortletId(String portletId)
Specified by:
removeModePreviewPortletId in interface LayoutTypePortlet

removeModePrintPortletId

public void removeModePrintPortletId(String portletId)
Specified by:
removeModePrintPortletId in interface LayoutTypePortlet

removeModesPortletId

public void removeModesPortletId(String portletId)
Specified by:
removeModesPortletId in interface LayoutTypePortlet

removeNestedColumns

public void removeNestedColumns(String portletId)
Specified by:
removeNestedColumns in interface LayoutTypePortlet

removePortletId

public void removePortletId(long userId,
                            String portletId)
Specified by:
removePortletId in interface LayoutTypePortlet

removePortletId

public void removePortletId(long userId,
                            String portletId,
                            boolean cleanUp)
Specified by:
removePortletId in interface LayoutTypePortlet

removeStateMaxPortletId

public void removeStateMaxPortletId(String portletId)
Specified by:
removeStateMaxPortletId in interface LayoutTypePortlet

removeStateMinPortletId

public void removeStateMinPortletId(String portletId)
Specified by:
removeStateMinPortletId in interface LayoutTypePortlet

removeStatesPortletId

public void removeStatesPortletId(String portletId)
Specified by:
removeStatesPortletId in interface LayoutTypePortlet

reorganizePortlets

public void reorganizePortlets(List<String> newColumns,
                               List<String> oldColumns)
Specified by:
reorganizePortlets in interface LayoutTypePortlet

resetModes

public void resetModes()
Specified by:
resetModes in interface LayoutTypePortlet

resetStates

public void resetStates()
Specified by:
resetStates in interface LayoutTypePortlet

setLayoutTemplateId

public void setLayoutTemplateId(long userId,
                                String newLayoutTemplateId)
Specified by:
setLayoutTemplateId in interface LayoutTypePortlet

setLayoutTemplateId

public void setLayoutTemplateId(long userId,
                                String newLayoutTemplateId,
                                boolean checkPermission)
Specified by:
setLayoutTemplateId in interface LayoutTypePortlet

setModeAbout

public void setModeAbout(String modeAbout)
Specified by:
setModeAbout in interface LayoutTypePortlet

setModeConfig

public void setModeConfig(String modeConfig)
Specified by:
setModeConfig in interface LayoutTypePortlet

setModeEdit

public void setModeEdit(String modeEdit)
Specified by:
setModeEdit in interface LayoutTypePortlet

setModeEditDefaults

public void setModeEditDefaults(String modeEditDefaults)
Specified by:
setModeEditDefaults in interface LayoutTypePortlet

setModeEditGuest

public void setModeEditGuest(String modeEditGuest)
Specified by:
setModeEditGuest in interface LayoutTypePortlet

setModeHelp

public void setModeHelp(String modeHelp)
Specified by:
setModeHelp in interface LayoutTypePortlet

setModePreview

public void setModePreview(String modePreview)
Specified by:
setModePreview in interface LayoutTypePortlet

setModePrint

public void setModePrint(String modePrint)
Specified by:
setModePrint in interface LayoutTypePortlet

setPortletIds

public void setPortletIds(String columnId,
                          String portletIds)
Specified by:
setPortletIds in interface LayoutTypePortlet

setStateMax

public void setStateMax(String stateMax)
Specified by:
setStateMax in interface LayoutTypePortlet

setStateMin

public void setStateMin(String stateMin)
Specified by:
setStateMin in interface LayoutTypePortlet

addNestedColumn

protected void addNestedColumn(String columnId)

deletePortletSetup

protected void deletePortletSetup(String portletId)

getColumns

protected List<String> getColumns()

getNestedColumns

protected List<String> getNestedColumns()

getStaticPortletIds

protected String[] getStaticPortletIds(String position)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getStaticPortlets

protected List<Portlet> getStaticPortlets(String position)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

hasNonstaticPortletId

protected boolean hasNonstaticPortletId(String portletId)

hasNonstaticPortletId

protected boolean hasNonstaticPortletId(String columnId,
                                        String portletId)

hasStaticPortletId

protected boolean hasStaticPortletId(String columnId,
                                     String portletId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

onRemoveFromLayout

protected void onRemoveFromLayout(String portletId)
                           throws SystemException
Throws:
SystemException

Liferay 6.0.5