NamedViewDetail implements AccessControlledResource, Serializable { public AccessPredicate getReadAccessPredicate() { return readAccessPredicate != null ? deserialise(readAccessPredicate) : null; } NamedViewDetail();  NamedViewDetail(final String name, final String view, final String description, final Map<String, ViewParameterDetail> parameters);  NamedViewDetail(final String name, final String view, final String description, final String userId, final List<String> writers, final Map<String, ViewParameterDetail> parameters);  NamedViewDetail(final String name, final String view, final String description, final String userId, final List<String> writers, final Map<String, ViewParameterDetail> parameters, final AccessPredicate readAccessPredicate, final AccessPredicate writeAccessPredicate); String getName(); void setName(final String name); String getView(); void setView(final String view); void setView(final View view); String getDescription(); void setDescription(final String description); String getCreatorId(); List<String> getWriteAccessRoles(); @Deprecated boolean hasWriteAccess(final String userId, final Set<String> opAuths, final String adminAuth); @Override ResourceType getResourceType(); boolean hasReadAccess(final User user, final String adminAuth); boolean hasWriteAccess(final User user, final String adminAuth); Map<String, ViewParameterDetail> getParameters(); void setParameters(final Map<String, ViewParameterDetail> parameters); @JsonIgnore View getViewWithDefaultParams(); View getView(final Map<String, Object> executionParams); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); AccessPredicate getReadAccessPredicate(); AccessPredicate getWriteAccessPredicate();  }
@Test public void shouldConfigureUnrestrictedAccessPredicateForReadAccessTestByDefault() { final NamedViewDetail namedViewDetail = createNamedViewDetailBuilder().build(); assertEquals( new UnrestrictedAccessPredicate(), namedViewDetail.getReadAccessPredicate()); }