Interface PermissionFactory
-
- All Known Implementing Classes:
DefaultPermissionFactory
public interface PermissionFactory
Provides a simple mechanism to retrievePermission
instances from integer masks.- Since:
- 2.0.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Permission
buildFromMask(int mask)
Dynamically creates aCumulativePermission
orBasePermission
representing the active bits in the passed mask.Permission
buildFromName(java.lang.String name)
java.util.List<Permission>
buildFromNames(java.util.List<java.lang.String> names)
-
-
-
Method Detail
-
buildFromMask
Permission buildFromMask(int mask)
Dynamically creates aCumulativePermission
orBasePermission
representing the active bits in the passed mask.- Parameters:
mask
- to build- Returns:
- a Permission representing the requested object
-
buildFromName
Permission buildFromName(java.lang.String name)
-
buildFromNames
java.util.List<Permission> buildFromNames(java.util.List<java.lang.String> names)
-
-