|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.NavigationBean
public class NavigationBean
Bean providing access and management of the various global navigation mechanisms such as the My Home, Company Home, Guest Home toolbar shortcuts, breadcrumb and the current node id and associated properties.
Nested Class Summary | |
---|---|
class |
NavigationBean.NavigationBreadcrumbHandler
Class to handle breadcrumb interaction for top-level navigation pages |
Field Summary | |
---|---|
static java.lang.String |
BEAN_NAME
Public JSF Bean name |
protected ClientConfigElement |
clientConfig
Client configuration object |
protected org.alfresco.filesys.repo.ContentDiskInterface |
contentDiskDriver
CIFS content disk driver bean reference |
static java.lang.String |
LOCATION_COMPANY
constant values used by the toolbar location modelist control |
static java.lang.String |
LOCATION_GUEST
|
static java.lang.String |
LOCATION_HOME
|
static java.lang.String |
LOCATION_MYALFRESCO
|
static java.lang.String |
MSG_COMPANYHOME
|
static java.lang.String |
MSG_GUESTHOME
|
static java.lang.String |
MSG_MYALFRESCO
constant value representing the display lables for toolbar locations |
static java.lang.String |
MSG_MYHOME
|
Constructor Summary | |
---|---|
NavigationBean()
Default constructor |
Method Summary | |
---|---|
protected org.alfresco.service.cmr.security.MutableAuthenticationService |
getAuthService()
|
java.lang.String |
getCIFSServerPath(org.alfresco.jlan.server.filesys.DiskSharedDevice diskShare)
|
protected ClientConfigElement |
getClientConfig()
|
Node |
getCompanyHomeNode()
|
boolean |
getCompanyHomeVisible()
|
Node |
getCurrentNode()
|
java.lang.String |
getCurrentNodeId()
|
java.lang.String |
getCurrentNodeTemplate()
|
java.lang.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()
|
java.lang.String |
getHelpUrl()
|
boolean |
getInPortalServer()
|
boolean |
getIsGuest()
|
java.util.List |
getLocation()
|
protected org.alfresco.service.namespace.NamespaceService |
getNamespaceService()
|
java.util.Map |
getNodeProperties()
|
protected org.alfresco.service.cmr.repository.NodeService |
getNodeService()
|
protected org.alfresco.service.cmr.security.PermissionService |
getPermissionService()
|
org.alfresco.service.cmr.admin.RepoAdminService |
getRepoAdminService()
|
java.lang.String |
getRSSFeedURL()
|
int |
getRuleCount()
|
protected org.alfresco.service.cmr.rule.RuleService |
getRuleService()
|
SearchContext |
getSearchContext()
|
protected org.alfresco.service.cmr.search.SearchService |
getSearchService()
|
protected org.alfresco.jlan.server.config.ServerConfigurationAccessor |
getServerConfiguration()
|
boolean[] |
getShelfItemExpanded()
|
java.util.Map |
getTemplateModel()
Returns a model for use by a template on a space Dashboard page. |
java.lang.String |
getToolbarLocation()
|
java.lang.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(java.lang.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(org.alfresco.service.cmr.security.MutableAuthenticationService authService)
|
void |
setContentDiskDriver(org.alfresco.filesys.repo.ContentDiskInterface contentDiskDriver)
|
void |
setCurrentNodeId(java.lang.String currentNodeId)
Set the node Id of the current folder/space container node. |
void |
setHelpUrl(java.lang.String helpUrl)
|
void |
setLocation(java.util.List 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(org.alfresco.service.cmr.admin.RepoAdminService repoAdminService)
|
void |
setRuleService(org.alfresco.service.cmr.rule.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(java.lang.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(javax.faces.event.ActionEvent event)
Action handler called after a Shelf Group has had its expanded state toggled by the user |
void |
toggleShelf(javax.faces.event.ActionEvent event)
Action handler to toggle the expanded state of the shelf. |
void |
toolbarLocationChanged(javax.faces.event.ActionEvent event)
Action to change the toolbar location Currently this will changed the location from Company to the users Home space |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BEAN_NAME
public static final java.lang.String LOCATION_COMPANY
public static final java.lang.String LOCATION_HOME
public static final java.lang.String LOCATION_GUEST
public static final java.lang.String LOCATION_MYALFRESCO
public static final java.lang.String MSG_MYALFRESCO
public static final java.lang.String MSG_MYHOME
public static final java.lang.String MSG_COMPANYHOME
public static final java.lang.String MSG_GUESTHOME
protected org.alfresco.filesys.repo.ContentDiskInterface contentDiskDriver
protected ClientConfigElement clientConfig
Constructor Detail |
---|
public NavigationBean()
Method Detail |
---|
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(org.alfresco.service.cmr.admin.RepoAdminService repoAdminService)
public org.alfresco.service.cmr.admin.RepoAdminService getRepoAdminService()
public void setRuleService(org.alfresco.service.cmr.rule.RuleService ruleService)
ruleService
- The ruleService to useprotected org.alfresco.service.cmr.rule.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(org.alfresco.filesys.repo.ContentDiskInterface contentDiskDriver)
contentDiskDriver
- The contentDiskDriver to set.protected ClientConfigElement getClientConfig()
public void setUserPreferencesBean(UserPreferencesBean preferences)
preferences
- The UserPreferencesBean to setpublic void setAuthenticationService(org.alfresco.service.cmr.security.MutableAuthenticationService authService)
authService
- The AuthenticationService to set.protected org.alfresco.service.cmr.security.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 java.lang.String getWorkAreaWidth()
public boolean[] getShelfItemExpanded()
public void setShelfItemExpanded(boolean[] shelfItemExpanded)
shelfItemExpanded
- The array containing the expanded state of the shelf itemspublic java.lang.String getToolbarLocation()
public void setToolbarLocation(java.lang.String location)
location
- The toolbar Location to set.public void processToolbarLocation(java.lang.String location, boolean navigate)
location
- Toolbar location constantnavigate
- True to perform navigation, false otherwisepublic java.lang.String getHelpUrl()
public void setHelpUrl(java.lang.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 java.lang.String getCurrentNodeId()
public void setCurrentNodeId(java.lang.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 java.lang.String getCurrentNodeTemplate()
public java.lang.String getCurrentNodeWebscript()
public java.util.Map getTemplateModel()
public void resetCurrentNodeProperties()
public java.util.Map getNodeProperties()
public Node getCurrentNode()
public boolean isCreateChildrenPermissionEnabled()
public java.util.List getLocation()
public void setLocation(java.util.List 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(javax.faces.event.ActionEvent event)
public void shelfGroupToggled(javax.faces.event.ActionEvent event)
public void toolbarLocationChanged(javax.faces.event.ActionEvent event)
public java.lang.String getCIFSServerPath(org.alfresco.jlan.server.filesys.DiskSharedDevice diskShare)
diskShare
- Filesystem shared device
public boolean isRSSFeed()
public java.lang.String getRSSFeedURL()
public boolean isAllowUserGroupAdmin()
public boolean isAllowUserConfig()
public boolean isAllowUserChangePassword()
public boolean isTeamMode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |