@Test public void resolveVisibility() { Assert.assertSame(PUBLIC_VISIBILITY, this.component.resolveVisibility(PUBLIC)); }
@Nonnull @Override public Visibility resolveVisibility(@Nullable final String name) { try { if (StringUtils.isNotBlank(name)) { final Visibility visibility = this.componentManager.get().getInstance(Visibility.class, name); return visibility == null ? this.privateVisibility : visibility; } } catch (ComponentLookupException ex) { this.logger.warn("Invalid entity visibility requested: {}", name); } return this.privateVisibility; }
DefaultEntityVisibilityManager implements EntityVisibilityManager { @Nonnull @Override public Visibility resolveVisibility(@Nullable final String name) { try { if (StringUtils.isNotBlank(name)) { final Visibility visibility = this.componentManager.get().getInstance(Visibility.class, name); return visibility == null ? this.privateVisibility : visibility; } } catch (ComponentLookupException ex) { this.logger.warn("Invalid entity visibility requested: {}", name); } return this.privateVisibility; } }
DefaultEntityVisibilityManager implements EntityVisibilityManager { @Nonnull @Override public Visibility resolveVisibility(@Nullable final String name) { try { if (StringUtils.isNotBlank(name)) { final Visibility visibility = this.componentManager.get().getInstance(Visibility.class, name); return visibility == null ? this.privateVisibility : visibility; } } catch (ComponentLookupException ex) { this.logger.warn("Invalid entity visibility requested: {}", name); } return this.privateVisibility; }  }
DefaultEntityVisibilityManager implements EntityVisibilityManager { @Nonnull @Override public Visibility resolveVisibility(@Nullable final String name) { try { if (StringUtils.isNotBlank(name)) { final Visibility visibility = this.componentManager.get().getInstance(Visibility.class, name); return visibility == null ? this.privateVisibility : visibility; } } catch (ComponentLookupException ex) { this.logger.warn("Invalid entity visibility requested: {}", name); } return this.privateVisibility; }  @Nonnull @Override Collection<Visibility> listVisibilityOptions(); @Nonnull @Override Collection<Visibility> listAllVisibilityOptions(); @Nonnull @Override Visibility getDefaultVisibility(); @Nonnull @Override Visibility resolveVisibility(@Nullable final String name); @Override boolean setVisibility(
        @Nullable final PrimaryEntity entity,
        @Nullable final Visibility visibility); @Nonnull @Override Visibility getVisibility(@Nullable final PrimaryEntity entity); @Nonnull @Override Collection<? extends PrimaryEntity> filterByVisibility(
        @Nullable final Collection<? extends PrimaryEntity> entities,
        @Nullable final Visibility requiredVisibility); @Nonnull @Override Iterator<? extends PrimaryEntity> filterByVisibility(
        @Nullable final Iterator<? extends PrimaryEntity> entities,
        @Nullable final Visibility requiredVisibility); }
DefaultEntityVisibilityManager implements EntityVisibilityManager { @Nonnull @Override public Visibility resolveVisibility(@Nullable final String name) { try { if (StringUtils.isNotBlank(name)) { final Visibility visibility = this.componentManager.get().getInstance(Visibility.class, name); return visibility == null ? this.privateVisibility : visibility; } } catch (ComponentLookupException ex) { this.logger.warn("Invalid entity visibility requested: {}", name); } return this.privateVisibility; }  @Nonnull @Override Collection<Visibility> listVisibilityOptions(); @Nonnull @Override Collection<Visibility> listAllVisibilityOptions(); @Nonnull @Override Visibility getDefaultVisibility(); @Nonnull @Override Visibility resolveVisibility(@Nullable final String name); @Override boolean setVisibility(
        @Nullable final PrimaryEntity entity,
        @Nullable final Visibility visibility); @Nonnull @Override Visibility getVisibility(@Nullable final PrimaryEntity entity); @Nonnull @Override Collection<? extends PrimaryEntity> filterByVisibility(
        @Nullable final Collection<? extends PrimaryEntity> entities,
        @Nullable final Visibility requiredVisibility); @Nonnull @Override Iterator<? extends PrimaryEntity> filterByVisibility(
        @Nullable final Iterator<? extends PrimaryEntity> entities,
        @Nullable final Visibility requiredVisibility);  }