@Test public void testGetValidators() { List<? extends ValidatorProvider> validators = tc.getValidators(root.getContentSession().getWorkspaceName(), ImmutableSet.of(), new MoveTracker()); assertNotNull(validators); assertEquals(1, validators.size()); assertTrue(validators.get(0) instanceof TokenValidatorProvider); }
@NotNull @Override public List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker) { ValidatorProvider vp = new TokenValidatorProvider(getSecurityProvider().getParameters(UserConfiguration.NAME), getTreeProvider()); return ImmutableList.of(vp); }
TokenConfigurationImpl extends ConfigurationBase implements TokenConfiguration { @NotNull @Override public List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker) { ValidatorProvider vp = new TokenValidatorProvider(getSecurityProvider().getParameters(UserConfiguration.NAME), getTreeProvider()); return ImmutableList.of(vp); } }
TokenConfigurationImpl extends ConfigurationBase implements TokenConfiguration { @NotNull @Override public List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker) { ValidatorProvider vp = new TokenValidatorProvider(getSecurityProvider().getParameters(UserConfiguration.NAME), getTreeProvider()); return ImmutableList.of(vp); } @SuppressWarnings("UnusedDeclaration")  TokenConfigurationImpl();  TokenConfigurationImpl(@NotNull SecurityProvider securityProvider); }
TokenConfigurationImpl extends ConfigurationBase implements TokenConfiguration { @NotNull @Override public List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker) { ValidatorProvider vp = new TokenValidatorProvider(getSecurityProvider().getParameters(UserConfiguration.NAME), getTreeProvider()); return ImmutableList.of(vp); } @SuppressWarnings("UnusedDeclaration")  TokenConfigurationImpl();  TokenConfigurationImpl(@NotNull SecurityProvider securityProvider); @Reference(name = "credentialsSupport", cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) @SuppressWarnings("UnusedDeclaration") void bindCredentialsSupport(CredentialsSupport credentialsSupport); @SuppressWarnings("UnusedDeclaration") void unbindCredentialsSupport(CredentialsSupport credentialsSupport); @NotNull @Override String getName(); @NotNull @Override List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker); @NotNull @Override TokenProvider getTokenProvider(@NotNull Root root); }
TokenConfigurationImpl extends ConfigurationBase implements TokenConfiguration { @NotNull @Override public List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker) { ValidatorProvider vp = new TokenValidatorProvider(getSecurityProvider().getParameters(UserConfiguration.NAME), getTreeProvider()); return ImmutableList.of(vp); } @SuppressWarnings("UnusedDeclaration")  TokenConfigurationImpl();  TokenConfigurationImpl(@NotNull SecurityProvider securityProvider); @Reference(name = "credentialsSupport", cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC) @SuppressWarnings("UnusedDeclaration") void bindCredentialsSupport(CredentialsSupport credentialsSupport); @SuppressWarnings("UnusedDeclaration") void unbindCredentialsSupport(CredentialsSupport credentialsSupport); @NotNull @Override String getName(); @NotNull @Override List<? extends ValidatorProvider> getValidators(@NotNull String workspaceName, @NotNull Set<Principal> principals, @NotNull MoveTracker moveTracker); @NotNull @Override TokenProvider getTokenProvider(@NotNull Root root);  }