Skip navigation links
org.openmrs.annotation

Annotation Type Authorized

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element and Description
      boolean requireAll
      If set to true, will require that the user have all privileges listed in value.
      java.lang.String[] value
      Returns the list of privileges needed to access a method.
    • Element Detail

      • value

        public abstract java.lang.String[] value
        Returns the list of privileges needed to access a method. (i.e. "View Users"). Multiple privileges are compared with an "or" unless requireAll is set to true
        Returns:
        String[] The secure method attributes
        Default:
        {}
      • requireAll

        public abstract boolean requireAll
        If set to true, will require that the user have all privileges listed in value. if false, user only has to have one of the privileges. Defaults to false
        Returns:
        boolean true/false whether the privileges should be "and"ed together
        Default:
        false

Copyright © 2018 OpenMRS Inc.. All Rights Reserved.