Package util

Class UserRoleUtil


  • public class UserRoleUtil
    extends java.lang.Object
    The UserRoleUtil provide utility function for converting string input to an enum for the user role variable
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static UserRole convertToEnum​(java.lang.String input)
      Convert from string input to UserRole enum variable
      • Methods inherited from class java.lang.Object

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

      • UserRoleUtil

        public UserRoleUtil()
        Construct an instance of UserRoleUtil
    • Method Detail

      • convertToEnum

        public static UserRole convertToEnum​(java.lang.String input)
        Convert from string input to UserRole enum variable
        Parameters:
        input - the string input of UserRole status from csv file
        Returns:
        the UserRole enum variable for code