@Test public void getUnrestricted() { Set<SystemScope> unrestricted = Sets.newHashSet(defaultDynScope1, defaultDynScope2, dynScope1); assertThat(service.getUnrestricted(), equalTo(unrestricted)); }
@Override public Set<SystemScope> getUnrestricted() { return Sets.filter(getAll(), Predicates.not(isRestricted)); }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getUnrestricted() { return Sets.filter(getAll(), Predicates.not(isRestricted)); } }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getUnrestricted() { return Sets.filter(getAll(), Predicates.not(isRestricted)); }  }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getUnrestricted() { return Sets.filter(getAll(), Predicates.not(isRestricted)); }  @Override Set<SystemScope> getAll(); @Override SystemScope getById(Long id); @Override SystemScope getByValue(String value); @Override void remove(SystemScope scope); @Override SystemScope save(SystemScope scope); @Override Set<SystemScope> fromStrings(Set<String> scope); @Override Set<String> toStrings(Set<SystemScope> scope); @Override boolean scopesMatch(Set<String> expected, Set<String> actual); @Override Set<SystemScope> getDefaults(); @Override Set<SystemScope> getReserved(); @Override Set<SystemScope> getRestricted(); @Override Set<SystemScope> getUnrestricted(); @Override Set<SystemScope> removeRestrictedAndReservedScopes(Set<SystemScope> scopes); @Override Set<SystemScope> removeReservedScopes(Set<SystemScope> scopes); }
DefaultSystemScopeService implements SystemScopeService { @Override public Set<SystemScope> getUnrestricted() { return Sets.filter(getAll(), Predicates.not(isRestricted)); }  @Override Set<SystemScope> getAll(); @Override SystemScope getById(Long id); @Override SystemScope getByValue(String value); @Override void remove(SystemScope scope); @Override SystemScope save(SystemScope scope); @Override Set<SystemScope> fromStrings(Set<String> scope); @Override Set<String> toStrings(Set<SystemScope> scope); @Override boolean scopesMatch(Set<String> expected, Set<String> actual); @Override Set<SystemScope> getDefaults(); @Override Set<SystemScope> getReserved(); @Override Set<SystemScope> getRestricted(); @Override Set<SystemScope> getUnrestricted(); @Override Set<SystemScope> removeRestrictedAndReservedScopes(Set<SystemScope> scopes); @Override Set<SystemScope> removeReservedScopes(Set<SystemScope> scopes);  }