Class WebPrivilegeHelper


  • public class WebPrivilegeHelper
    extends java.lang.Object
    This class is used to easily retrieve the localized name and description of a privilege from its enumeration in EnumDSSXMLPrivilegeTypes
    Since:
    MicroStrategy Web 9.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getDescription​(java.util.Locale locale, int privilegeType)
      Returns the localized description of a privilege by its enumeration
      static java.lang.String getName​(java.util.Locale locale, int privilegeType)
      Returns the localized name of a privilege by its enumeration
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebPrivilegeHelper

        public WebPrivilegeHelper()
    • Method Detail

      • getName

        public static java.lang.String getName​(java.util.Locale locale,
                                               int privilegeType)
        Returns the localized name of a privilege by its enumeration
        Parameters:
        locale - Locale used to localize privilege name
        privilegeType - int from EnumDSSXMLPrivilegeTypes
        Returns:
        String containing localized privilege name
      • getDescription

        public static java.lang.String getDescription​(java.util.Locale locale,
                                                      int privilegeType)
        Returns the localized description of a privilege by its enumeration
        Parameters:
        locale - Locale used to localize privilege name
        privilegeType - int from EnumDSSXMLPrivilegeTypes
        Returns:
        String containing localized privilege description