/** * Resolve a View based upon: * <p/> * 1. Any @View annotation that is present * 2. If none are found, default designDocument to be the entity name (lowercase) and viewName to be "all". * * @return ResolvedView containing the designDocument and viewName. */ private ResolvedView determineView() { String designDocument = StringUtils.uncapitalize(entityInformation.getJavaType().getSimpleName()); String viewName = "all"; final View view = viewMetadataProvider.getView(); if (view != null) { designDocument = view.designDocument(); viewName = view.viewName(); } return new ResolvedView(designDocument, viewName); }
/** * Resolve a View based upon: * <p/> * 1. Any @View annotation that is present * 2. If none are found, default designDocument to be the entity name (lowercase) and viewName to be "all". * * @return ResolvedView containing the designDocument and viewName. */ private ResolvedView determineView() { String designDocument = StringUtils.uncapitalize(entityInformation.getJavaType().getSimpleName()); String viewName = "all"; final View view = viewMetadataProvider.getView(); if (view != null) { designDocument = view.designDocument(); viewName = view.viewName(); } return new ResolvedView(designDocument, viewName); }
/** * Resolve a View based upon: * <p/> * 1. Any @View annotation that is present * 2. If none are found, default designDocument to be the entity name (lowercase) and viewName to be "all". * * @return ResolvedView containing the designDocument and viewName. */ private ResolvedView determineView() { String designDocument = StringUtils.uncapitalize(entityInformation.getJavaType().getSimpleName()); String viewName = "all"; final View view = viewMetadataProvider.getView(); if (view != null) { designDocument = view.designDocument(); viewName = view.viewName(); } return new ResolvedView(designDocument, viewName); }
/** * Resolve a View based upon: * <p/> * 1. Any @View annotation that is present * 2. If none are found, default designDocument to be the entity name (lowercase) and viewName to be "all". * * @return ResolvedView containing the designDocument and viewName. */ private ResolvedView determineView() { String designDocument = StringUtils.uncapitalize(entityInformation.getJavaType().getSimpleName()); String viewName = "all"; final View view = viewMetadataProvider.getView(); if (view != null) { designDocument = view.designDocument(); viewName = view.viewName(); } return new ResolvedView(designDocument, viewName); }