MOTECH
1.0-pre-release-documentation
  • About MOTECH
  • Getting Started Implementers
  • Architecture and Technical Overviews
  • Modules
  • Developing the MOTECH Platform
  • Deployment
  • Demos
  • Contribute
  • Release Notes
  • Roadmap
  • MOTECH Mailing Lists
  • Javadoc
    • org.motechproject.admin.domain
    • org.motechproject.admin.mds
    • org.motechproject.admin.messages
    • org.motechproject.admin.service
    • org.motechproject.bundle.extender
    • org.motechproject.commons.api
    • org.motechproject.commons.api.json
    • org.motechproject.commons.api.model
    • org.motechproject.commons.date.exception
    • org.motechproject.commons.date.model
    • org.motechproject.commons.date.util
    • org.motechproject.commons.date.util.datetime
    • org.motechproject.commons.sql.service
    • org.motechproject.commons.sql.util
    • org.motechproject.config.core
    • org.motechproject.config.core.constants
    • org.motechproject.config.core.domain
    • org.motechproject.config.core.filestore
    • org.motechproject.config.core.filters
    • org.motechproject.config.core.service
    • org.motechproject.config.domain
    • org.motechproject.config.monitor
    • org.motechproject.config.service
    • org.motechproject.email.builder
    • org.motechproject.email.contract
    • org.motechproject.email.domain
    • org.motechproject.email.service
    • org.motechproject.event
    • org.motechproject.event.listener
    • org.motechproject.event.listener.annotations
    • org.motechproject.event.messaging
    • org.motechproject.mds.annotations
    • org.motechproject.mds.builder
    • org.motechproject.mds.config
    • org.motechproject.mds.display
    • org.motechproject.mds.domain
    • org.motechproject.mds.dto
    • org.motechproject.mds.enhancer
    • org.motechproject.mds.event
    • org.motechproject.mds.ex
    • org.motechproject.mds.ex.csv
    • org.motechproject.mds.ex.entity
    • org.motechproject.mds.ex.field
    • org.motechproject.mds.ex.lookup
    • org.motechproject.mds.ex.object
    • org.motechproject.mds.ex.rest
    • org.motechproject.mds.filter
    • org.motechproject.mds.helper
    • org.motechproject.mds.javassist
    • org.motechproject.mds.jdo
    • org.motechproject.mds.listener
    • org.motechproject.mds.listener.proxy
    • org.motechproject.mds.listener.register
    • org.motechproject.mds.lookup
    • org.motechproject.mds.performance.domain
    • org.motechproject.mds.performance.service
    • org.motechproject.mds.performance.service.impl
    • org.motechproject.mds.query
    • org.motechproject.mds.repository
    • org.motechproject.mds.rest
    • org.motechproject.mds.service
    • org.motechproject.mds.service.impl
    • org.motechproject.mds.service.impl.csv
    • org.motechproject.mds.service.impl.csv.writer
    • org.motechproject.mds.service.impl.history
    • org.motechproject.mds.util
    • org.motechproject.mdsmigration.java
    • org.motechproject.osgi.web
      • ApplicationContextTracker
      • BlueprintActivator
      • BlueprintApplicationContextTracker
      • BundleContextWrapper
      • BundleRegister
      • BundledJspView
      • HttpServiceTracker
      • HttpServiceTrackers
      • LocaleService
      • Log4JBundleLoader
      • ModuleRegistrationData
      • MotechOSGiWebApplicationContext
      • OSGiDispatcherServlet
      • SubmenuInfo
        • Constructors
        • Methods
      • UIFrameworkService
      • UIServiceTracker
      • UIServiceTrackers
    • org.motechproject.osgi.web.domain
    • org.motechproject.osgi.web.exception
    • org.motechproject.osgi.web.ext
    • org.motechproject.osgi.web.service
    • org.motechproject.osgi.web.settings
    • org.motechproject.osgi.web.util
    • org.motechproject.scheduler.builder
    • org.motechproject.scheduler.contract
    • org.motechproject.scheduler.exception
    • org.motechproject.scheduler.factory
    • org.motechproject.scheduler.service
    • org.motechproject.scheduler.service.impl
    • org.motechproject.security.annotations
    • org.motechproject.security.authentication
    • org.motechproject.security.builder
    • org.motechproject.security.constants
    • org.motechproject.security.domain
    • org.motechproject.security.ex
    • org.motechproject.security.model
    • org.motechproject.security.repository
    • org.motechproject.security.service
    • org.motechproject.security.validator
    • org.motechproject.server.api
    • org.motechproject.server.config
    • org.motechproject.server.config.domain
    • org.motechproject.server.config.service
    • org.motechproject.server.osgi.event
    • org.motechproject.server.osgi.status
    • org.motechproject.server.osgi.util
    • org.motechproject.server.startup
    • org.motechproject.server.ui.ex
    • org.motechproject.server.web.controller
    • org.motechproject.server.web.form
    • org.motechproject.server.web.helper
    • org.motechproject.server.web.validator
    • org.motechproject.tasks.annotations
    • org.motechproject.tasks.contract
    • org.motechproject.tasks.domain
    • org.motechproject.tasks.ex
    • org.motechproject.tasks.json
    • org.motechproject.tasks.repository
    • org.motechproject.tasks.service
    • org.motechproject.tasks.util
  • Acknowledgements
MOTECH
  • Docs »
  • Javadoc »
  • org.motechproject.osgi.web »
  • SubmenuInfo
  • Edit on GitHub

SubmenuInfo¶

public class SubmenuInfo¶

Class to encapsulate information about sub-menu links to be shown on UI. This represents a link shown on the left side of the UI.

Constructors¶

SubmenuInfo¶

public SubmenuInfo()¶

SubmenuInfo¶

public SubmenuInfo(String url)¶

Constructs an instance for a given url.

Parameters:
  • url – the url this links to

Methods¶

getCriticalMessage¶

public String getCriticalMessage()¶

Returns the critical message for this sub-menu, if it has been set.

Returns:the critical message for this link

getRoleForAccess¶

public List<String> getRoleForAccess()¶

Returns a list of permissions required to access this sub-menu item. It is required for the user to have at least permission from this, not all. This link will be hidden for users without the permissions.

Returns:the list of permissions for access

getUrl¶

public String getUrl()¶
Returns:the url this links to

isNeedsAttention¶

public boolean isNeedsAttention()¶
Returns:true if this sub-menu should be marked as requiring attention on the UI, false otherwise

setCriticalMessage¶

public void setCriticalMessage(String criticalMessage)¶

Sets the critical message for this sub-menu, it will displayed on the UI as a tooltip.

Parameters:
  • criticalMessage – the critical message for this link

setNeedsAttention¶

public void setNeedsAttention(boolean needsAttention)¶
Parameters:
  • needsAttention – true if this sub-menu should be marked as requiring attention on the UI, false otherwise

setRoleForAccess¶

public void setRoleForAccess(String roleForAccess)¶

setRoleForAccess¶

public void setRoleForAccess(List<String> roleForAccess)¶

Sets the list of permissions required to access this sub-menu item. It is required for the user to have at least permission from this, not all. This link will be hidden for users without the permissions.

Parameters:
  • roleForAccess – the list of permissions for access

setUrl¶

public void setUrl(String url)¶
Parameters:
  • url – the url this links to
Next Previous

© Copyright 2015, Grameen Foundation. Revision 67129893.

Built with Sphinx using a theme provided by Read the Docs.