Class FileDirectoryManager

java.lang.Object
com.gigaspaces.security.fs.FileDirectoryManager
All Implemented Interfaces:
DirectoryManager

public class FileDirectoryManager extends Object implements DirectoryManager
A file based DirectoryManager responsible for managing users and roles stored in a file. The file is read on construction and written to on the call to close().
Since:
7.0.1
Author:
Moran Avigdor
  • Constructor Details

    • FileDirectoryManager

      public FileDirectoryManager(FileServiceAccessor fileServiceAccessor, boolean manageRolePrivileges, boolean manageUserPrivileges)
  • Method Details

    • getRoleManager

      public RoleManager getRoleManager()
      Description copied from interface: DirectoryManager
      A role manager for role-management based on the privileges granted to the directory manager.
      Specified by:
      getRoleManager in interface DirectoryManager
      Returns:
      a role manager for managing roles
    • getUserManager

      public UserManager getUserManager()
      Description copied from interface: DirectoryManager
      A user manager for user-management based on the privileges granted to the directory manager.
      Specified by:
      getUserManager in interface DirectoryManager
      Returns:
      a user manager for managing users
    • close

      public void close()
      Description copied from interface: DirectoryManager
      Close the resource used to store the user and role details.

      Implementors may choose to flush all gathered details, or remove any excess resources (database connections) that may have been opened upon construction.

      Specified by:
      close in interface DirectoryManager