@Test public void defaultSupportedClasses() throws Exception { List<Class<?>> classes = new UserManagerResolver().getManagedClasses(); assertEquals(2, classes.size()); assertTrue(classes.contains(NuxeoPrincipal.class)); assertTrue(classes.contains(NuxeoGroup.class)); }
@Override public List<Class<?>> getManagedClasses() { if (managedClasses == null) { managedClasses = new ArrayList<>(); if (includingUsers) { managedClasses.add(NuxeoPrincipal.class); } if (includingGroups) { managedClasses.add(NuxeoGroup.class); } } return managedClasses; }
UserManagerResolver extends AbstractObjectResolver implements ObjectResolver { @Override public List<Class<?>> getManagedClasses() { if (managedClasses == null) { managedClasses = new ArrayList<>(); if (includingUsers) { managedClasses.add(NuxeoPrincipal.class); } if (includingGroups) { managedClasses.add(NuxeoGroup.class); } } return managedClasses; } }
UserManagerResolver extends AbstractObjectResolver implements ObjectResolver { @Override public List<Class<?>> getManagedClasses() { if (managedClasses == null) { managedClasses = new ArrayList<>(); if (includingUsers) { managedClasses.add(NuxeoPrincipal.class); } if (includingGroups) { managedClasses.add(NuxeoGroup.class); } } return managedClasses; }  }
UserManagerResolver extends AbstractObjectResolver implements ObjectResolver { @Override public List<Class<?>> getManagedClasses() { if (managedClasses == null) { managedClasses = new ArrayList<>(); if (includingUsers) { managedClasses.add(NuxeoPrincipal.class); } if (includingGroups) { managedClasses.add(NuxeoGroup.class); } } return managedClasses; }  UserManager getUserManager(); @Override List<Class<?>> getManagedClasses(); @Override void configure(Map<String, String> parameters); @Override String getName(); @Override Object fetch(Object value); @SuppressWarnings("unchecked") @Override T fetch(Class<T> type, Object value); @Override Serializable getReference(Object entity); @Override String getConstraintErrorMessage(Object invalidValue, Locale locale); boolean isIncludingUsers(); boolean isIncludingGroups(); }
UserManagerResolver extends AbstractObjectResolver implements ObjectResolver { @Override public List<Class<?>> getManagedClasses() { if (managedClasses == null) { managedClasses = new ArrayList<>(); if (includingUsers) { managedClasses.add(NuxeoPrincipal.class); } if (includingGroups) { managedClasses.add(NuxeoGroup.class); } } return managedClasses; }  UserManager getUserManager(); @Override List<Class<?>> getManagedClasses(); @Override void configure(Map<String, String> parameters); @Override String getName(); @Override Object fetch(Object value); @SuppressWarnings("unchecked") @Override T fetch(Class<T> type, Object value); @Override Serializable getReference(Object entity); @Override String getConstraintErrorMessage(Object invalidValue, Locale locale); boolean isIncludingUsers(); boolean isIncludingGroups(); static final String INPUT_PARAM_FILTER; static final String FILTER_GROUP; static final String FILTER_USER; static final String NAME; static final String PARAM_INCLUDE_USERS; static final String PARAM_INCLUDE_GROUPS; }