public class FileDirectoryManager extends Object implements DirectoryManager
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().| Constructor and Description |
|---|
FileDirectoryManager(FileServiceAccessor fileServiceAccessor,
boolean manageRolePrivileges,
boolean manageUserPrivileges) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the resource used to store the user and role details.
|
RoleManager |
getRoleManager()
A role manager for role-management based on the privileges granted to the directory manager.
|
UserManager |
getUserManager()
A user manager for user-management based on the privileges granted to the directory manager.
|
public FileDirectoryManager(FileServiceAccessor fileServiceAccessor, boolean manageRolePrivileges, boolean manageUserPrivileges)
public RoleManager getRoleManager()
DirectoryManagergetRoleManager in interface DirectoryManagerpublic UserManager getUserManager()
DirectoryManagergetUserManager in interface DirectoryManagerpublic void close()
DirectoryManagerImplementors may choose to flush all gathered details, or remove any excess resources (database connections) that may have been opened upon construction.
close in interface DirectoryManagerCopyright © GigaSpaces.