public static Permission getPermission ( String name , String serviceName , String ... actions ) { PermissionFactory permissionFactory = PERMISSION_FACTORY_MAP . get ( serviceName ) ; if ( permissionFactory == null ) { throw new IllegalArgumentException ( "No permissions found for service: " + serviceName ) ; } return permissionFactory . create ( name , actions ) ; }
Creates a permission