Class PermissionGroup
java.lang.Object
com.github.darksoulq.abyssallib.server.permission.PermissionHolder
com.github.darksoulq.abyssallib.server.permission.PermissionGroup
Represents a group that can contain permissions and be inherited by users or other groups.
-
Field Summary
Fields inherited from class PermissionHolder
parents, permissions -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PermissionHolder
addParent, clearExpired, getEffectivePermissions, getNodes, getParentNodes, hasDirectPermission, hasParent, invalidateCache, removeParent, setPermission, unsetPermission
-
Constructor Details
-
PermissionGroup
Constructs a group with the specified ID.- Parameters:
id- The group identifier.
-
-
Method Details
-
getId
-
getWeight
public int getWeight()Gets the weight of this group.- Returns:
- The integer weight.
-
setWeight
public void setWeight(int weight) Sets the group weight and invalidates the cache.- Parameters:
weight- The new weight.
-
save
public void save()Triggers a save operation through the global permission manager.- Specified by:
savein classPermissionHolder
-