Class IdentityUtils

java.lang.Object
overit.geocallapp.utilities.system.IdentityUtils

public class IdentityUtils extends Object
The class contains all the utility methods for the Identity.
Since:
1.0
  • Method Details

    • getTeacher

      public static Teacher getTeacher(Identity id)
      Returns the teacher of the given identity.
      Parameters:
      id - Identity used to extract the language to instantiate the Teacher
      Returns:
      Teacher
      See Also:
    • hasModule

      public static boolean hasModule(Identity identity, String module)
      Says if the given module is installed.
      Parameters:
      identity - Identity used to check if the user has the module enabled
      module - the module that is to be checked for enablement
      Returns:
      true if the module is enabled