com.silverpeas.look
Class LookSilverpeasV5Helper
java.lang.Object
com.silverpeas.look.LookSilverpeasV5Helper
- All Implemented Interfaces:
- LookHelper
public class LookSilverpeasV5Helper
- extends Object
- implements LookHelper
|
Method Summary |
boolean |
displayContextualPDC()
|
boolean |
displayPDCFrame()
|
boolean |
displayPDCInNavigationFrame()
|
boolean |
displaySpaceIcons()
|
String |
getComponentId()
|
String |
getComponentURL(String key)
|
String |
getComponentURL(String key,
String function)
|
String |
getDate()
|
String |
getDefaultSpaceId()
|
UserMenuDisplay |
getDisplayUserMenu()
|
protected GraphicElementFactory |
getGraphicElementFactory()
|
String |
getLanguage()
|
List<PublicationDetail> |
getLatestPublications(String spaceId,
int nbPublis)
|
String |
getMainFrame()
|
protected MainSessionController |
getMainSessionController()
|
int |
getNBConnectedUsers()
|
List<PublicationDetail> |
getNews(String spaceId)
|
protected OrganisationController |
getOrganisationController()
|
PublicationBm |
getPublicationBm()
|
boolean |
getSettings(String key)
|
boolean |
getSettings(String key,
boolean defaultValue)
|
int |
getSettings(String key,
int defaultValue)
|
String |
getSettings(String key,
String defaultValue)
|
List<Shortcut> |
getShortcuts(String id,
int nb)
Returns a list of shortcuts to display on a page (home page, heading page...) |
List<UserDetail> |
getSpaceAdmins(String spaceId)
|
DefaultSpaceHomePage |
getSpaceHomePage(String spaceId)
|
String |
getSpaceHomePage(String spaceId,
javax.servlet.http.HttpServletRequest request)
|
String |
getSpaceId()
|
String |
getSpaceId(String componentId)
|
String |
getSpaceWallPaper()
|
String |
getSpaceWithCSSToApply()
|
String |
getString(String key)
|
String |
getSubSpaceId()
|
TickerSettings |
getTickerSettings()
|
List<TopItem> |
getTopItems()
|
List<String> |
getTopSpaceIds()
|
String |
getURLOfLastVisitedCollaborativeSpace()
|
UserDetail |
getUserDetail()
|
UserFull |
getUserFull()
|
String |
getUserFullName()
|
String |
getUserFullName(String userId)
|
String |
getUserId()
|
List<PublicationDetail> |
getValidPublications(NodePK nodePK)
|
String |
getWallPaper(String spaceId)
|
void |
init(MainSessionController mainSessionController,
ResourceLocator resources)
|
boolean |
isAnonymousAccess()
|
boolean |
isAnonymousUser()
|
boolean |
isBackOfficeVisible()
|
boolean |
isDisplayPDCInHomePage()
|
boolean |
isEnableUFSContainsState()
|
boolean |
isMenuPersonalisationEnabled()
|
void |
setComponentId(String componentId)
|
void |
setComponentIdAndSpaceIds(String spaceId,
String subSpaceId,
String componentId)
|
void |
setDisplayUserMenu(UserMenuDisplay displayUserMenu)
|
void |
setMainFrame(String newMainFrame)
|
void |
setSpaceId(String spaceId)
|
void |
setSpaceIdAndSubSpaceId(String spaceId)
|
void |
setSubSpaceId(String subSpaceId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookSilverpeasV5Helper
@Deprecated
public LookSilverpeasV5Helper(MainSessionController mainSessionController,
ResourceLocator resources)
- Deprecated.
LookSilverpeasV5Helper
public LookSilverpeasV5Helper(javax.servlet.http.HttpSession session)
getSpaceId
public String getSpaceId()
- Specified by:
getSpaceId in interface LookHelper
setSpaceId
public void setSpaceId(String spaceId)
- Specified by:
setSpaceId in interface LookHelper
getSubSpaceId
public String getSubSpaceId()
- Specified by:
getSubSpaceId in interface LookHelper
setSubSpaceId
public void setSubSpaceId(String subSpaceId)
- Specified by:
setSubSpaceId in interface LookHelper
getComponentId
public String getComponentId()
- Specified by:
getComponentId in interface LookHelper
setComponentId
public void setComponentId(String componentId)
- Specified by:
setComponentId in interface LookHelper
setSpaceIdAndSubSpaceId
public void setSpaceIdAndSubSpaceId(String spaceId)
- Specified by:
setSpaceIdAndSubSpaceId in interface LookHelper
- 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 interface LookHelper
init
public final void init(MainSessionController mainSessionController,
ResourceLocator resources)
- Specified by:
init in interface LookHelper
isMenuPersonalisationEnabled
public boolean isMenuPersonalisationEnabled()
- Specified by:
isMenuPersonalisationEnabled in interface LookHelper
getMainSessionController
protected MainSessionController getMainSessionController()
getOrganisationController
protected OrganisationController getOrganisationController()
getGraphicElementFactory
protected GraphicElementFactory getGraphicElementFactory()
getUserFullName
public String getUserFullName(String userId)
- Specified by:
getUserFullName in interface LookHelper
getUserFullName
public String getUserFullName()
- Specified by:
getUserFullName in interface LookHelper
getUserId
public String getUserId()
- Specified by:
getUserId in interface LookHelper
getUserDetail
public UserDetail getUserDetail()
getUserFull
public UserFull getUserFull()
getLanguage
public String getLanguage()
- Specified by:
getLanguage in interface LookHelper
isAnonymousUser
public boolean isAnonymousUser()
- Specified by:
isAnonymousUser in interface LookHelper
displayPDCInNavigationFrame
public boolean displayPDCInNavigationFrame()
- Specified by:
displayPDCInNavigationFrame in interface LookHelper
displayPDCFrame
public boolean displayPDCFrame()
- Specified by:
displayPDCFrame in interface LookHelper
displayContextualPDC
public boolean displayContextualPDC()
- Specified by:
displayContextualPDC in interface LookHelper
displaySpaceIcons
public boolean displaySpaceIcons()
- Specified by:
displaySpaceIcons in interface LookHelper
getSpaceId
public String getSpaceId(String componentId)
- Specified by:
getSpaceId in interface LookHelper
getWallPaper
public String getWallPaper(String spaceId)
- Specified by:
getWallPaper in interface LookHelper
getNBConnectedUsers
public int getNBConnectedUsers()
- Specified by:
getNBConnectedUsers in interface LookHelper
isAnonymousAccess
public boolean isAnonymousAccess()
- Specified by:
isAnonymousAccess in interface LookHelper
getSettings
public boolean getSettings(String key)
- Specified by:
getSettings in interface LookHelper
getSettings
public boolean getSettings(String key,
boolean defaultValue)
- Specified by:
getSettings in interface LookHelper
getSettings
public String getSettings(String key,
String defaultValue)
- Specified by:
getSettings in interface LookHelper
getSettings
public int getSettings(String key,
int defaultValue)
- Specified by:
getSettings in interface LookHelper
getString
public String getString(String key)
- Specified by:
getString in interface LookHelper
isBackOfficeVisible
public boolean isBackOfficeVisible()
- Specified by:
isBackOfficeVisible in interface LookHelper
getTopItems
public List<TopItem> getTopItems()
- Specified by:
getTopItems in interface LookHelper
getTopSpaceIds
public List<String> getTopSpaceIds()
- Specified by:
getTopSpaceIds in interface LookHelper
getMainFrame
public String getMainFrame()
- Specified by:
getMainFrame in interface LookHelper
setMainFrame
public void setMainFrame(String newMainFrame)
- Specified by:
setMainFrame in interface LookHelper
getSpaceWallPaper
public String getSpaceWallPaper()
- Specified by:
getSpaceWallPaper in interface LookHelper
getSpaceWithCSSToApply
public String getSpaceWithCSSToApply()
- Specified by:
getSpaceWithCSSToApply in interface LookHelper
getComponentURL
public String getComponentURL(String key,
String function)
getComponentURL
public String getComponentURL(String key)
- Specified by:
getComponentURL in interface LookHelper
getDate
public String getDate()
- Specified by:
getDate in interface LookHelper
getDefaultSpaceId
public String getDefaultSpaceId()
- Specified by:
getDefaultSpaceId in interface LookHelper
getLatestPublications
public List<PublicationDetail> getLatestPublications(String spaceId,
int nbPublis)
- Specified by:
getLatestPublications in interface LookHelper
getValidPublications
public List<PublicationDetail> getValidPublications(NodePK nodePK)
- Specified by:
getValidPublications in interface LookHelper
getPublicationBm
public PublicationBm getPublicationBm()
getSpaceHomePage
public String getSpaceHomePage(String spaceId,
javax.servlet.http.HttpServletRequest request)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getDisplayUserMenu
public UserMenuDisplay getDisplayUserMenu()
- Specified by:
getDisplayUserMenu in interface LookHelper
- Returns:
- user favorite space menu display mode
setDisplayUserMenu
public void setDisplayUserMenu(UserMenuDisplay displayUserMenu)
- Specified by:
setDisplayUserMenu in interface LookHelper
- Parameters:
displayUserMenu -
isEnableUFSContainsState
public boolean isEnableUFSContainsState()
- Specified by:
isEnableUFSContainsState in interface LookHelper
- 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 interface LookHelper
- Returns:
- the displayPDCInHomePage
getSpaceHomePage
public DefaultSpaceHomePage getSpaceHomePage(String spaceId)
- Specified by:
getSpaceHomePage in interface LookHelper
getSpaceAdmins
public List<UserDetail> getSpaceAdmins(String spaceId)
getNews
public List<PublicationDetail> getNews(String spaceId)
getTickerSettings
public TickerSettings getTickerSettings()
- Specified by:
getTickerSettings in interface LookHelper
getURLOfLastVisitedCollaborativeSpace
public String getURLOfLastVisitedCollaborativeSpace()
Copyright © 2016 Silverpeas. All Rights Reserved.