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 protectedLookSilverpeasV5Helper(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:
getSpaceIdin classLookHelper
-
setSpaceId
public void setSpaceId(String spaceId)
- Specified by:
setSpaceIdin classLookHelper
-
getSubSpaceId
public String getSubSpaceId()
- Specified by:
getSubSpaceIdin classLookHelper
-
setSubSpaceId
public void setSubSpaceId(String subSpaceId)
- Specified by:
setSubSpaceIdin classLookHelper
-
getComponentId
public String getComponentId()
- Specified by:
getComponentIdin classLookHelper
-
setComponentId
public void setComponentId(String componentId)
- Specified by:
setComponentIdin classLookHelper
-
setSpaceIdAndSubSpaceId
public void setSpaceIdAndSubSpaceId(String spaceId)
- Specified by:
setSpaceIdAndSubSpaceIdin classLookHelper- Parameters:
spaceId- can be id of a space or a subspace
-
setComponentIdAndSpaceIds
public void setComponentIdAndSpaceIds(String spaceId, String subSpaceId, String componentId)
- Specified by:
setComponentIdAndSpaceIdsin classLookHelper
-
init
public final void init(MainSessionController mainSessionController, org.silverpeas.kernel.bundle.SettingBundle resources)
- Specified by:
initin classLookHelper
-
initLayoutConfiguration
public void initLayoutConfiguration()
- Specified by:
initLayoutConfigurationin classLookHelper
-
getLayoutConfiguration
public LayoutConfiguration getLayoutConfiguration()
- Specified by:
getLayoutConfigurationin classLookHelper
-
isMenuPersonalisationEnabled
public boolean isMenuPersonalisationEnabled()
- Specified by:
isMenuPersonalisationEnabledin classLookHelper
-
getMainSessionController
protected MainSessionController getMainSessionController()
-
getOrganisationController
protected OrganizationController getOrganisationController()
-
getGraphicElementFactory
protected Optional<GraphicElementFactory> getGraphicElementFactory()
-
getUserFullName
public String getUserFullName(String userId)
- Specified by:
getUserFullNamein classLookHelper
-
getUserFullName
public String getUserFullName()
- Specified by:
getUserFullNamein classLookHelper
-
getUserId
public String getUserId()
- Specified by:
getUserIdin classLookHelper
-
getUserDetail
public UserDetail getUserDetail()
- Specified by:
getUserDetailin classLookHelper
-
getUserFull
public UserFull getUserFull()
-
getLanguage
public String getLanguage()
- Specified by:
getLanguagein classLookHelper
-
getZoneId
public ZoneId getZoneId()
- Specified by:
getZoneIdin classLookHelper
-
isAnonymousUser
public boolean isAnonymousUser()
- Specified by:
isAnonymousUserin classLookHelper
-
isAccessGuest
public boolean isAccessGuest()
- Specified by:
isAccessGuestin classLookHelper
-
displayPDCInNavigationFrame
public boolean displayPDCInNavigationFrame()
- Specified by:
displayPDCInNavigationFramein classLookHelper
-
displayPDCFrame
public boolean displayPDCFrame()
- Specified by:
displayPDCFramein classLookHelper
-
displayContextualPDC
public boolean displayContextualPDC()
- Specified by:
displayContextualPDCin classLookHelper
-
displaySpaceIcons
public boolean displaySpaceIcons()
- Specified by:
displaySpaceIconsin classLookHelper
-
getSpaceId
public String getSpaceId(String componentId)
- Specified by:
getSpaceIdin classLookHelper
-
getWallPaper
public String getWallPaper(String spaceId)
- Specified by:
getWallPaperin classLookHelper
-
getNBConnectedUsers
public int getNBConnectedUsers()
- Specified by:
getNBConnectedUsersin classLookHelper
-
isAnonymousAccess
public boolean isAnonymousAccess()
- Specified by:
isAnonymousAccessin classLookHelper
-
getSettings
public boolean getSettings(String key)
- Specified by:
getSettingsin classLookHelper
-
getSettings
public boolean getSettings(String key, boolean defaultValue)
- Specified by:
getSettingsin classLookHelper
-
getSettings
public String getSettings(String key, String defaultValue)
- Specified by:
getSettingsin classLookHelper
-
getSettings
public int getSettings(String key, int defaultValue)
- Specified by:
getSettingsin classLookHelper
-
getLocalizedBundle
public org.silverpeas.kernel.bundle.LocalizationBundle getLocalizedBundle()
-
getString
public String getString(String key)
- Specified by:
getStringin classLookHelper
-
isBackOfficeVisible
public boolean isBackOfficeVisible()
- Specified by:
isBackOfficeVisiblein classLookHelper
-
getTopItems
public List<TopItem> getTopItems()
- Specified by:
getTopItemsin classLookHelper
-
getTopSpaceIds
public List<String> getTopSpaceIds()
- Specified by:
getTopSpaceIdsin classLookHelper
-
getMainFrame
public String getMainFrame()
- Specified by:
getMainFramein classLookHelper
-
setMainFrame
public void setMainFrame(String newMainFrame)
- Specified by:
setMainFramein classLookHelper
-
getSpaceWallPaper
public String getSpaceWallPaper()
- Specified by:
getSpaceWallPaperin classLookHelper
-
getSpaceWithCSSToApply
public String getSpaceWithCSSToApply()
- Specified by:
getSpaceWithCSSToApplyin classLookHelper
-
getComponentURL
public String getComponentURL(String key)
- Specified by:
getComponentURLin classLookHelper
-
getDate
public String getDate()
- Specified by:
getDatein classLookHelper
-
getDefaultSpaceId
public String getDefaultSpaceId()
- Specified by:
getDefaultSpaceIdin classLookHelper
-
getPublicationHelper
protected PublicationHelper getPublicationHelper() throws ClassNotFoundException, InstantiationException, IllegalAccessException
-
getLatestPublications
public List<PublicationDetail> getLatestPublications(String spaceId, int nbPublis)
- Specified by:
getLatestPublicationsin classLookHelper
-
getLatestPublications
public List<PublicationDetail> getLatestPublications(String spaceId, List<String> excludedComponents, int nbPublis)
- Specified by:
getLatestPublicationsin classLookHelper
-
getValidPublications
public List<PublicationDetail> getValidPublications(NodePK nodePK)
- Specified by:
getValidPublicationsin 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:
getDisplayUserMenuin classLookHelper- Returns:
- user favorite space menu display mode
-
setDisplayUserMenu
public void setDisplayUserMenu(UserMenuDisplay displayUserMenu)
- Specified by:
setDisplayUserMenuin classLookHelper
-
isEnableUFSContainsState
public boolean isEnableUFSContainsState()
- Specified by:
isEnableUFSContainsStatein 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:
isDisplayPDCInHomePagein classLookHelper- Returns:
- the displayPDCInHomePage
-
getSpaceHomePage
public DefaultSpaceHomePage getSpaceHomePage(String spaceId)
- Specified by:
getSpaceHomePagein classLookHelper
-
getSpaceAdmins
public List<UserDetail> getSpaceAdmins(String spaceId)
-
getNews
public List<PublicationDetail> getNews(String spaceId)
-
getTickerSettings
public TickerSettings getTickerSettings()
- Specified by:
getTickerSettingsin classLookHelper
-
getURLOfLastVisitedCollaborativeSpace
public String getURLOfLastVisitedCollaborativeSpace()
- Specified by:
getURLOfLastVisitedCollaborativeSpacein classLookHelper
-
getSettingsBundle
public org.silverpeas.kernel.bundle.SettingBundle getSettingsBundle()
-
-