Package com.gigaspaces.security.fs
Class FileDirectoryManager
java.lang.Object
com.gigaspaces.security.fs.FileDirectoryManager
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionFileDirectoryManager(FileServiceAccessor fileServiceAccessor, boolean manageRolePrivileges, boolean manageUserPrivileges) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the resource used to store the user and role details.A role manager for role-management based on the privileges granted to the directory manager.A user manager for user-management based on the privileges granted to the directory manager.
-
Constructor Details
-
FileDirectoryManager
public FileDirectoryManager(FileServiceAccessor fileServiceAccessor, boolean manageRolePrivileges, boolean manageUserPrivileges)
-
-
Method Details
-
getRoleManager
Description copied from interface:DirectoryManagerA role manager for role-management based on the privileges granted to the directory manager.- Specified by:
getRoleManagerin interfaceDirectoryManager- Returns:
- a role manager for managing roles
-
getUserManager
Description copied from interface:DirectoryManagerA user manager for user-management based on the privileges granted to the directory manager.- Specified by:
getUserManagerin interfaceDirectoryManager- Returns:
- a user manager for managing users
-
close
public void close()Description copied from interface:DirectoryManagerClose 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:
closein interfaceDirectoryManager
-