Class FileGroupDatabase
- java.lang.Object
-
- org.apache.qpid.server.security.group.FileGroupDatabase
-
- All Implemented Interfaces:
GroupDatabase
public class FileGroupDatabase extends Object implements GroupDatabase
A group database that reads/writes the following file format:group1.users=user1,user2 group2.users=user2,user3
-
-
Constructor Summary
Constructors Constructor Description FileGroupDatabase(FileBasedGroupProvider<?> groupProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUserToGroup(String user, String group)
void
createGroup(String group)
Set<String>
getAllGroups()
Set<String>
getGroupsForUser(String user)
Set<String>
getUsersInGroup(String group)
void
removeGroup(String group)
void
removeUserFromGroup(String user, String group)
void
setGroupFile(String groupFile)
-
-
-
Constructor Detail
-
FileGroupDatabase
public FileGroupDatabase(FileBasedGroupProvider<?> groupProvider)
-
-
Method Detail
-
getAllGroups
public Set<String> getAllGroups()
- Specified by:
getAllGroups
in interfaceGroupDatabase
-
setGroupFile
public void setGroupFile(String groupFile) throws IOException
- Throws:
IOException
-
getUsersInGroup
public Set<String> getUsersInGroup(String group)
- Specified by:
getUsersInGroup
in interfaceGroupDatabase
-
addUserToGroup
public void addUserToGroup(String user, String group)
- Specified by:
addUserToGroup
in interfaceGroupDatabase
-
removeUserFromGroup
public void removeUserFromGroup(String user, String group)
- Specified by:
removeUserFromGroup
in interfaceGroupDatabase
-
getGroupsForUser
public Set<String> getGroupsForUser(String user)
- Specified by:
getGroupsForUser
in interfaceGroupDatabase
-
createGroup
public void createGroup(String group)
- Specified by:
createGroup
in interfaceGroupDatabase
-
removeGroup
public void removeGroup(String group)
- Specified by:
removeGroup
in interfaceGroupDatabase
-
-