Package org.silverpeas.core.web.look
Class LookSilverpeasV5Helper
- java.lang.Object
-
- org.silverpeas.core.web.look.LookHelper
-
- org.silverpeas.core.web.look.LookSilverpeasV5Helper
-
public class LookSilverpeasV5Helper extends LookHelper
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.look.LookHelper
SESSION_ATT
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LookSilverpeasV5Helper(javax.servlet.http.HttpSession session)
Constructs a new LookSilverpeasV5Helper instance for the specified session.
-
Method Summary
-
Methods inherited from class org.silverpeas.core.web.look.LookHelper
getLookHelper, isConnectedUsersDisplayEnabled, isDirectoryDisplayEnabled, newLookHelper
-
-
-
-
Method Detail
-
getSpaceId
public String getSpaceId()
- Specified by:
getSpaceId
in classLookHelper
-
setSpaceId
public void setSpaceId(String spaceId)
- Specified by:
setSpaceId
in classLookHelper
-
getSubSpaceId
public String getSubSpaceId()
- Specified by:
getSubSpaceId
in classLookHelper
-
setSubSpaceId
public void setSubSpaceId(String subSpaceId)
- Specified by:
setSubSpaceId
in classLookHelper
-
getComponentId
public String getComponentId()
- Specified by:
getComponentId
in classLookHelper
-
setComponentId
public void setComponentId(String componentId)
- Specified by:
setComponentId
in classLookHelper
-
setSpaceIdAndSubSpaceId
public void setSpaceIdAndSubSpaceId(String spaceId)
- Specified by:
setSpaceIdAndSubSpaceId
in classLookHelper
- Parameters:
spaceId
- can be id of a space or a subspace
-
setComponentIdAndSpaceIds
public void setComponentIdAndSpaceIds(String spaceId, String subSpaceId, String componentId)
- Specified by:
setComponentIdAndSpaceIds
in classLookHelper
-
init
public final void init(MainSessionController mainSessionController, org.silverpeas.kernel.bundle.SettingBundle resources)
- Specified by:
init
in classLookHelper
-
initLayoutConfiguration
public void initLayoutConfiguration()
- Specified by:
initLayoutConfiguration
in classLookHelper
-
getLayoutConfiguration
public LayoutConfiguration getLayoutConfiguration()
- Specified by:
getLayoutConfiguration
in classLookHelper
-
isMenuPersonalisationEnabled
public boolean isMenuPersonalisationEnabled()
- Specified by:
isMenuPersonalisationEnabled
in classLookHelper
-
getMainSessionController
protected MainSessionController getMainSessionController()
-
getOrganisationController
protected OrganizationController getOrganisationController()
-
getGraphicElementFactory
protected Optional<GraphicElementFactory> getGraphicElementFactory()
-
getUserFullName
public String getUserFullName(String userId)
- Specified by:
getUserFullName
in classLookHelper
-
getUserFullName
public String getUserFullName()
- Specified by:
getUserFullName
in classLookHelper
-
getUserId
public String getUserId()
- Specified by:
getUserId
in classLookHelper
-
getUserDetail
public UserDetail getUserDetail()
- Specified by:
getUserDetail
in classLookHelper
-
getUserFull
public UserFull getUserFull()
-
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in classLookHelper
-
getZoneId
public ZoneId getZoneId()
- Specified by:
getZoneId
in classLookHelper
-
isAnonymousUser
public boolean isAnonymousUser()
- Specified by:
isAnonymousUser
in classLookHelper
-
isAccessGuest
public boolean isAccessGuest()
- Specified by:
isAccessGuest
in classLookHelper
-
displayPDCInNavigationFrame
public boolean displayPDCInNavigationFrame()
- Specified by:
displayPDCInNavigationFrame
in classLookHelper
-
displayPDCFrame
public boolean displayPDCFrame()
- Specified by:
displayPDCFrame
in classLookHelper
-
displayContextualPDC
public boolean displayContextualPDC()
- Specified by:
displayContextualPDC
in classLookHelper
-
displaySpaceIcons
public boolean displaySpaceIcons()
- Specified by:
displaySpaceIcons
in classLookHelper
-
getSpaceId
public String getSpaceId(String componentId)
- Specified by:
getSpaceId
in classLookHelper
-
getWallPaper
public String getWallPaper(String spaceId)
- Specified by:
getWallPaper
in classLookHelper
-
getNBConnectedUsers
public int getNBConnectedUsers()
- Specified by:
getNBConnectedUsers
in classLookHelper
-
isAnonymousAccess
public boolean isAnonymousAccess()
- Specified by:
isAnonymousAccess
in classLookHelper
-
getSettings
public boolean getSettings(String key)
- Specified by:
getSettings
in classLookHelper
-
getSettings
public boolean getSettings(String key, boolean defaultValue)
- Specified by:
getSettings
in classLookHelper
-
getSettings
public String getSettings(String key, String defaultValue)
- Specified by:
getSettings
in classLookHelper
-
getSettings
public int getSettings(String key, int defaultValue)
- Specified by:
getSettings
in classLookHelper
-
getLocalizedBundle
public org.silverpeas.kernel.bundle.LocalizationBundle getLocalizedBundle()
-
getString
public String getString(String key)
- Specified by:
getString
in classLookHelper
-
isBackOfficeVisible
public boolean isBackOfficeVisible()
- Specified by:
isBackOfficeVisible
in classLookHelper
-
getTopItems
public List<TopItem> getTopItems()
- Specified by:
getTopItems
in classLookHelper
-
getTopSpaceIds
public List<String> getTopSpaceIds()
- Specified by:
getTopSpaceIds
in classLookHelper
-
getMainFrame
public String getMainFrame()
- Specified by:
getMainFrame
in classLookHelper
-
setMainFrame
public void setMainFrame(String newMainFrame)
- Specified by:
setMainFrame
in classLookHelper
-
getSpaceWallPaper
public String getSpaceWallPaper()
- Specified by:
getSpaceWallPaper
in classLookHelper
-
getSpaceWithCSSToApply
public String getSpaceWithCSSToApply()
- Specified by:
getSpaceWithCSSToApply
in classLookHelper
-
getComponentURL
public String getComponentURL(String key)
- Specified by:
getComponentURL
in classLookHelper
-
getDate
public String getDate()
- Specified by:
getDate
in classLookHelper
-
getDefaultSpaceId
public String getDefaultSpaceId()
- Specified by:
getDefaultSpaceId
in classLookHelper
-
getPublicationHelper
protected PublicationHelper getPublicationHelper() throws ClassNotFoundException, InstantiationException, IllegalAccessException
-
getLatestPublications
public List<PublicationDetail> getLatestPublications(String spaceId, int nbPublis)
- Specified by:
getLatestPublications
in classLookHelper
-
getLatestPublications
public List<PublicationDetail> getLatestPublications(String spaceId, List<String> excludedComponents, int nbPublis)
- Specified by:
getLatestPublications
in classLookHelper
-
getValidPublications
public List<PublicationDetail> getValidPublications(NodePK nodePK)
- Specified by:
getValidPublications
in classLookHelper
-
getPublicationService
public PublicationService getPublicationService()
-
getSpaceHomePage
public String getSpaceHomePage(String spaceId, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
getDisplayUserMenu
public UserMenuDisplay getDisplayUserMenu()
- Specified by:
getDisplayUserMenu
in classLookHelper
- Returns:
- user favorite space menu display mode
-
setDisplayUserMenu
public void setDisplayUserMenu(UserMenuDisplay displayUserMenu)
- Specified by:
setDisplayUserMenu
in classLookHelper
-
isEnableUFSContainsState
public boolean isEnableUFSContainsState()
- Specified by:
isEnableUFSContainsState
in classLookHelper
- Returns:
- true if displaying three states, false if displaying two states
-
getShortcuts
public List<Shortcut> getShortcuts(String id, int nb)
Returns a list of shortcuts to display on a page (home page, heading page...)- Parameters:
id
- identify the area of shorcutsnb
- the number of shortcuts to retrieve- Returns:
- a List of Shorcut
-
isDisplayPDCInHomePage
public boolean isDisplayPDCInHomePage()
- Specified by:
isDisplayPDCInHomePage
in classLookHelper
- Returns:
- the displayPDCInHomePage
-
getSpaceHomePage
public DefaultSpaceHomePage getSpaceHomePage(String spaceId)
- Specified by:
getSpaceHomePage
in classLookHelper
-
getSpaceAdmins
public List<UserDetail> getSpaceAdmins(String spaceId)
-
getNews
public List<PublicationDetail> getNews(String spaceId)
-
getTickerSettings
public TickerSettings getTickerSettings()
- Specified by:
getTickerSettings
in classLookHelper
-
getURLOfLastVisitedCollaborativeSpace
public String getURLOfLastVisitedCollaborativeSpace()
- Specified by:
getURLOfLastVisitedCollaborativeSpace
in classLookHelper
-
getSettingsBundle
public org.silverpeas.kernel.bundle.SettingBundle getSettingsBundle()
-
-