Class UserCache


public class UserCache extends Cache<UserCache>
  • Constructor Details

    • UserCache

      public UserCache()
  • Method Details

    • getUser

      public static User getUser(int id)
    • getUserMap

      public static Map<Integer,User> getUserMap()
    • getUser

      public static User getUser(String login)
    • getUserList

      public static List<User> getUserList()
    • getActiveUsers

      public static Collection<User> getActiveUsers()
    • getUserGroup

      public static Group getUserGroup(int groupId)
    • getUserGroupChildCount

      public static int getUserGroupChildCount(int groupId)
    • getPerm

      public static ParameterMap getPerm(int userId, String action)
    • getUserList

      public static List<User> getUserList(Set<Integer> groupIds)
    • getUserGroupChildSet

      public static Set<Group> getUserGroupChildSet(int groupId)
    • getUserGroupChildFullSet

      public static Set<Group> getUserGroupChildFullSet(int groupId)
    • getUserGroupList

      public static List<Group> getUserGroupList()
    • getUserGroupFullTitledList

      public static List<Group> getUserGroupFullTitledList()
    • getUserGroupMap

      public static Map<Integer,Group> getUserGroupMap()
    • getUserGroupFullTitledMap

      public static Map<Integer,Group> getUserGroupFullTitledMap()
    • getUserPermsetList

      public static List<Permset> getUserPermsetList()
    • getUserPermsetMap

      public static Map<Integer,Permset> getUserPermsetMap()
    • getAllPermTree

      public static List<PermissionNode> getAllPermTree()
    • flush

      public static void flush(Connection con)
    • getGroupPath

      public static List<Group> getGroupPath(int id)
    • getUserGroupWithPath

      public static String getUserGroupWithPath(Map<Integer,Group> groupMap, int id, boolean withId)
      "Возвращает полный путь к корневой группе в виде строки (например: Администратор -> Помощник -> Помощник помощника)"
      Parameters:
      id - группы
      Returns:
      Строка с полным путем к корневой группе, либо title группы, если нет родительской группы
    • getUserGroupList

      public static List<UserGroup> getUserGroupList(int id)
    • getUserGroupList

      public static List<UserGroup> getUserGroupList(int id, Date actualDate)
    • getUserGroupList

      public static List<UserGroup> getUserGroupList(int id, int parentId, Date actualDate)
    • newInstance

      protected UserCache newInstance()
      Specified by:
      newInstance in class Cache<UserCache>