Package com.microstrategy.utils
Class WebPrivilegeHelper
- java.lang.Object
-
- com.microstrategy.utils.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 inEnumDSSXMLPrivilegeTypes
- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description WebPrivilegeHelper()
-
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 enumerationstatic java.lang.String
getName(java.util.Locale locale, int privilegeType)
Returns the localized name of a privilege by its enumeration
-
-
-
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 nameprivilegeType
- int fromEnumDSSXMLPrivilegeTypes
- 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 nameprivilegeType
- int fromEnumDSSXMLPrivilegeTypes
- Returns:
- String containing localized privilege description
-
-