Class TeacherDuty

java.lang.Object
overit.geocall.lang.TeacherDuty
All Implemented Interfaces:
Serializable

public class TeacherDuty extends Object implements Serializable
This class manages the TeacherDuty, with its own name and dictionary
See Also:
  • Field Details

    • name

      protected String name
    • lang

      protected String lang
    • tableSuffix

      protected String tableSuffix
    • type

      protected LangType type
    • belongingLayer

      protected String belongingLayer
    • identityLayer

      protected String identityLayer
    • factory

      protected Long factory
    • maxDim

      protected int maxDim
  • Constructor Details

    • TeacherDuty

      public TeacherDuty(String name, String lang, String tableSuffix, LangType type, String belongingLayer, Identity id, int maxDim)
      Constructor for TeacherDuty
      Parameters:
      name - Name of the teacher
      lang - Name of the dictionary that must be used, it can be extracted from the Identity
      tableSuffix - Suffix used for the names of the foreign tables, the ones that contains the fields in foreign languages
      type - The LangType that contains the configuration for the type of translations (full or partial) or the type of the shortcuts
      belongingLayer - The applicative package
      id - the Identity
      maxDim - Maximum dimension of the translations cache
  • Method Details

    • getTeacher

      public Teacher getTeacher()
      Returns the Teacher
      Returns:
      The Teacher
    • getName

      public String getName()
      Returns the name
      Returns:
      The name
    • getLang

      public String getLang()
      Returns the language
      Returns:
      The language
    • getTableSuffix

      public String getTableSuffix()
      Returns the table suffix
      Returns:
      The table suffix
    • getType

      public LangType getType()
      Returns the LangType
      Returns:
      The LangType
    • getBelongingLayer

      public String getBelongingLayer()
      Returns the package
      Returns:
      The package
    • getIdentityLayer

      public String getIdentityLayer()
      Returns the package for the user currently logged in the application
      Returns:
      The package associated to the user
    • getFactory

      public Long getFactory()
      Returns the factory id
      Returns:
      The factory id
    • getMaxDim

      public int getMaxDim()
      Returns the maximum dimension of the translations cache
      Returns:
      The maximum dimension of the translations cache