public class NavigationBean extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
NavigationBean.NavigationBreadcrumbHandler
Class to handle breadcrumb interaction for top-level navigation pages
|
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME
Public JSF Bean name
|
protected ClientConfigElement |
clientConfig
Client configuration object
|
protected ContentDiskInterface |
contentDiskDriver
CIFS content disk driver bean reference
|
static String |
LOCATION_COMPANY
constant values used by the toolbar location modelist control
|
static String |
LOCATION_GUEST |
static String |
LOCATION_HOME |
static String |
LOCATION_MYALFRESCO |
static String |
MSG_COMPANYHOME |
static String |
MSG_GUESTHOME |
static String |
MSG_MYALFRESCO
constant value representing the display lables for toolbar locations
|
static String |
MSG_MYHOME |
Constructor and Description |
---|
NavigationBean()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected MutableAuthenticationService |
getAuthService() |
String |
getCIFSServerPath(org.alfresco.jlan.server.filesys.DiskSharedDevice diskShare) |
protected ClientConfigElement |
getClientConfig() |
Node |
getCompanyHomeNode() |
boolean |
getCompanyHomeVisible() |
Node |
getCurrentNode() |
String |
getCurrentNodeId() |
String |
getCurrentNodeTemplate() |
String |
getCurrentNodeWebscript() |
User |
getCurrentUser() |
Node |
getDispatchContextNode()
Returns the node currently set in the dispatch context
|
Node |
getGuestHomeNode() |
boolean |
getGuestHomeVisible() |
boolean |
getHasCustomView() |
boolean |
getHasTemplateView() |
boolean |
getHasWebscriptView() |
String |
getHelpUrl() |
boolean |
getInPortalServer() |
boolean |
getIsGuest() |
List<IBreadcrumbHandler> |
getLocation() |
protected org.alfresco.service.namespace.NamespaceService |
getNamespaceService() |
Map<String,Object> |
getNodeProperties() |
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
protected org.alfresco.service.cmr.security.PermissionService |
getPermissionService() |
RepoAdminService |
getRepoAdminService() |
String |
getRSSFeedURL() |
int |
getRuleCount() |
protected RuleService |
getRuleService() |
SearchContext |
getSearchContext() |
protected org.alfresco.service.cmr.search.SearchService |
getSearchService() |
protected org.alfresco.jlan.server.config.ServerConfigurationAccessor |
getServerConfiguration() |
boolean[] |
getShelfItemExpanded() |
Map |
getTemplateModel()
Returns a model for use by a template on a space Dashboard page.
|
String |
getToolbarLocation() |
String |
getWorkAreaWidth()
Return the width of the main work area depending on the visibility of the Shelf panel
|
boolean |
isAllowUserChangePassword() |
boolean |
isAllowUserConfig() |
boolean |
isAllowUserGroupAdmin() |
boolean |
isCreateChildrenPermissionEnabled() |
boolean |
isRSSFeed() |
boolean |
isShelfExpanded()
Return the expanded state of the Shelf panel wrapper component
|
boolean |
isTeamMode() |
void |
processToolbarLocation(String location,
boolean navigate)
Process the selected toolbar location.
|
void |
resetCurrentNodeProperties()
Clear state so that the current node properties cache for the next time they are requested
|
void |
resetDispatchContext()
Resets the dispatch context
|
void |
setAuthenticationService(MutableAuthenticationService authService) |
void |
setContentDiskDriver(ContentDiskInterface contentDiskDriver) |
void |
setCurrentNodeId(String currentNodeId)
Set the node Id of the current folder/space container node.
|
void |
setHelpUrl(String helpUrl) |
void |
setLocation(List<IBreadcrumbHandler> location) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setRepoAdminService(RepoAdminService repoAdminService) |
void |
setRuleService(RuleService ruleService) |
void |
setSearchContext(SearchContext searchContext) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
setServerConfiguration(org.alfresco.jlan.server.config.ServerConfigurationAccessor serverConfiguration) |
void |
setShelfExpanded(boolean expanded)
Set the expanded state of the Shelf panel wrapper component
|
void |
setShelfItemExpanded(boolean[] shelfItemExpanded) |
void |
setToolbarLocation(String location) |
void |
setupDispatchContext(Node node)
Sets up the dispatch context so that the navigation handler knows
what object is being acted upon
|
void |
setUserPreferencesBean(UserPreferencesBean preferences) |
void |
shelfGroupToggled(ActionEvent event)
Action handler called after a Shelf Group has had its expanded state toggled by the user
|
void |
toggleShelf(ActionEvent event)
Action handler to toggle the expanded state of the shelf.
|
void |
toolbarLocationChanged(ActionEvent event)
Action to change the toolbar location
Currently this will changed the location from Company to the users Home space
|
public static final String BEAN_NAME
public static final String LOCATION_COMPANY
public static final String LOCATION_HOME
public static final String LOCATION_GUEST
public static final String LOCATION_MYALFRESCO
public static final String MSG_MYALFRESCO
public static final String MSG_MYHOME
public static final String MSG_COMPANYHOME
public static final String MSG_GUESTHOME
protected ContentDiskInterface contentDiskDriver
protected ClientConfigElement clientConfig
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService
- The nodeService to set.protected org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
searchService
- The searchService to set.protected org.alfresco.service.cmr.search.SearchService getSearchService()
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
namespaceService
- The namespaceService to set.protected org.alfresco.service.namespace.NamespaceService getNamespaceService()
public void setRepoAdminService(RepoAdminService repoAdminService)
public RepoAdminService getRepoAdminService()
public void setRuleService(RuleService ruleService)
ruleService
- The ruleService to useprotected RuleService getRuleService()
public void setServerConfiguration(org.alfresco.jlan.server.config.ServerConfigurationAccessor serverConfiguration)
serverConfiguration
- The serverConfiguration to set.protected org.alfresco.jlan.server.config.ServerConfigurationAccessor getServerConfiguration()
public void setContentDiskDriver(ContentDiskInterface contentDiskDriver)
contentDiskDriver
- The contentDiskDriver to set.protected ClientConfigElement getClientConfig()
public void setUserPreferencesBean(UserPreferencesBean preferences)
preferences
- The UserPreferencesBean to setpublic void setAuthenticationService(MutableAuthenticationService authService)
authService
- The AuthenticationService to set.protected MutableAuthenticationService getAuthService()
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
permissionService
- The PermissionService to set.protected org.alfresco.service.cmr.security.PermissionService getPermissionService()
public User getCurrentUser()
public boolean getInPortalServer()
public boolean isShelfExpanded()
public void setShelfExpanded(boolean expanded)
expanded
- true to expanded the Shelf panel area, false to hide itpublic String getWorkAreaWidth()
public boolean[] getShelfItemExpanded()
public void setShelfItemExpanded(boolean[] shelfItemExpanded)
shelfItemExpanded
- The array containing the expanded state of the shelf itemspublic String getToolbarLocation()
public void setToolbarLocation(String location)
location
- The toolbar Location to set.public void processToolbarLocation(String location, boolean navigate)
location
- Toolbar location constantnavigate
- True to perform navigation, false otherwisepublic String getHelpUrl()
public void setHelpUrl(String helpUrl)
helpUrl
- The helpUrl to set.public int getRuleCount()
public SearchContext getSearchContext()
public void setSearchContext(SearchContext searchContext)
searchContext
- The search context object to set or null to clear search.public String getCurrentNodeId()
public void setCurrentNodeId(String currentNodeId)
Setting this value causes the UI to update and display the specified node as current.
currentNodeId
- The currently browsing node Id.public boolean getHasCustomView()
public boolean getHasTemplateView()
public boolean getHasWebscriptView()
public String getCurrentNodeTemplate()
public String getCurrentNodeWebscript()
public Map getTemplateModel()
public void resetCurrentNodeProperties()
public Map<String,Object> getNodeProperties()
public Node getCurrentNode()
public boolean isCreateChildrenPermissionEnabled()
public List<IBreadcrumbHandler> getLocation()
public void setLocation(List<IBreadcrumbHandler> location)
location
- The UI location representation to set.public boolean getIsGuest()
public void setupDispatchContext(Node node)
node
- The node to be added to the dispatch contextpublic void resetDispatchContext()
public Node getDispatchContextNode()
public Node getCompanyHomeNode()
public Node getGuestHomeNode()
public boolean getCompanyHomeVisible()
public boolean getGuestHomeVisible()
public void toggleShelf(ActionEvent event)
public void shelfGroupToggled(ActionEvent event)
public void toolbarLocationChanged(ActionEvent event)
public String getCIFSServerPath(org.alfresco.jlan.server.filesys.DiskSharedDevice diskShare)
diskShare
- Filesystem shared devicepublic boolean isRSSFeed()
public String getRSSFeedURL()
public boolean isAllowUserGroupAdmin()
public boolean isAllowUserConfig()
public boolean isAllowUserChangePassword()
public boolean isTeamMode()
Copyright © 2005–2017 Alfresco Software. All rights reserved.