public class FileManager.Groups
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
FileManager.Groups.get
Get all "get"-methode
|
class |
FileManager.Groups.set
Get all "set"-methode
|
Modifier and Type | Field and Description |
---|---|
FileManager.Groups.get |
get |
FileManager.Groups.set |
set |
Constructor and Description |
---|
Groups()
Get group options
|
Modifier and Type | Method and Description |
---|---|
boolean |
addGroupPermission(java.lang.String group,
java.lang.String permission)
Add a permission to the group
|
void |
addNewGroup(java.lang.String GroupName) |
void |
addNewGroup(java.lang.String GroupName,
boolean def)
Create a new Group
|
java.util.List<java.lang.String> |
getAllGroups()
Get all Groups in the permission.yml
|
java.lang.String |
getDefaultGroup()
Get the default group
|
boolean |
hasGroup(java.lang.String group)
Checks whether the group is contained in the permission.yml.
|
void |
removeGroup(java.lang.String GroupName)
Remove a group from the permission.yml
|
boolean |
removeGroupPermission(java.lang.String group,
java.lang.String permission)
Remove a permission from the group
|
public FileManager.Groups.get get
public FileManager.Groups.set set
public java.util.List<java.lang.String> getAllGroups()
public java.lang.String getDefaultGroup()
public boolean hasGroup(java.lang.String group)
group
- The grouppublic void addNewGroup(java.lang.String GroupName) throws GroupAlreadyExistException
GroupAlreadyExistException
public void addNewGroup(java.lang.String GroupName, boolean def) throws GroupAlreadyExistException
GroupName
- The name of the groupdef
- Is the group default?GroupAlreadyExistException
- Throws, if the group is already
exist in the permissions.ymlpublic void removeGroup(java.lang.String GroupName) throws GroupNotFoundException
GroupName
- The group nameGroupNotFoundException
- - Throws, if the group was not foundpublic boolean addGroupPermission(java.lang.String group, java.lang.String permission) throws GroupNotFoundException
group
- The grouppermission
- The permissionGroupNotFoundException
- - Throws, if the group was not foundpublic boolean removeGroupPermission(java.lang.String group, java.lang.String permission) throws GroupNotFoundException
group
- The grouppermission
- The permissionGroupNotFoundException
- - Throws, if the group was not found