Class PrincipalUtil


  • public class PrincipalUtil
    extends java.lang.Object
    A utility class used to manage Principal
    • Constructor Summary

      Constructors 
      Constructor Description
      PrincipalUtil()  
    • Method Summary

      Modifier and Type Method Description
      static boolean checkPermission​(ClientPrimaryDataEntity dataentry, java.lang.String username, java.lang.String methodname)  
      static boolean checkPermission​(ClientPrimaryDataEntity dataentry, java.lang.String principalname, java.lang.String username, java.lang.String methodname)  
      static java.security.Principal getInstance​(java.lang.String classname, java.lang.String username)
      From the classname and username to get a Principal Instance
      • Methods inherited from class java.lang.Object

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

      • PrincipalUtil

        public PrincipalUtil()
    • Method Detail

      • getInstance

        public static java.security.Principal getInstance​(java.lang.String classname,
                                                          java.lang.String username)
        From the classname and username to get a Principal Instance
        Parameters:
        classname - the class name for Principal
        username - the name of the user
        Returns:
        Principal
      • checkPermission

        public static boolean checkPermission​(ClientPrimaryDataEntity dataentry,
                                              java.lang.String principalname,
                                              java.lang.String username,
                                              java.lang.String methodname)
      • checkPermission

        public static boolean checkPermission​(ClientPrimaryDataEntity dataentry,
                                              java.lang.String username,
                                              java.lang.String methodname)