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