MOTECH
latest
  • About MOTECH
  • MOTECH’s Current Capabilities
  • Getting Started Implementers
  • Architecture and Technical Overviews
  • Modules
  • Developing the MOTECH Platform
  • Deployment
  • Demos
  • Contribute
  • Release Notes
  • Packaging the MOTECH Platform
  • 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
    • org.motechproject.config.core.constants
    • org.motechproject.config.core.domain
    • org.motechproject.config.core.exception
    • org.motechproject.config.core.filters
    • org.motechproject.config.core.service
    • org.motechproject.config.core.utils
    • org.motechproject.config.core.validator
    • org.motechproject.config.domain
    • org.motechproject.config.mds
    • org.motechproject.config.service
    • org.motechproject.email.builder
    • org.motechproject.email.domain
    • org.motechproject.email.exception
    • 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.config
    • org.motechproject.mds.display
    • org.motechproject.mds.domain
    • org.motechproject.mds.dto
    • org.motechproject.mds.entityinfo
    • org.motechproject.mds.event
    • org.motechproject.mds.exception
    • org.motechproject.mds.exception.action
    • org.motechproject.mds.exception.audit
    • org.motechproject.mds.exception.csv
    • org.motechproject.mds.exception.dataprovider
    • org.motechproject.mds.exception.entity
    • org.motechproject.mds.exception.field
    • org.motechproject.mds.exception.importexport
    • org.motechproject.mds.exception.init
    • org.motechproject.mds.exception.jdo
    • org.motechproject.mds.exception.lookup
    • org.motechproject.mds.exception.object
    • org.motechproject.mds.exception.rest
    • org.motechproject.mds.exception.scheduler
    • org.motechproject.mds.exception.type
    • org.motechproject.mds.filter
    • org.motechproject.mds.helper
    • org.motechproject.mds.helper.bundle
    • org.motechproject.mds.javassist
    • org.motechproject.mds.jdo
    • org.motechproject.mds.listener
    • org.motechproject.mds.listener.proxy
    • org.motechproject.mds.listener.records
    • 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.history
    • org.motechproject.mds.tasks
    • org.motechproject.mds.util
    • org.motechproject.mds.web.domain
    • org.motechproject.mds.web.service
    • org.motechproject.mdsmigration.java
    • org.motechproject.osgi.web
      • BundleContextWrapper
      • BundledJspView
      • ModuleRegistrationData
      • MotechOSGiWebApplicationContext
      • SubmenuInfo
        • Constructors
        • Methods
    • org.motechproject.osgi.web.domain
    • org.motechproject.osgi.web.exception
    • org.motechproject.osgi.web.extension
    • org.motechproject.osgi.web.service
    • org.motechproject.osgi.web.settings
    • org.motechproject.osgi.web.tracker
    • 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.tasks
    • org.motechproject.security.authentication
    • org.motechproject.security.constants
    • org.motechproject.security.domain
    • org.motechproject.security.exception
    • org.motechproject.security.mds
    • org.motechproject.security.model
    • org.motechproject.security.service
    • org.motechproject.security.validator
    • org.motechproject.server.commons
    • org.motechproject.server.osgi.event
    • org.motechproject.server.osgi.status
    • org.motechproject.server.osgi.util
    • org.motechproject.server.service
    • 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.contract.builder
    • org.motechproject.tasks.contract.json
    • org.motechproject.tasks.domain
    • org.motechproject.tasks.domain.enums
    • org.motechproject.tasks.domain.mds
    • org.motechproject.tasks.domain.mds.channel
    • org.motechproject.tasks.domain.mds.channel.builder
    • org.motechproject.tasks.domain.mds.task
    • org.motechproject.tasks.domain.mds.task.builder
    • org.motechproject.tasks.dto
    • org.motechproject.tasks.exception
    • org.motechproject.tasks.json
    • org.motechproject.tasks.repository
    • org.motechproject.tasks.service
    • org.motechproject.tasks.service.osgi
  • Acknowledgements
  • Frequently Asked Questions
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 f979c999.

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