@Test public void testDefaultPermissions() { PermissionProvider pp = service.getPermissionProvider(); String[] groups = pp.getPermissionGroups("Read"); assertNotNull(groups); assertEquals(Arrays.asList("ReadRemove", "ReadWrite"), Arrays.asList(groups)); groups = pp.getPermissionGroups("ReadProperties"); assertNotNull(groups); assertEquals(Arrays.asList("Read", "ReadRemove", "ReadWrite"), Arrays.asList(groups)); groups = pp.getPermissionGroups("ReadChildren"); assertNotNull(groups); assertEquals(Arrays.asList("Read", "ReadRemove", "ReadWrite"), Arrays.asList(groups)); groups = pp.getPermissionGroups("Browse"); assertNotNull(groups); assertEquals(Arrays.asList("Read", "ReadProperties", "ReadRemove", "ReadWrite"), Arrays.asList(groups)); }
public PermissionProvider getPermissionProvider() { return permissionProvider; }
SecurityService extends DefaultComponent { public PermissionProvider getPermissionProvider() { return permissionProvider; } }
SecurityService extends DefaultComponent { public PermissionProvider getPermissionProvider() { return permissionProvider; }  }
SecurityService extends DefaultComponent { public PermissionProvider getPermissionProvider() { return permissionProvider; }  @Override void activate(ComponentContext context); @Override void deactivate(ComponentContext context); @Override void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor); @Override void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor); PermissionProvider getPermissionProvider(); boolean arePoliciesRestrictingPermission(String permission); boolean arePoliciesExpressibleInQuery(String repositoryName); Collection<SQLQuery.Transformer> getPoliciesQueryTransformers(String repositoryName); boolean checkPermission(Document doc, NuxeoPrincipal principal, String permission); Collection<String> filterGrantedPermissions(Document doc, NuxeoPrincipal principal,
            Collection<String> permissions); String[] getPermissionsToCheck(String permission); static String[] getPrincipalsToCheck(NuxeoPrincipal principal); @SuppressWarnings("unchecked") @Override T getAdapter(Class<T> adapter); }
SecurityService extends DefaultComponent { public PermissionProvider getPermissionProvider() { return permissionProvider; }  @Override void activate(ComponentContext context); @Override void deactivate(ComponentContext context); @Override void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor); @Override void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor); PermissionProvider getPermissionProvider(); boolean arePoliciesRestrictingPermission(String permission); boolean arePoliciesExpressibleInQuery(String repositoryName); Collection<SQLQuery.Transformer> getPoliciesQueryTransformers(String repositoryName); boolean checkPermission(Document doc, NuxeoPrincipal principal, String permission); Collection<String> filterGrantedPermissions(Document doc, NuxeoPrincipal principal,
            Collection<String> permissions); String[] getPermissionsToCheck(String permission); static String[] getPrincipalsToCheck(NuxeoPrincipal principal); @SuppressWarnings("unchecked") @Override T getAdapter(Class<T> adapter); static final ComponentName NAME; static final String PERMISSIONS_EXTENSION_POINT; }