├── .idea ├── .name ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── libraries │ ├── Maven__antlr_antlr_2_7_7.xml │ ├── Maven__aopalliance_aopalliance_1_0.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_4_0.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_4_0.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_4_0.xml │ ├── Maven__com_h2database_h2_1_4_179.xml │ ├── Maven__com_jayway_jsonpath_json_path_0_9_1.xml │ ├── Maven__com_jayway_jsonpath_json_path_assert_0_9_1.xml │ ├── Maven__commons_logging_commons_logging_1_1_3.xml │ ├── Maven__dom4j_dom4j_1_6_1.xml │ ├── Maven__javax_servlet_javax_servlet_api_3_0_1.xml │ ├── Maven__junit_junit_4_11.xml │ ├── Maven__net_minidev_json_smart_1_2.xml │ ├── Maven__org_apache_commons_commons_dbcp2_2_0_1.xml │ ├── Maven__org_apache_commons_commons_pool2_2_2.xml │ ├── Maven__org_aspectj_aspectjweaver_1_7_4.xml │ ├── Maven__org_hamcrest_hamcrest_core_1_3.xml │ ├── Maven__org_hamcrest_hamcrest_library_1_3.xml │ ├── Maven__org_hibernate_common_hibernate_commons_annotations_4_0_4_Final.xml │ ├── Maven__org_hibernate_hibernate_core_4_3_5_Final.xml │ ├── Maven__org_hibernate_hibernate_entitymanager_4_3_5_Final.xml │ ├── Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml │ ├── Maven__org_javassist_javassist_3_18_1_GA.xml │ ├── Maven__org_jboss_jandex_1_1_0_Final.xml │ ├── Maven__org_jboss_logging_jboss_logging_3_1_3_GA.xml │ ├── Maven__org_jboss_logging_jboss_logging_annotations_1_2_0_Beta1.xml │ ├── Maven__org_jboss_spec_javax_transaction_jboss_transaction_api_1_2_spec_1_0_0_Final.xml │ ├── Maven__org_mockito_mockito_all_1_9_5.xml │ ├── Maven__org_objenesis_objenesis_2_1.xml │ ├── Maven__org_slf4j_slf4j_api_1_7_7.xml │ ├── Maven__org_springframework_hateoas_spring_hateoas_0_12_0_RELEASE.xml │ ├── Maven__org_springframework_security_spring_security_config_3_2_5_RELEASE.xml │ ├── Maven__org_springframework_security_spring_security_core_3_2_5_RELEASE.xml │ ├── Maven__org_springframework_security_spring_security_web_3_2_5_RELEASE.xml │ ├── Maven__org_springframework_spring_aop_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_beans_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_context_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_core_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_expression_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_jdbc_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_orm_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_test_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_tx_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_web_4_0_5_RELEASE.xml │ ├── Maven__org_springframework_spring_webmvc_4_0_5_RELEASE.xml │ └── Maven__xml_apis_xml_apis_1_0_b2.xml ├── misc.xml ├── modules.xml ├── scopes │ └── scope_settings.xml ├── uiDesigner.xml ├── vcs.xml └── workspace.xml ├── basic-web-app.iml ├── pom.xml ├── snippets ├── AccountUserDetails.java ├── AuthFailure.java ├── AuthSuccess.java ├── EntryPointUnauthorizedHandler.java ├── SecurityConfig.java ├── SecurityWebAppInitializer.java ├── UserDetailServiceImpl.java └── js │ └── account.js ├── src ├── main │ ├── java │ │ └── tutorial │ │ │ ├── core │ │ │ ├── models │ │ │ │ └── entities │ │ │ │ │ ├── Account.java │ │ │ │ │ ├── Blog.java │ │ │ │ │ └── BlogEntry.java │ │ │ ├── repositories │ │ │ │ ├── AccountRepo.java │ │ │ │ ├── BlogEntryRepo.java │ │ │ │ ├── BlogRepo.java │ │ │ │ └── jpa │ │ │ │ │ ├── JpaAccountRepo.java │ │ │ │ │ ├── JpaBlogEntryRepo.java │ │ │ │ │ └── JpaBlogRepo.java │ │ │ ├── security │ │ │ │ ├── AccountUserDetails.java │ │ │ │ ├── AuthFailure.java │ │ │ │ ├── AuthSuccess.java │ │ │ │ ├── EntryPointUnauthorizedHandler.java │ │ │ │ ├── SecurityConfig.java │ │ │ │ ├── SecurityWebAppInitializer.java │ │ │ │ └── UserDetailServiceImpl.java │ │ │ └── services │ │ │ │ ├── AccountService.java │ │ │ │ ├── BlogEntryService.java │ │ │ │ ├── BlogService.java │ │ │ │ ├── exceptions │ │ │ │ ├── AccountDoesNotExistException.java │ │ │ │ ├── AccountExistsException.java │ │ │ │ ├── BlogExistsException.java │ │ │ │ └── BlogNotFoundException.java │ │ │ │ ├── impl │ │ │ │ ├── AccountServiceImpl.java │ │ │ │ ├── BlogEntryServiceImpl.java │ │ │ │ └── BlogServiceImpl.java │ │ │ │ └── util │ │ │ │ ├── AccountList.java │ │ │ │ ├── BlogEntryList.java │ │ │ │ └── BlogList.java │ │ │ └── rest │ │ │ ├── exceptions │ │ │ ├── BadRequestException.java │ │ │ ├── ConflictException.java │ │ │ ├── ForbiddenException.java │ │ │ └── NotFoundException.java │ │ │ ├── mvc │ │ │ ├── AccountController.java │ │ │ ├── BlogController.java │ │ │ └── BlogEntryController.java │ │ │ └── resources │ │ │ ├── AccountListResource.java │ │ │ ├── AccountResource.java │ │ │ ├── BlogEntryListResource.java │ │ │ ├── BlogEntryResource.java │ │ │ ├── BlogListResource.java │ │ │ ├── BlogResource.java │ │ │ └── asm │ │ │ ├── AccountListResourceAsm.java │ │ │ ├── AccountResourceAsm.java │ │ │ ├── BlogEntryListResourceAsm.java │ │ │ ├── BlogEntryResourceAsm.java │ │ │ ├── BlogListResourceAsm.java │ │ │ └── BlogResourceAsm.java │ ├── resources │ │ └── spring │ │ │ └── business-config.xml │ └── webapp │ │ ├── WEB-INF │ │ ├── jsp │ │ │ └── view.jsp │ │ ├── mvc-dispatcher-servlet.xml │ │ └── web.xml │ │ └── app │ │ ├── .bowerrc │ │ ├── .gitignore │ │ ├── .gitmodules │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── Gruntfile.js │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bower.json │ │ ├── build.config.js │ │ ├── build │ │ ├── assets │ │ │ ├── README.md │ │ │ └── ngbp-0.3.2.css │ │ ├── index.html │ │ ├── karma-unit.js │ │ ├── src │ │ │ ├── app │ │ │ │ ├── about │ │ │ │ │ └── about.js │ │ │ │ ├── account │ │ │ │ │ └── account.js │ │ │ │ ├── app.js │ │ │ │ ├── blog │ │ │ │ │ └── blog.js │ │ │ │ └── home │ │ │ │ │ └── home.js │ │ │ └── common │ │ │ │ └── plusOne │ │ │ │ └── plusOne.js │ │ ├── templates-app.js │ │ ├── templates-common.js │ │ └── vendor │ │ │ ├── angular-base64 │ │ │ └── angular-base64.min.js │ │ │ ├── angular-bootstrap │ │ │ └── ui-bootstrap-tpls.min.js │ │ │ ├── angular-hateoas │ │ │ └── src │ │ │ │ └── angular-hateoas.js │ │ │ ├── angular-resource │ │ │ └── angular-resource.min.js │ │ │ ├── angular-ui-router │ │ │ └── release │ │ │ │ └── angular-ui-router.js │ │ │ ├── angular │ │ │ └── angular.js │ │ │ └── placeholders │ │ │ └── angular-placeholders-0.0.1-SNAPSHOT.min.js │ │ ├── changelog.tpl │ │ ├── karma │ │ └── karma-unit.tpl.js │ │ ├── module.prefix │ │ ├── module.suffix │ │ ├── package.json │ │ ├── src │ │ ├── README.md │ │ ├── app │ │ │ ├── README.md │ │ │ ├── about │ │ │ │ ├── about.js │ │ │ │ └── about.tpl.html │ │ │ ├── account │ │ │ │ ├── account.js │ │ │ │ ├── login.tpl.html │ │ │ │ ├── register.tpl.html │ │ │ │ └── search.tpl.html │ │ │ ├── app.js │ │ │ ├── app.spec.js │ │ │ ├── blog │ │ │ │ ├── blog.js │ │ │ │ ├── blog.less │ │ │ │ └── manage-blogs.tpl.html │ │ │ └── home │ │ │ │ ├── README.md │ │ │ │ ├── home.js │ │ │ │ ├── home.less │ │ │ │ ├── home.spec.js │ │ │ │ └── home.tpl.html │ │ ├── assets │ │ │ └── README.md │ │ ├── common │ │ │ ├── README.md │ │ │ └── plusOne │ │ │ │ └── plusOne.js │ │ ├── index.html │ │ └── less │ │ │ ├── README.md │ │ │ ├── main.less │ │ │ └── variables.less │ │ ├── tools.md │ │ └── vendor │ │ ├── angular-base64 │ │ ├── .bower.json │ │ ├── LICENSE │ │ ├── README.md │ │ ├── angular-base64.js │ │ ├── angular-base64.min.js │ │ └── bower.json │ │ ├── angular-bootstrap │ │ ├── .bower.json │ │ ├── bower.json │ │ ├── ui-bootstrap-tpls.js │ │ ├── ui-bootstrap-tpls.min.js │ │ ├── ui-bootstrap.js │ │ └── ui-bootstrap.min.js │ │ ├── angular-hateoas │ │ ├── .bower.json │ │ ├── Gruntfile.js │ │ ├── LICENSE │ │ ├── bower.json │ │ ├── karma.conf.js │ │ ├── package.json │ │ ├── readme.md │ │ ├── src │ │ │ └── angular-hateoas.js │ │ └── test │ │ │ └── angular-hateoas.test.js │ │ ├── angular-mocks │ │ ├── .bower.json │ │ ├── README.md │ │ ├── angular-mocks.js │ │ └── bower.json │ │ ├── angular-resource │ │ ├── .bower.json │ │ ├── README.md │ │ ├── angular-resource.js │ │ ├── angular-resource.min.js │ │ ├── angular-resource.min.js.map │ │ └── bower.json │ │ ├── angular-ui-router │ │ ├── .bower.json │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bower.json │ │ ├── release │ │ │ ├── angular-ui-router.js │ │ │ └── angular-ui-router.min.js │ │ └── src │ │ │ ├── common.js │ │ │ ├── compat.js │ │ │ ├── resolve.js │ │ │ ├── state.js │ │ │ ├── stateDirectives.js │ │ │ ├── stateFilters.js │ │ │ ├── templateFactory.js │ │ │ ├── urlMatcherFactory.js │ │ │ ├── urlRouter.js │ │ │ ├── view.js │ │ │ ├── viewDirective.js │ │ │ └── viewScroll.js │ │ ├── angular │ │ ├── .bower.json │ │ ├── README.md │ │ ├── angular-csp.css │ │ ├── angular.js │ │ ├── angular.min.js │ │ ├── angular.min.js.gzip │ │ ├── angular.min.js.map │ │ └── bower.json │ │ ├── base64 │ │ ├── .bower.json │ │ ├── LICENSE │ │ ├── README.md │ │ ├── base64.js │ │ ├── base64.min.js │ │ ├── bower.json │ │ └── package.json │ │ ├── bootstrap │ │ ├── .bower.json │ │ ├── Gruntfile.js │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bower.json │ │ ├── dist │ │ │ ├── css │ │ │ │ ├── bootstrap-theme.css │ │ │ │ ├── bootstrap-theme.css.map │ │ │ │ ├── bootstrap-theme.min.css │ │ │ │ ├── bootstrap.css │ │ │ │ ├── bootstrap.css.map │ │ │ │ └── bootstrap.min.css │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ └── glyphicons-halflings-regular.woff │ │ │ └── js │ │ │ │ ├── bootstrap.js │ │ │ │ └── bootstrap.min.js │ │ ├── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ └── glyphicons-halflings-regular.woff │ │ ├── grunt │ │ │ ├── bs-glyphicons-data-generator.js │ │ │ ├── bs-lessdoc-parser.js │ │ │ ├── bs-raw-files-generator.js │ │ │ └── shrinkwrap.js │ │ ├── js │ │ │ ├── affix.js │ │ │ ├── alert.js │ │ │ ├── button.js │ │ │ ├── carousel.js │ │ │ ├── collapse.js │ │ │ ├── dropdown.js │ │ │ ├── modal.js │ │ │ ├── popover.js │ │ │ ├── scrollspy.js │ │ │ ├── tab.js │ │ │ ├── tooltip.js │ │ │ └── transition.js │ │ ├── less │ │ │ ├── alerts.less │ │ │ ├── badges.less │ │ │ ├── bootstrap.less │ │ │ ├── breadcrumbs.less │ │ │ ├── button-groups.less │ │ │ ├── buttons.less │ │ │ ├── carousel.less │ │ │ ├── close.less │ │ │ ├── code.less │ │ │ ├── component-animations.less │ │ │ ├── dropdowns.less │ │ │ ├── forms.less │ │ │ ├── glyphicons.less │ │ │ ├── grid.less │ │ │ ├── input-groups.less │ │ │ ├── jumbotron.less │ │ │ ├── labels.less │ │ │ ├── list-group.less │ │ │ ├── media.less │ │ │ ├── mixins.less │ │ │ ├── modals.less │ │ │ ├── navbar.less │ │ │ ├── navs.less │ │ │ ├── normalize.less │ │ │ ├── pager.less │ │ │ ├── pagination.less │ │ │ ├── panels.less │ │ │ ├── popovers.less │ │ │ ├── print.less │ │ │ ├── progress-bars.less │ │ │ ├── responsive-utilities.less │ │ │ ├── scaffolding.less │ │ │ ├── tables.less │ │ │ ├── theme.less │ │ │ ├── thumbnails.less │ │ │ ├── tooltip.less │ │ │ ├── type.less │ │ │ ├── utilities.less │ │ │ ├── variables.less │ │ │ └── wells.less │ │ ├── package.json │ │ └── test-infra │ │ │ ├── README.md │ │ │ ├── npm-shrinkwrap.canonical.json │ │ │ ├── requirements.txt │ │ │ ├── s3_cache.py │ │ │ ├── sauce_browsers.yml │ │ │ └── uncached-npm-install.sh │ │ ├── jquery │ │ ├── .bower.json │ │ ├── MIT-LICENSE.txt │ │ ├── bower.json │ │ ├── dist │ │ │ ├── jquery.js │ │ │ ├── jquery.min.js │ │ │ └── jquery.min.map │ │ └── src │ │ │ ├── ajax.js │ │ │ ├── ajax │ │ │ ├── jsonp.js │ │ │ ├── load.js │ │ │ ├── parseJSON.js │ │ │ ├── parseXML.js │ │ │ ├── script.js │ │ │ ├── var │ │ │ │ ├── nonce.js │ │ │ │ └── rquery.js │ │ │ └── xhr.js │ │ │ ├── attributes.js │ │ │ ├── attributes │ │ │ ├── attr.js │ │ │ ├── classes.js │ │ │ ├── prop.js │ │ │ ├── support.js │ │ │ └── val.js │ │ │ ├── callbacks.js │ │ │ ├── core.js │ │ │ ├── core │ │ │ ├── access.js │ │ │ ├── init.js │ │ │ ├── parseHTML.js │ │ │ ├── ready.js │ │ │ └── var │ │ │ │ └── rsingleTag.js │ │ │ ├── css.js │ │ │ ├── css │ │ │ ├── addGetHookIf.js │ │ │ ├── curCSS.js │ │ │ ├── defaultDisplay.js │ │ │ ├── hiddenVisibleSelectors.js │ │ │ ├── support.js │ │ │ ├── swap.js │ │ │ └── var │ │ │ │ ├── cssExpand.js │ │ │ │ ├── getStyles.js │ │ │ │ ├── isHidden.js │ │ │ │ ├── rmargin.js │ │ │ │ └── rnumnonpx.js │ │ │ ├── data.js │ │ │ ├── data │ │ │ ├── Data.js │ │ │ ├── accepts.js │ │ │ └── var │ │ │ │ ├── data_priv.js │ │ │ │ └── data_user.js │ │ │ ├── deferred.js │ │ │ ├── deprecated.js │ │ │ ├── dimensions.js │ │ │ ├── effects.js │ │ │ ├── effects │ │ │ ├── Tween.js │ │ │ └── animatedSelector.js │ │ │ ├── event.js │ │ │ ├── event │ │ │ ├── alias.js │ │ │ └── support.js │ │ │ ├── exports │ │ │ ├── amd.js │ │ │ └── global.js │ │ │ ├── intro.js │ │ │ ├── jquery.js │ │ │ ├── manipulation.js │ │ │ ├── manipulation │ │ │ ├── _evalUrl.js │ │ │ ├── support.js │ │ │ └── var │ │ │ │ └── rcheckableType.js │ │ │ ├── offset.js │ │ │ ├── outro.js │ │ │ ├── queue.js │ │ │ ├── queue │ │ │ └── delay.js │ │ │ ├── selector-native.js │ │ │ ├── selector-sizzle.js │ │ │ ├── selector.js │ │ │ ├── serialize.js │ │ │ ├── sizzle │ │ │ └── dist │ │ │ │ ├── sizzle.js │ │ │ │ ├── sizzle.min.js │ │ │ │ └── sizzle.min.map │ │ │ ├── traversing.js │ │ │ ├── traversing │ │ │ ├── findFilter.js │ │ │ └── var │ │ │ │ └── rneedsContext.js │ │ │ ├── var │ │ │ ├── arr.js │ │ │ ├── class2type.js │ │ │ ├── concat.js │ │ │ ├── hasOwn.js │ │ │ ├── indexOf.js │ │ │ ├── pnum.js │ │ │ ├── push.js │ │ │ ├── rnotwhite.js │ │ │ ├── slice.js │ │ │ ├── strundefined.js │ │ │ ├── support.js │ │ │ └── toString.js │ │ │ └── wrap.js │ │ └── placeholders │ │ └── angular-placeholders-0.0.1-SNAPSHOT.min.js └── test │ └── java │ └── tutorial │ ├── core │ └── repositories │ │ └── AccountRepoTest.java │ └── mvc │ ├── AccountControllerTest.java │ ├── BlogControllerTest.java │ └── BlogEntryControllerTest.java └── target ├── classes ├── spring │ └── business-config.xml └── tutorial │ ├── core │ ├── models │ │ └── entities │ │ │ ├── Account.class │ │ │ ├── Blog.class │ │ │ └── BlogEntry.class │ ├── repositories │ │ ├── AccountRepo.class │ │ ├── BlogEntryRepo.class │ │ ├── BlogRepo.class │ │ └── jpa │ │ │ ├── JpaAccountRepo.class │ │ │ ├── JpaBlogEntryRepo.class │ │ │ └── JpaBlogRepo.class │ ├── security │ │ ├── AccountUserDetails$1.class │ │ ├── AccountUserDetails.class │ │ ├── AuthFailure.class │ │ ├── AuthSuccess.class │ │ ├── EntryPointUnauthorizedHandler.class │ │ ├── SecurityConfig.class │ │ ├── SecurityWebAppInitializer.class │ │ └── UserDetailServiceImpl.class │ └── services │ │ ├── AccountService.class │ │ ├── BlogEntryService.class │ │ ├── BlogService.class │ │ ├── exceptions │ │ ├── AccountDoesNotExistException.class │ │ ├── AccountExistsException.class │ │ ├── BlogExistsException.class │ │ └── BlogNotFoundException.class │ │ ├── impl │ │ ├── AccountServiceImpl.class │ │ ├── BlogEntryServiceImpl.class │ │ └── BlogServiceImpl.class │ │ └── util │ │ ├── AccountList.class │ │ ├── BlogEntryList.class │ │ └── BlogList.class │ └── rest │ ├── exceptions │ ├── BadRequestException.class │ ├── ConflictException.class │ ├── ForbiddenException.class │ └── NotFoundException.class │ ├── mvc │ ├── AccountController.class │ ├── BlogController.class │ └── BlogEntryController.class │ └── resources │ ├── AccountListResource.class │ ├── AccountResource.class │ ├── BlogEntryListResource.class │ ├── BlogEntryResource.class │ ├── BlogListResource.class │ ├── BlogResource.class │ └── asm │ ├── AccountListResourceAsm.class │ ├── AccountResourceAsm.class │ ├── BlogEntryListResourceAsm.class │ ├── BlogEntryResourceAsm.class │ ├── BlogListResourceAsm.class │ └── BlogResourceAsm.class ├── maven-status └── maven-compiler-plugin │ └── compile │ └── default-compile │ ├── createdFiles.lst │ └── inputFiles.lst └── tomcat ├── conf ├── logging.properties ├── tomcat-users.xml └── web.xml └── logs └── access_log.2014-10-26 /.idea/.name: -------------------------------------------------------------------------------- 1 | basic-web-app -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__antlr_antlr_2_7_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_4_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_4_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_4_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_h2database_h2_1_4_179.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_jayway_jsonpath_json_path_0_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_jayway_jsonpath_json_path_assert_0_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_logging_commons_logging_1_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_javax_servlet_api_3_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__junit_junit_4_11.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_minidev_json_smart_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_commons_commons_dbcp2_2_0_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_commons_commons_pool2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_aspectj_aspectjweaver_1_7_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hamcrest_hamcrest_library_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_4_0_4_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_hibernate_core_4_3_5_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_hibernate_entitymanager_4_3_5_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_javassist_javassist_3_18_1_GA.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jboss_jandex_1_1_0_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_1_3_GA.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jboss_logging_jboss_logging_annotations_1_2_0_Beta1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_jboss_spec_javax_transaction_jboss_transaction_api_1_2_spec_1_0_0_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mockito_mockito_all_1_9_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_objenesis_objenesis_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_hateoas_spring_hateoas_0_12_0_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_security_spring_security_config_3_2_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_security_spring_security_core_3_2_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_security_spring_security_web_3_2_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aop_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_beans_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_core_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_expression_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jdbc_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_orm_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_test_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_tx_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_web_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_webmvc_4_0_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__xml_apis_xml_apis_1_0_b2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /snippets/AccountUserDetails.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.core.GrantedAuthority; 4 | import org.springframework.security.core.userdetails.UserDetails; 5 | import tutorial.core.models.entities.Account; 6 | 7 | import java.util.ArrayList; 8 | import java.util.Collection; 9 | import java.util.List; 10 | 11 | /** 12 | * Created by Chris on 10/19/14. 13 | */ 14 | public class AccountUserDetails implements UserDetails { 15 | private final Account account; 16 | 17 | public AccountUserDetails(Account account) { 18 | this.account = account; 19 | } 20 | 21 | @Override 22 | public Collection getAuthorities() { 23 | GrantedAuthority authority = new GrantedAuthority() { 24 | @Override 25 | public String getAuthority() { 26 | return "USER"; 27 | } 28 | }; 29 | 30 | ArrayList authorities = new ArrayList(); 31 | authorities.add(authority); 32 | return authorities; 33 | } 34 | 35 | @Override 36 | public String getPassword() { 37 | return account.getPassword(); 38 | } 39 | 40 | @Override 41 | public String getUsername() { 42 | return account.getName(); 43 | } 44 | 45 | @Override 46 | public boolean isAccountNonExpired() { 47 | return true; 48 | } 49 | 50 | @Override 51 | public boolean isAccountNonLocked() { 52 | return true; 53 | } 54 | 55 | @Override 56 | public boolean isCredentialsNonExpired() { 57 | return true; 58 | } 59 | 60 | @Override 61 | public boolean isEnabled() { 62 | return true; 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /snippets/AuthFailure.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.core.AuthenticationException; 4 | import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler; 5 | import org.springframework.stereotype.Component; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | 12 | /** 13 | * Created by Chris on 10/23/14. 14 | */ 15 | @Component 16 | public class AuthFailure extends SimpleUrlAuthenticationFailureHandler { 17 | @Override 18 | public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException { 19 | response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /snippets/AuthSuccess.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.core.Authentication; 4 | import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler; 5 | import org.springframework.stereotype.Component; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | 12 | /** 13 | * Created by Chris on 10/23/14. 14 | */ 15 | @Component 16 | public class AuthSuccess extends SimpleUrlAuthenticationSuccessHandler { 17 | 18 | @Override 19 | public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException { 20 | response.setStatus(HttpServletResponse.SC_OK); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /snippets/EntryPointUnauthorizedHandler.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.core.AuthenticationException; 4 | import org.springframework.security.web.AuthenticationEntryPoint; 5 | import org.springframework.stereotype.Component; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | 12 | /** 13 | * Created by Chris on 10/23/14. 14 | */ 15 | @Component 16 | public class EntryPointUnauthorizedHandler implements AuthenticationEntryPoint { 17 | @Override 18 | public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException, ServletException { 19 | httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Access Denied"); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /snippets/SecurityWebAppInitializer.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer; 4 | 5 | /** 6 | * Created by Chris on 10/19/14. 7 | */ 8 | public class SecurityWebAppInitializer extends AbstractSecurityWebApplicationInitializer { 9 | } 10 | -------------------------------------------------------------------------------- /snippets/UserDetailServiceImpl.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.security.core.userdetails.UserDetails; 5 | import org.springframework.security.core.userdetails.UserDetailsService; 6 | import org.springframework.security.core.userdetails.UsernameNotFoundException; 7 | import org.springframework.stereotype.Component; 8 | import tutorial.core.models.entities.Account; 9 | import tutorial.core.services.AccountService; 10 | 11 | /** 12 | * Created by Chris on 10/19/14. 13 | */ 14 | @Component 15 | public class UserDetailServiceImpl implements UserDetailsService { 16 | 17 | @Autowired 18 | private AccountService service; 19 | 20 | @Override 21 | public UserDetails loadUserByUsername(String name) throws UsernameNotFoundException { 22 | Account account = service.findByAccountName(name); 23 | if(account == null) { 24 | throw new UsernameNotFoundException("no user found with " + name); 25 | } 26 | return new AccountUserDetails(account); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/models/entities/Account.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.models.entities; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | 7 | /** 8 | * Created by Chris on 6/28/14. 9 | */ 10 | @Entity 11 | public class Account { 12 | @Id @GeneratedValue 13 | private Long id; 14 | private String name; 15 | private String password; 16 | 17 | public Long getId() { 18 | return id; 19 | } 20 | 21 | public void setId(Long id) { 22 | this.id = id; 23 | } 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | public String getPassword() { 34 | return password; 35 | } 36 | 37 | public void setPassword(String password) { 38 | this.password = password; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/models/entities/Blog.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.models.entities; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | import javax.persistence.OneToOne; 7 | 8 | /** 9 | * Created by Chris on 6/28/14. 10 | */ 11 | @Entity 12 | public class Blog { 13 | @Id 14 | @GeneratedValue 15 | private Long id; 16 | 17 | private String title; 18 | 19 | @OneToOne 20 | private Account owner; 21 | 22 | public Long getId() { 23 | return id; 24 | } 25 | 26 | public void setId(Long id) { 27 | this.id = id; 28 | } 29 | 30 | public String getTitle() { 31 | return title; 32 | } 33 | 34 | public void setTitle(String title) { 35 | this.title = title; 36 | } 37 | 38 | public Account getOwner() { 39 | return owner; 40 | } 41 | 42 | public void setOwner(Account owner) { 43 | this.owner = owner; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/models/entities/BlogEntry.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.models.entities; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.GeneratedValue; 5 | import javax.persistence.Id; 6 | import javax.persistence.ManyToOne; 7 | 8 | /** 9 | * Created by Chris on 6/19/14. 10 | */ 11 | @Entity 12 | public class BlogEntry { 13 | 14 | @Id 15 | @GeneratedValue 16 | private Long id; 17 | 18 | private String title; 19 | 20 | private String content; 21 | 22 | @ManyToOne 23 | private Blog blog; 24 | 25 | public String getTitle() { 26 | return title; 27 | } 28 | 29 | public void setTitle(String title) { 30 | this.title = title; 31 | } 32 | 33 | public Long getId() { 34 | return id; 35 | } 36 | 37 | public void setId(Long id) { 38 | this.id = id; 39 | } 40 | 41 | public Blog getBlog() { 42 | return blog; 43 | } 44 | 45 | public void setBlog(Blog blog) { 46 | this.blog = blog; 47 | } 48 | 49 | public String getContent() { 50 | return content; 51 | } 52 | 53 | public void setContent(String content) { 54 | this.content = content; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/repositories/AccountRepo.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.repositories; 2 | 3 | import tutorial.core.models.entities.Account; 4 | import tutorial.core.models.entities.Blog; 5 | import tutorial.core.services.util.AccountList; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Created by Chris on 7/9/14. 11 | */ 12 | public interface AccountRepo { 13 | public List findAllAccounts(); 14 | public Account findAccount(Long id); 15 | public Account findAccountByName(String name); 16 | public Account createAccount(Account data); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/repositories/BlogEntryRepo.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.repositories; 2 | 3 | import tutorial.core.models.entities.BlogEntry; 4 | import tutorial.core.services.util.BlogEntryList; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * Created by Chris on 7/10/14. 10 | */ 11 | public interface BlogEntryRepo { 12 | public BlogEntry findBlogEntry(Long id); // Returns the BlogEntry or null if it can't be found 13 | public BlogEntry deleteBlogEntry(Long id); // Deletes the found BlogEntry or returns null if it can't be found 14 | 15 | /** 16 | * @param id the id of the BlogEntry to updateBlogEntry 17 | * @param data the BlogEntry containing the data to be used for the updateBlogEntry 18 | * @return the updated BlogEntry or null if the BlogEntry with the id cannot be found 19 | */ 20 | public BlogEntry updateBlogEntry(Long id, BlogEntry data); 21 | 22 | public BlogEntry createBlogEntry(BlogEntry data); 23 | 24 | public List findByBlogId(Long blogId); 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/repositories/BlogRepo.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.repositories; 2 | 3 | import tutorial.core.models.entities.Blog; 4 | import tutorial.core.models.entities.BlogEntry; 5 | import tutorial.core.services.util.BlogEntryList; 6 | import tutorial.core.services.util.BlogList; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * Created by Chris on 7/10/14. 12 | */ 13 | public interface BlogRepo { 14 | public Blog createBlog(Blog data); 15 | public List findAllBlogs(); 16 | public Blog findBlog(Long id); 17 | public Blog findBlogByTitle(String title); 18 | public List findBlogsByAccount(Long accountId); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/repositories/jpa/JpaAccountRepo.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.repositories.jpa; 2 | 3 | import org.springframework.stereotype.Repository; 4 | import tutorial.core.models.entities.Account; 5 | import tutorial.core.models.entities.Blog; 6 | import tutorial.core.repositories.AccountRepo; 7 | import tutorial.core.services.util.AccountList; 8 | import tutorial.core.services.util.BlogList; 9 | 10 | import javax.persistence.EntityManager; 11 | import javax.persistence.PersistenceContext; 12 | import javax.persistence.Query; 13 | import java.util.List; 14 | 15 | /** 16 | * Created by Chris on 7/9/14. 17 | */ 18 | @Repository 19 | public class JpaAccountRepo implements AccountRepo { 20 | 21 | @PersistenceContext 22 | private EntityManager em; 23 | 24 | @Override 25 | public List findAllAccounts() { 26 | Query query = em.createQuery("SELECT a FROM Account a"); 27 | return query.getResultList(); 28 | } 29 | 30 | @Override 31 | public Account findAccount(Long id) { 32 | return em.find(Account.class, id); 33 | } 34 | 35 | @Override 36 | public Account findAccountByName(String name) { 37 | Query query = em.createQuery("SELECT a FROM Account a WHERE a.name=?1"); 38 | query.setParameter(1, name); 39 | List accounts = query.getResultList(); 40 | if(accounts.size() == 0) { 41 | return null; 42 | } else { 43 | return accounts.get(0); 44 | } 45 | } 46 | 47 | @Override 48 | public Account createAccount(Account data) { 49 | em.persist(data); 50 | return data; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/repositories/jpa/JpaBlogEntryRepo.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.repositories.jpa; 2 | 3 | import org.springframework.stereotype.Repository; 4 | import tutorial.core.models.entities.Account; 5 | import tutorial.core.models.entities.BlogEntry; 6 | import tutorial.core.repositories.BlogEntryRepo; 7 | import tutorial.core.services.util.BlogEntryList; 8 | 9 | import javax.persistence.EntityManager; 10 | import javax.persistence.PersistenceContext; 11 | import javax.persistence.Query; 12 | import java.util.List; 13 | 14 | /** 15 | * Created by Chris on 7/10/14. 16 | */ 17 | @Repository 18 | public class JpaBlogEntryRepo implements BlogEntryRepo { 19 | @PersistenceContext 20 | private EntityManager em; 21 | 22 | @Override 23 | public BlogEntry findBlogEntry(Long id) { 24 | return em.find(BlogEntry.class, id); 25 | } 26 | 27 | @Override 28 | public BlogEntry deleteBlogEntry(Long id) { 29 | BlogEntry entry = em.find(BlogEntry.class, id); 30 | em.remove(entry); 31 | return entry; 32 | } 33 | 34 | @Override 35 | public BlogEntry updateBlogEntry(Long id, BlogEntry data) { 36 | BlogEntry entry = em.find(BlogEntry.class, id); 37 | entry.setTitle(data.getTitle()); 38 | entry.setContent(data.getContent()); 39 | return entry; 40 | } 41 | 42 | @Override 43 | public BlogEntry createBlogEntry(BlogEntry data) { 44 | em.persist(data); 45 | return data; 46 | } 47 | 48 | @Override 49 | public List findByBlogId(Long blogId) { 50 | Query query = em.createQuery("SELECT b FROM BlogEntry b WHERE b.blog.id=?1"); 51 | query.setParameter(1, blogId); 52 | return query.getResultList(); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/repositories/jpa/JpaBlogRepo.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.repositories.jpa; 2 | 3 | import org.springframework.stereotype.Repository; 4 | import tutorial.core.models.entities.Blog; 5 | import tutorial.core.repositories.BlogRepo; 6 | import tutorial.core.services.util.BlogList; 7 | 8 | import javax.persistence.EntityManager; 9 | import javax.persistence.PersistenceContext; 10 | import javax.persistence.Query; 11 | import java.util.List; 12 | 13 | /** 14 | * Created by Chris on 7/10/14. 15 | */ 16 | @Repository 17 | public class JpaBlogRepo implements BlogRepo { 18 | @PersistenceContext 19 | private EntityManager em; 20 | 21 | @Override 22 | public Blog createBlog(Blog data) { 23 | em.persist(data); 24 | return data; 25 | } 26 | 27 | @Override 28 | public List findAllBlogs() { 29 | Query query = em.createQuery("SELECT b from Blog b"); 30 | return query.getResultList(); 31 | } 32 | 33 | @Override 34 | public Blog findBlog(Long id) { 35 | return em.find(Blog.class, id); 36 | } 37 | 38 | @Override 39 | public Blog findBlogByTitle(String title) { 40 | Query query = em.createQuery("SELECT b from Blog b where b.title=?1"); 41 | query.setParameter(1, title); 42 | List blogs = query.getResultList(); 43 | if(blogs.isEmpty()) { 44 | return null; 45 | } else { 46 | return blogs.get(0); 47 | } 48 | } 49 | 50 | @Override 51 | public List findBlogsByAccount(Long accountId) { 52 | Query query = em.createQuery("SELECT b from Blog b where b.owner.id=?1"); 53 | query.setParameter(1, accountId); 54 | return query.getResultList(); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/security/AuthFailure.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.core.AuthenticationException; 4 | import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler; 5 | import org.springframework.stereotype.Component; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | 12 | /** 13 | * Created by Chris on 10/26/14. 14 | */ 15 | @Component 16 | public class AuthFailure extends SimpleUrlAuthenticationFailureHandler { 17 | @Override 18 | public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException { 19 | response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/security/AuthSuccess.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.core.Authentication; 4 | import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler; 5 | import org.springframework.stereotype.Component; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | 12 | /** 13 | * Created by Chris on 10/26/14. 14 | */ 15 | @Component 16 | public class AuthSuccess extends SimpleUrlAuthenticationSuccessHandler { 17 | @Override 18 | public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException { 19 | response.setStatus(HttpServletResponse.SC_OK); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/security/EntryPointUnauthorizedHandler.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.core.AuthenticationException; 4 | import org.springframework.security.web.AuthenticationEntryPoint; 5 | import org.springframework.stereotype.Component; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import java.io.IOException; 11 | 12 | /** 13 | * Created by Chris on 10/26/14. 14 | */ 15 | @Component 16 | public class EntryPointUnauthorizedHandler implements AuthenticationEntryPoint { 17 | @Override 18 | public void commence(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AuthenticationException e) throws IOException, ServletException { 19 | httpServletResponse.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Access Denied"); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/security/SecurityWebAppInitializer.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer; 4 | 5 | /** 6 | * Created by Chris on 10/26/14. 7 | */ 8 | public class SecurityWebAppInitializer extends AbstractSecurityWebApplicationInitializer { 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/security/UserDetailServiceImpl.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.security; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.security.core.userdetails.UserDetails; 5 | import org.springframework.security.core.userdetails.UserDetailsService; 6 | import org.springframework.security.core.userdetails.UsernameNotFoundException; 7 | import org.springframework.stereotype.Component; 8 | import tutorial.core.models.entities.Account; 9 | import tutorial.core.services.AccountService; 10 | 11 | /** 12 | * Created by Chris on 10/19/14. 13 | */ 14 | @Component 15 | public class UserDetailServiceImpl implements UserDetailsService { 16 | 17 | @Autowired 18 | private AccountService service; 19 | 20 | @Override 21 | public UserDetails loadUserByUsername(String name) throws UsernameNotFoundException { 22 | Account account = service.findByAccountName(name); 23 | if(account == null) { 24 | throw new UsernameNotFoundException("no user found with " + name); 25 | } 26 | return new AccountUserDetails(account); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/AccountService.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services; 2 | 3 | import tutorial.core.models.entities.Account; 4 | import tutorial.core.models.entities.Blog; 5 | import tutorial.core.services.util.AccountList; 6 | import tutorial.core.services.util.BlogList; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * Created by Chris on 6/28/14. 12 | */ 13 | public interface AccountService { 14 | public Account findAccount(Long id); 15 | public Account createAccount(Account data); 16 | public Blog createBlog(Long accountId, Blog data); 17 | public BlogList findBlogsByAccount(Long accountId); 18 | public AccountList findAllAccounts(); 19 | public Account findByAccountName(String name); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/BlogEntryService.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services; 2 | 3 | import tutorial.core.models.entities.BlogEntry; 4 | 5 | /** 6 | * Created by Chris on 6/27/14. 7 | */ 8 | public interface BlogEntryService { 9 | public BlogEntry findBlogEntry(Long id); // Returns the BlogEntry or null if it can't be found 10 | public BlogEntry deleteBlogEntry(Long id); // Deletes the found BlogEntry or returns null if it can't be found 11 | 12 | /** 13 | * @param id the id of the BlogEntry to updateBlogEntry 14 | * @param data the BlogEntry containing the data to be used for the updateBlogEntry 15 | * @return the updated BlogEntry or null if the BlogEntry with the id cannot be found 16 | */ 17 | public BlogEntry updateBlogEntry(Long id, BlogEntry data); 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/BlogService.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services; 2 | 3 | import tutorial.core.models.entities.Blog; 4 | import tutorial.core.services.util.BlogEntryList; 5 | import tutorial.core.models.entities.BlogEntry; 6 | import tutorial.core.services.util.BlogList; 7 | 8 | import java.util.List; 9 | 10 | /** 11 | * Created by Chris on 6/28/14. 12 | */ 13 | public interface BlogService { 14 | /** 15 | * @param blogId the id of the blog to add this BlogEntry to 16 | * @param data the BlogEntry containing the data to be used for creating the new entity 17 | * @return the created BlogEntry with a generated ID 18 | * @throws tutorial.core.services.exceptions.BlogNotFoundException if the blog to add to cannot be found 19 | */ 20 | public BlogEntry createBlogEntry(Long blogId, BlogEntry data); 21 | 22 | public BlogList findAllBlogs(); 23 | 24 | public BlogEntryList findAllBlogEntries(Long blogId); // findBlog all associated blog entries 25 | 26 | public Blog findBlog(Long id); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/exceptions/AccountDoesNotExistException.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.exceptions; 2 | 3 | import tutorial.core.models.entities.Blog; 4 | 5 | /** 6 | * Created by Chris on 6/30/14. 7 | */ 8 | public class AccountDoesNotExistException extends RuntimeException { 9 | public AccountDoesNotExistException(Throwable cause) { 10 | super(cause); 11 | } 12 | 13 | public AccountDoesNotExistException(String message, Throwable cause) { 14 | super(message, cause); 15 | } 16 | 17 | public AccountDoesNotExistException(String message) { 18 | super(message); 19 | } 20 | 21 | public AccountDoesNotExistException() { 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/exceptions/AccountExistsException.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.exceptions; 2 | 3 | /** 4 | * Created by Chris on 6/30/14. 5 | */ 6 | public class AccountExistsException extends RuntimeException { 7 | public AccountExistsException(String message, Throwable cause) { 8 | super(message, cause); 9 | } 10 | 11 | public AccountExistsException(String message) { 12 | super(message); 13 | } 14 | 15 | public AccountExistsException() { 16 | super(); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/exceptions/BlogExistsException.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.exceptions; 2 | 3 | /** 4 | * Created by Chris on 6/30/14. 5 | */ 6 | public class BlogExistsException extends RuntimeException { 7 | public BlogExistsException() { 8 | } 9 | 10 | public BlogExistsException(String message) { 11 | super(message); 12 | } 13 | 14 | public BlogExistsException(String message, Throwable cause) { 15 | super(message, cause); 16 | } 17 | 18 | public BlogExistsException(Throwable cause) { 19 | super(cause); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/exceptions/BlogNotFoundException.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.exceptions; 2 | 3 | /** 4 | * Created by Chris on 6/28/14. 5 | */ 6 | public class BlogNotFoundException extends RuntimeException { 7 | public BlogNotFoundException(String message, Throwable cause) { 8 | super(message, cause); 9 | } 10 | 11 | public BlogNotFoundException(String message) { 12 | super(message); 13 | } 14 | 15 | public BlogNotFoundException() { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/impl/BlogEntryServiceImpl.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.impl; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | import org.springframework.transaction.annotation.Transactional; 6 | import tutorial.core.models.entities.BlogEntry; 7 | import tutorial.core.repositories.BlogEntryRepo; 8 | import tutorial.core.services.BlogEntryService; 9 | 10 | /** 11 | * Created by Chris on 7/10/14. 12 | */ 13 | @Service 14 | @Transactional 15 | public class BlogEntryServiceImpl implements BlogEntryService { 16 | 17 | @Autowired 18 | private BlogEntryRepo entryRepo; 19 | 20 | @Override 21 | public BlogEntry findBlogEntry(Long id) { 22 | return entryRepo.findBlogEntry(id); 23 | } 24 | 25 | @Override 26 | public BlogEntry deleteBlogEntry(Long id) { 27 | return entryRepo.deleteBlogEntry(id); 28 | } 29 | 30 | @Override 31 | public BlogEntry updateBlogEntry(Long id, BlogEntry data) { 32 | return entryRepo.updateBlogEntry(id, data); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/util/AccountList.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.util; 2 | 3 | import tutorial.core.models.entities.Account; 4 | import tutorial.core.models.entities.Blog; 5 | 6 | import java.util.ArrayList; 7 | import java.util.List; 8 | 9 | /** 10 | * Created by Chris on 7/22/14. 11 | */ 12 | public class AccountList { 13 | 14 | private List accounts = new ArrayList(); 15 | 16 | public AccountList(List list) { 17 | this.accounts = list; 18 | } 19 | 20 | public List getAccounts() { 21 | return accounts; 22 | } 23 | 24 | public void setAccounts(List accounts) { 25 | this.accounts = accounts; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/util/BlogEntryList.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.util; 2 | 3 | import tutorial.core.models.entities.BlogEntry; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * Created by Chris on 6/28/14. 10 | */ 11 | public class BlogEntryList { 12 | private List entries = new ArrayList(); 13 | private Long blogId; 14 | 15 | public BlogEntryList(Long blogId, List entries) { 16 | this.blogId = blogId; 17 | this.entries = entries; 18 | } 19 | 20 | public List getEntries() { 21 | return entries; 22 | } 23 | 24 | public void setEntries(List entries) { 25 | this.entries = entries; 26 | } 27 | 28 | public Long getBlogId() { 29 | return blogId; 30 | } 31 | 32 | public void setBlogId(Long blogId) { 33 | this.blogId = blogId; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/tutorial/core/services/util/BlogList.java: -------------------------------------------------------------------------------- 1 | package tutorial.core.services.util; 2 | 3 | import tutorial.core.models.entities.Blog; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * Created by Chris on 7/1/14. 10 | */ 11 | public class BlogList { 12 | 13 | private List blogs = new ArrayList(); 14 | 15 | public BlogList(List resultList) { 16 | this.blogs = resultList; 17 | } 18 | 19 | public List getBlogs() { 20 | return blogs; 21 | } 22 | 23 | public void setBlogs(List blogs) { 24 | this.blogs = blogs; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/exceptions/BadRequestException.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.exceptions; 2 | 3 | import org.springframework.http.HttpStatus; 4 | import org.springframework.web.bind.annotation.ResponseStatus; 5 | 6 | /** 7 | * Created by Chris on 6/30/14. 8 | */ 9 | @ResponseStatus(value= HttpStatus.BAD_REQUEST) 10 | public class BadRequestException extends RuntimeException { 11 | public BadRequestException() { 12 | } 13 | 14 | public BadRequestException(Throwable cause) { 15 | super(cause); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/exceptions/ConflictException.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.exceptions; 2 | 3 | import org.springframework.http.HttpStatus; 4 | import org.springframework.web.bind.annotation.ResponseStatus; 5 | 6 | /** 7 | * Created by Chris on 6/30/14. 8 | */ 9 | @ResponseStatus(value= HttpStatus.CONFLICT) 10 | public class ConflictException extends RuntimeException { 11 | public ConflictException() { 12 | } 13 | 14 | public ConflictException(Throwable cause) { 15 | super(cause); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/exceptions/ForbiddenException.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.exceptions; 2 | 3 | import org.springframework.http.HttpStatus; 4 | import org.springframework.web.bind.annotation.ResponseStatus; 5 | 6 | /** 7 | * Created by Chris on 10/19/14. 8 | */ 9 | @ResponseStatus(value= HttpStatus.FORBIDDEN) 10 | public class ForbiddenException extends RuntimeException { 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/exceptions/NotFoundException.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.exceptions; 2 | 3 | import org.springframework.http.HttpStatus; 4 | import org.springframework.web.bind.annotation.ResponseStatus; 5 | 6 | /** 7 | * Created by Chris on 6/28/14. 8 | */ 9 | 10 | @ResponseStatus(value= HttpStatus.NOT_FOUND) 11 | public class NotFoundException extends RuntimeException { 12 | public NotFoundException() { 13 | } 14 | 15 | public NotFoundException(Throwable cause) { 16 | super(cause); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/AccountListResource.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources; 2 | 3 | import org.springframework.hateoas.ResourceSupport; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * Created by Chris on 7/22/14. 10 | */ 11 | public class AccountListResource extends ResourceSupport { 12 | private List accounts = new ArrayList(); 13 | 14 | public List getAccounts() { 15 | return accounts; 16 | } 17 | 18 | public void setAccounts(List accounts) { 19 | this.accounts = accounts; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/AccountResource.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources; 2 | 3 | import com.fasterxml.jackson.annotation.JsonIgnore; 4 | import com.fasterxml.jackson.annotation.JsonProperty; 5 | import org.springframework.hateoas.ResourceSupport; 6 | import tutorial.core.models.entities.Account; 7 | 8 | /** 9 | * Created by Chris on 6/28/14. 10 | */ 11 | public class AccountResource extends ResourceSupport { 12 | private String name; 13 | 14 | private String password; 15 | 16 | private Long rid; 17 | 18 | public Long getRid() { 19 | return rid; 20 | } 21 | 22 | public void setRid(Long rid) { 23 | this.rid = rid; 24 | } 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | @JsonIgnore 34 | public String getPassword() { 35 | return password; 36 | } 37 | 38 | @JsonProperty 39 | public void setPassword(String password) { 40 | this.password = password; 41 | } 42 | 43 | public Account toAccount() { 44 | Account account = new Account(); 45 | account.setName(name); 46 | account.setPassword(password); 47 | return account; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/BlogEntryListResource.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources; 2 | 3 | import org.springframework.hateoas.ResourceSupport; 4 | 5 | import java.util.List; 6 | 7 | /** 8 | * Created by Chris on 6/28/14. 9 | */ 10 | public class BlogEntryListResource extends ResourceSupport { 11 | private List entries; 12 | 13 | public List getEntries() { 14 | return entries; 15 | } 16 | 17 | public void setEntries(List entries) { 18 | this.entries = entries; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/BlogEntryResource.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources; 2 | 3 | import org.springframework.hateoas.ResourceSupport; 4 | import tutorial.core.models.entities.BlogEntry; 5 | 6 | /** 7 | * Created by Chris on 6/27/14. 8 | */ 9 | public class BlogEntryResource extends ResourceSupport { 10 | private String title; 11 | 12 | private String content; 13 | 14 | private Long rid; 15 | 16 | public Long getRid() { 17 | return rid; 18 | } 19 | 20 | public void setRid(Long rid) { 21 | this.rid = rid; 22 | } 23 | 24 | public String getTitle() { 25 | return title; 26 | } 27 | 28 | public void setTitle(String title) { 29 | this.title = title; 30 | } 31 | 32 | public String getContent() { 33 | return content; 34 | } 35 | 36 | public void setContent(String content) { 37 | this.content = content; 38 | } 39 | 40 | public BlogEntry toBlogEntry() { 41 | BlogEntry entry = new BlogEntry(); 42 | entry.setTitle(title); 43 | entry.setContent(content); 44 | return entry; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/BlogListResource.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources; 2 | 3 | import org.springframework.hateoas.ResourceSupport; 4 | import tutorial.core.models.entities.Blog; 5 | 6 | import java.util.ArrayList; 7 | import java.util.List; 8 | 9 | /** 10 | * Created by Chris on 7/1/14. 11 | */ 12 | public class BlogListResource extends ResourceSupport { 13 | private List blogs = new ArrayList(); 14 | 15 | public List getBlogs() { 16 | return blogs; 17 | } 18 | 19 | public void setBlogs(List blogs) { 20 | this.blogs = blogs; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/BlogResource.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources; 2 | 3 | import org.springframework.hateoas.ResourceSupport; 4 | import tutorial.core.models.entities.Blog; 5 | 6 | /** 7 | * Created by Chris on 6/30/14. 8 | */ 9 | public class BlogResource extends ResourceSupport { 10 | 11 | private String title; 12 | 13 | private Long rid; 14 | 15 | public Long getRid() { 16 | return rid; 17 | } 18 | 19 | public void setRid(Long rid) { 20 | this.rid = rid; 21 | } 22 | 23 | public String getTitle() { 24 | return title; 25 | } 26 | 27 | public void setTitle(String title) { 28 | this.title = title; 29 | } 30 | 31 | public Blog toBlog() { 32 | Blog blog = new Blog(); 33 | blog.setTitle(title); 34 | return blog; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/asm/AccountListResourceAsm.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources.asm; 2 | 3 | import org.springframework.hateoas.mvc.ResourceAssemblerSupport; 4 | import tutorial.core.services.util.AccountList; 5 | import tutorial.rest.mvc.AccountController; 6 | import tutorial.rest.resources.AccountListResource; 7 | import tutorial.rest.resources.AccountResource; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * Created by Chris on 7/22/14. 13 | */ 14 | public class AccountListResourceAsm extends ResourceAssemblerSupport { 15 | 16 | 17 | public AccountListResourceAsm() { 18 | super(AccountController.class, AccountListResource.class); 19 | } 20 | 21 | @Override 22 | public AccountListResource toResource(AccountList accountList) { 23 | List resList = new AccountResourceAsm().toResources(accountList.getAccounts()); 24 | AccountListResource finalRes = new AccountListResource(); 25 | finalRes.setAccounts(resList); 26 | return finalRes; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/asm/AccountResourceAsm.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources.asm; 2 | 3 | import org.springframework.hateoas.mvc.ResourceAssemblerSupport; 4 | import tutorial.core.models.entities.Account; 5 | import tutorial.rest.mvc.AccountController; 6 | import tutorial.rest.resources.AccountResource; 7 | 8 | import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*; 9 | 10 | /** 11 | * Created by Chris on 6/28/14. 12 | */ 13 | public class AccountResourceAsm extends ResourceAssemblerSupport { 14 | public AccountResourceAsm() { 15 | super(AccountController.class, AccountResource.class); 16 | } 17 | 18 | @Override 19 | public AccountResource toResource(Account account) { 20 | AccountResource res = new AccountResource(); 21 | res.setName(account.getName()); 22 | res.setPassword(account.getPassword()); 23 | res.setRid(account.getId()); 24 | res.add(linkTo(methodOn(AccountController.class).getAccount(account.getId())).withSelfRel()); 25 | res.add(linkTo(methodOn(AccountController.class).findAllBlogs(account.getId())).withRel("blogs")); 26 | return res; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/asm/BlogEntryListResourceAsm.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources.asm; 2 | 3 | import org.springframework.hateoas.mvc.ResourceAssemblerSupport; 4 | import tutorial.core.services.util.BlogEntryList; 5 | import tutorial.rest.mvc.BlogController; 6 | import tutorial.rest.resources.BlogEntryListResource; 7 | import tutorial.rest.resources.BlogEntryResource; 8 | import java.util.List; 9 | 10 | import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*; 11 | 12 | /** 13 | * Created by Chris on 6/28/14. 14 | */ 15 | public class BlogEntryListResourceAsm extends ResourceAssemblerSupport { 16 | public BlogEntryListResourceAsm() { 17 | super(BlogController.class, BlogEntryListResource.class); 18 | } 19 | 20 | @Override 21 | public BlogEntryListResource toResource(BlogEntryList list) { 22 | List resources = new BlogEntryResourceAsm().toResources(list.getEntries()); 23 | BlogEntryListResource listResource = new BlogEntryListResource(); 24 | listResource.setEntries(resources); 25 | listResource.add(linkTo(methodOn(BlogController.class).findAllBlogEntries(list.getBlogId())).withSelfRel()); 26 | return listResource; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/asm/BlogEntryResourceAsm.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources.asm; 2 | 3 | import org.springframework.hateoas.Link; 4 | import org.springframework.hateoas.mvc.ResourceAssemblerSupport; 5 | import tutorial.core.models.entities.BlogEntry; 6 | import tutorial.rest.mvc.BlogController; 7 | import tutorial.rest.mvc.BlogEntryController; 8 | import tutorial.rest.resources.BlogEntryResource; 9 | import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*; 10 | 11 | /** 12 | * Created by Chris on 6/27/14. 13 | */ 14 | public class BlogEntryResourceAsm extends ResourceAssemblerSupport { 15 | 16 | public BlogEntryResourceAsm() 17 | { 18 | super(BlogEntryController.class, BlogEntryResource.class); 19 | } 20 | 21 | @Override 22 | public BlogEntryResource toResource(BlogEntry blogEntry) { 23 | BlogEntryResource res = new BlogEntryResource(); 24 | res.setTitle(blogEntry.getTitle()); 25 | res.setContent(blogEntry.getContent()); 26 | res.setRid(blogEntry.getId()); 27 | Link self = linkTo(BlogEntryController.class).slash(blogEntry.getId()).withSelfRel(); 28 | res.add(self); 29 | if(blogEntry.getBlog() != null) 30 | { 31 | res.add((linkTo(BlogController.class).slash(blogEntry.getBlog().getId()).withRel("blog"))); 32 | } 33 | return res; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/asm/BlogListResourceAsm.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources.asm; 2 | 3 | import org.springframework.hateoas.mvc.ResourceAssemblerSupport; 4 | import tutorial.core.models.entities.Blog; 5 | import tutorial.core.services.util.BlogList; 6 | import tutorial.rest.mvc.BlogController; 7 | import tutorial.rest.resources.BlogListResource; 8 | 9 | import java.util.List; 10 | 11 | import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*; 12 | 13 | /** 14 | * Created by Chris on 7/1/14. 15 | */ 16 | public class BlogListResourceAsm extends ResourceAssemblerSupport { 17 | 18 | public BlogListResourceAsm() 19 | { 20 | super(BlogController.class, BlogListResource.class); 21 | } 22 | 23 | @Override 24 | public BlogListResource toResource(BlogList blogList) { 25 | BlogListResource res = new BlogListResource(); 26 | res.setBlogs(new BlogResourceAsm().toResources(blogList.getBlogs())); 27 | return res; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/tutorial/rest/resources/asm/BlogResourceAsm.java: -------------------------------------------------------------------------------- 1 | package tutorial.rest.resources.asm; 2 | 3 | import org.springframework.hateoas.mvc.ResourceAssemblerSupport; 4 | import tutorial.core.models.entities.Blog; 5 | import tutorial.rest.mvc.AccountController; 6 | import tutorial.rest.mvc.BlogController; 7 | import tutorial.rest.resources.BlogResource; 8 | 9 | import static org.springframework.hateoas.mvc.ControllerLinkBuilder.*; 10 | 11 | /** 12 | * Created by Chris on 6/30/14. 13 | */ 14 | public class BlogResourceAsm extends ResourceAssemblerSupport { 15 | public BlogResourceAsm() { 16 | super(BlogController.class, BlogResource.class); 17 | } 18 | 19 | @Override 20 | public BlogResource toResource(Blog blog) { 21 | BlogResource resource = new BlogResource(); 22 | resource.setTitle(blog.getTitle()); 23 | resource.add(linkTo(BlogController.class).slash(blog.getId()).withSelfRel()); 24 | resource.add(linkTo(BlogController.class).slash(blog.getId()).slash("blog-entries").withRel("entries")); 25 | resource.setRid(blog.getId()); 26 | if(blog.getOwner() != null) 27 | resource.add(linkTo(AccountController.class).slash(blog.getOwner().getId()).withRel("owner")); 28 | return resource; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/jsp/view.jsp: -------------------------------------------------------------------------------- 1 | Hello World -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/mvc-dispatcher-servlet.xml: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | contextConfigLocation 10 | classpath:spring/business-config.xml 11 | 12 | 13 | 14 | org.springframework.web.context.ContextLoaderListener 15 | 16 | 17 | 18 | mvc-dispatcher 19 | org.springframework.web.servlet.DispatcherServlet 20 | 21 | 22 | 23 | mvc-dispatcher 24 | / 25 | 26 | -------------------------------------------------------------------------------- /src/main/webapp/app/.bowerrc: -------------------------------------------------------------------------------- 1 | { 2 | "directory": "vendor", 3 | "json": "bower.json" 4 | } 5 | 6 | -------------------------------------------------------------------------------- /src/main/webapp/app/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /src/main/webapp/app/.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/.gitmodules -------------------------------------------------------------------------------- /src/main/webapp/app/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | 5 | before_script: 6 | - export DISPLAY=:99.0 7 | - sh -e /etc/init.d/xvfb start 8 | - npm install --quiet -g grunt-cli karma bower 9 | - npm install 10 | - bower install 11 | 12 | script: grunt 13 | 14 | -------------------------------------------------------------------------------- /src/main/webapp/app/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Josh David Miller 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /src/main/webapp/app/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ng-boilerplate", 3 | "version": "0.3.2", 4 | "devDependencies": { 5 | "angular": "~1.2", 6 | "angular-mocks": "~1.2", 7 | "bootstrap": "~3.1", 8 | "angular-bootstrap": "~0.10.0", 9 | "angular-ui-router": "~0.2" 10 | }, 11 | "dependencies": {} 12 | } 13 | -------------------------------------------------------------------------------- /src/main/webapp/app/build/assets/README.md: -------------------------------------------------------------------------------- 1 | # The `src/assets` Directory 2 | 3 | There's really not much to say here. Every file in this directory is recursively transferred to `dist/assets/`. 4 | 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/build/src/app/about/about.js: -------------------------------------------------------------------------------- 1 | angular.module( 'ngBoilerplate.about', [ 2 | 'ui.router', 3 | 'placeholders', 4 | 'ui.bootstrap' 5 | ]) 6 | 7 | .config(function config( $stateProvider ) { 8 | $stateProvider.state( 'about', { 9 | url: '/about', 10 | views: { 11 | "main": { 12 | controller: 'AboutCtrl', 13 | templateUrl: 'about/about.tpl.html' 14 | } 15 | }, 16 | data:{ pageTitle: 'What is It?' } 17 | }); 18 | }) 19 | 20 | .controller( 'AboutCtrl', function AboutCtrl( $scope ) { 21 | // This is simple a demo for UI Boostrap. 22 | $scope.dropdownDemoItems = [ 23 | "The first choice!", 24 | "And another choice for you.", 25 | "but wait! A third!" 26 | ]; 27 | }) 28 | 29 | ; 30 | -------------------------------------------------------------------------------- /src/main/webapp/app/build/src/app/app.js: -------------------------------------------------------------------------------- 1 | angular.module( 'ngBoilerplate', [ 2 | 'templates-app', 3 | 'templates-common', 4 | 'ngBoilerplate.home', 5 | 'ngBoilerplate.about', 6 | 'ngBoilerplate.account', 7 | 'ngBoilerplate.blog', 8 | 'ui.router', 9 | 'hateoas' 10 | ]) 11 | 12 | .config( function myAppConfig ( $stateProvider, $urlRouterProvider, HateoasInterceptorProvider) { 13 | $urlRouterProvider.otherwise( '/home' ); 14 | HateoasInterceptorProvider.transformAllResponses(); 15 | }) 16 | 17 | .run( function run () { 18 | }) 19 | 20 | .controller( 'AppCtrl', function AppCtrl ( $scope, $location ) { 21 | $scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams){ 22 | if ( angular.isDefined( toState.data.pageTitle ) ) { 23 | $scope.pageTitle = toState.data.pageTitle + ' | ngBoilerplate' ; 24 | } 25 | }); 26 | }) 27 | 28 | ; 29 | 30 | -------------------------------------------------------------------------------- /src/main/webapp/app/build/src/app/home/home.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Each section of the site has its own module. It probably also has 3 | * submodules, though this boilerplate is too simple to demonstrate it. Within 4 | * `src/app/home`, however, could exist several additional folders representing 5 | * additional modules that would then be listed as dependencies of this one. 6 | * For example, a `note` section could have the submodules `note.create`, 7 | * `note.delete`, `note.edit`, etc. 8 | * 9 | * Regardless, so long as dependencies are managed correctly, the build process 10 | * will automatically take take of the rest. 11 | * 12 | * The dependencies block here is also where component dependencies should be 13 | * specified, as shown below. 14 | */ 15 | angular.module( 'ngBoilerplate.home', [ 16 | 'ui.router', 17 | 'plusOne', 18 | 'ngBoilerplate.account' 19 | ]) 20 | 21 | /** 22 | * Each section or module of the site can also have its own routes. AngularJS 23 | * will handle ensuring they are all available at run-time, but splitting it 24 | * this way makes each module more "self-contained". 25 | */ 26 | .config(function config( $stateProvider ) { 27 | $stateProvider.state( 'home', { 28 | url: '/home', 29 | views: { 30 | "main": { 31 | controller: 'HomeCtrl', 32 | templateUrl: 'home/home.tpl.html' 33 | } 34 | }, 35 | data:{ pageTitle: 'Home' } 36 | }); 37 | }) 38 | 39 | /** 40 | * And of course we define a controller for our route. 41 | */ 42 | .controller( 'HomeCtrl', function HomeController( $scope, sessionService) { 43 | $scope.isLoggedIn = sessionService.isLoggedIn; 44 | $scope.logout = sessionService.logout; 45 | }) 46 | 47 | ; 48 | 49 | -------------------------------------------------------------------------------- /src/main/webapp/app/build/src/common/plusOne/plusOne.js: -------------------------------------------------------------------------------- 1 | angular.module( 'plusOne', [] ) 2 | 3 | .directive( 'plusOne', function() { 4 | return { 5 | link: function( scope, element, attrs ) { 6 | gapi.plusone.render( element[0], { 7 | "size": "medium", 8 | "href": "http://bit.ly/ngBoilerplate" 9 | }); 10 | } 11 | }; 12 | }) 13 | 14 | ; 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/app/build/templates-common.js: -------------------------------------------------------------------------------- 1 | angular.module('templates-common', []); 2 | 3 | -------------------------------------------------------------------------------- /src/main/webapp/app/build/vendor/angular-base64/angular-base64.min.js: -------------------------------------------------------------------------------- 1 | !function(){"use strict";angular.module("base64",[]).constant("$base64",function(){function a(a,b){var c=f.indexOf(a.charAt(b));if(-1==c)throw"Cannot decode base64";return c}function b(b){b=""+b;var c,d,f,g=b.length;if(0==g)return b;if(0!=g%4)throw"Cannot decode base64";c=0,b.charAt(g-1)==e&&(c=1,b.charAt(g-2)==e&&(c=2),g-=4);var h=[];for(d=0;g>d;d+=4)f=a(b,d)<<18|a(b,d+1)<<12|a(b,d+2)<<6|a(b,d+3),h.push(String.fromCharCode(f>>16,255&f>>8,255&f));switch(c){case 1:f=a(b,d)<<18|a(b,d+1)<<12|a(b,d+2)<<6,h.push(String.fromCharCode(f>>16,255&f>>8));break;case 2:f=a(b,d)<<18|a(b,d+1)<<12,h.push(String.fromCharCode(f>>16))}return h.join("")}function c(a,b){var c=a.charCodeAt(b);if(c>255)throw"INVALID_CHARACTER_ERR: DOM Exception 5";return c}function d(a){if(1!=arguments.length)throw"SyntaxError: Not enough arguments";var b,d,g=[];a=""+a;var h=a.length-a.length%3;if(0==a.length)return a;for(b=0;h>b;b+=3)d=c(a,b)<<16|c(a,b+1)<<8|c(a,b+2),g.push(f.charAt(d>>18)),g.push(f.charAt(63&d>>12)),g.push(f.charAt(63&d>>6)),g.push(f.charAt(63&d));switch(a.length-h){case 1:d=c(a,b)<<16,g.push(f.charAt(d>>18)+f.charAt(63&d>>12)+e+e);break;case 2:d=c(a,b)<<16|c(a,b+1)<<8,g.push(f.charAt(d>>18)+f.charAt(63&d>>12)+f.charAt(63&d>>6)+e)}return g.join("")}var e="=",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{encode:d,decode:b}}())}(); -------------------------------------------------------------------------------- /src/main/webapp/app/changelog.tpl: -------------------------------------------------------------------------------- 1 | 2 | # <%= version%> (<%= today%>) 3 | 4 | <% if (_(changelog.feat).size() > 0) { %> ## Features 5 | <% _(changelog.feat).forEach(function(changes, scope) { %> 6 | - **<%= scope%>:** 7 | <% changes.forEach(function(change) { %> - <%= change.msg%> (<%= helpers.commitLink(change.sha1) %>) 8 | <% }); %> 9 | <% }); %> <% } %> 10 | 11 | <% if (_(changelog.fix).size() > 0) { %> ## Fixes 12 | <% _(changelog.fix).forEach(function(changes, scope) { %> 13 | - **<%= scope%>:** 14 | <% changes.forEach(function(change) { %> - <%= change.msg%> (<%= helpers.commitLink(change.sha1) %>) 15 | <% }); %> 16 | <% }); %> <% } %> 17 | 18 | <% if (_(changelog.breaking).size() > 0) { %> ## Breaking Changes 19 | <% _(changelog.breaking).forEach(function(changes, scope) { %> 20 | - **<%= scope%>:** 21 | <% changes.forEach(function(change) { %> <%= change.msg%> 22 | <% }); %> 23 | <% }); %> <% } %> 24 | -------------------------------------------------------------------------------- /src/main/webapp/app/module.prefix: -------------------------------------------------------------------------------- 1 | (function ( window, angular, undefined ) { 2 | -------------------------------------------------------------------------------- /src/main/webapp/app/module.suffix: -------------------------------------------------------------------------------- 1 | })( window, window.angular ); 2 | -------------------------------------------------------------------------------- /src/main/webapp/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "Josh David Miller", 3 | "name": "ngbp", 4 | "version": "0.3.2", 5 | "homepage": "https://github.com/ngbp/ngbp", 6 | "licenses": { 7 | "type": "MIT", 8 | "url": "https://raw.github.com/ngbp/ngbp/master/LICENSE" 9 | }, 10 | "bugs": "https://github.com/ngbp/ngbp/issues", 11 | "repository": { 12 | "type": "git", 13 | "url": "git@github.com:ngbp/ngbp.git" 14 | }, 15 | "dependencies": {}, 16 | "devDependencies": { 17 | "grunt": "~0.4.1", 18 | "grunt-contrib-less": "~0.11.0", 19 | "grunt-contrib-clean": "^0.4.1", 20 | "grunt-contrib-copy": "^0.4.1", 21 | "grunt-contrib-jshint": "^0.4.3", 22 | "grunt-contrib-concat": "^0.3.0", 23 | "grunt-contrib-watch": "^0.4.4", 24 | "grunt-contrib-uglify": "^0.2.7", 25 | "grunt-ngmin": "0.0.2", 26 | "grunt-html2js": "^0.1.9", 27 | "grunt-contrib-coffee": "^0.7.0", 28 | "grunt-coffeelint": "~0.0.10", 29 | "grunt-conventional-changelog": "^0.1.2", 30 | "grunt-bump": "0.0.6", 31 | "karma-firefox-launcher": "^0.1.3", 32 | "karma-jasmine": "^0.1.5", 33 | "grunt-karma": "^0.8.2", 34 | "karma-coffee-preprocessor": "^0.2.1", 35 | "karma": "^0.12.9" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/about/about.js: -------------------------------------------------------------------------------- 1 | angular.module( 'ngBoilerplate.about', [ 2 | 'ui.router', 3 | 'placeholders', 4 | 'ui.bootstrap' 5 | ]) 6 | 7 | .config(function config( $stateProvider ) { 8 | $stateProvider.state( 'about', { 9 | url: '/about', 10 | views: { 11 | "main": { 12 | controller: 'AboutCtrl', 13 | templateUrl: 'about/about.tpl.html' 14 | } 15 | }, 16 | data:{ pageTitle: 'What is It?' } 17 | }); 18 | }) 19 | 20 | .controller( 'AboutCtrl', function AboutCtrl( $scope ) { 21 | // This is simple a demo for UI Boostrap. 22 | $scope.dropdownDemoItems = [ 23 | "The first choice!", 24 | "And another choice for you.", 25 | "but wait! A third!" 26 | ]; 27 | }) 28 | 29 | ; 30 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/account/login.tpl.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Login 4 |

5 |
6 |
7 | 8 | 9 |
10 |
11 | 12 | 13 |
14 | 15 |
16 |
17 | 18 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/account/register.tpl.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Register 4 |

5 |
6 |
7 | 8 | 9 |
10 |
11 | 12 | 13 |
14 | 15 |
16 |
17 | 18 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/account/search.tpl.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 16 | 17 |
Account NameActions
{{account.name}} 12 | 13 | Manage 14 | 15 |
18 |
-------------------------------------------------------------------------------- /src/main/webapp/app/src/app/app.js: -------------------------------------------------------------------------------- 1 | angular.module( 'ngBoilerplate', [ 2 | 'templates-app', 3 | 'templates-common', 4 | 'ngBoilerplate.home', 5 | 'ngBoilerplate.about', 6 | 'ngBoilerplate.account', 7 | 'ngBoilerplate.blog', 8 | 'ui.router', 9 | 'hateoas' 10 | ]) 11 | 12 | .config( function myAppConfig ( $stateProvider, $urlRouterProvider, HateoasInterceptorProvider) { 13 | $urlRouterProvider.otherwise( '/home' ); 14 | HateoasInterceptorProvider.transformAllResponses(); 15 | }) 16 | 17 | .run( function run () { 18 | }) 19 | 20 | .controller( 'AppCtrl', function AppCtrl ( $scope, $location ) { 21 | $scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams){ 22 | if ( angular.isDefined( toState.data.pageTitle ) ) { 23 | $scope.pageTitle = toState.data.pageTitle + ' | ngBoilerplate' ; 24 | } 25 | }); 26 | }) 27 | 28 | ; 29 | 30 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/app.spec.js: -------------------------------------------------------------------------------- 1 | describe( 'AppCtrl', function() { 2 | describe( 'isCurrentUrl', function() { 3 | var AppCtrl, $location, $scope; 4 | 5 | beforeEach( module( 'ngBoilerplate' ) ); 6 | 7 | beforeEach( inject( function( $controller, _$location_, $rootScope ) { 8 | $location = _$location_; 9 | $scope = $rootScope.$new(); 10 | AppCtrl = $controller( 'AppCtrl', { $location: $location, $scope: $scope }); 11 | })); 12 | 13 | it( 'should pass a dummy test', inject( function() { 14 | expect( AppCtrl ).toBeTruthy(); 15 | })); 16 | }); 17 | }); 18 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/blog/blog.less: -------------------------------------------------------------------------------- 1 | .component-group { 2 | padding: 10px 0px; 3 | } -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/blog/manage-blogs.tpl.html: -------------------------------------------------------------------------------- 1 |
2 |

Blog Management For {{name}}

3 |
4 |
5 |
6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | 14 | 15 | 16 | 17 | 18 | 23 | 24 |
Blog NameAction
{{blog.title}} 19 | 20 | Delete 21 | 22 |
25 |
26 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/home/home.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Each section of the site has its own module. It probably also has 3 | * submodules, though this boilerplate is too simple to demonstrate it. Within 4 | * `src/app/home`, however, could exist several additional folders representing 5 | * additional modules that would then be listed as dependencies of this one. 6 | * For example, a `note` section could have the submodules `note.create`, 7 | * `note.delete`, `note.edit`, etc. 8 | * 9 | * Regardless, so long as dependencies are managed correctly, the build process 10 | * will automatically take take of the rest. 11 | * 12 | * The dependencies block here is also where component dependencies should be 13 | * specified, as shown below. 14 | */ 15 | angular.module( 'ngBoilerplate.home', [ 16 | 'ui.router', 17 | 'plusOne', 18 | 'ngBoilerplate.account' 19 | ]) 20 | 21 | /** 22 | * Each section or module of the site can also have its own routes. AngularJS 23 | * will handle ensuring they are all available at run-time, but splitting it 24 | * this way makes each module more "self-contained". 25 | */ 26 | .config(function config( $stateProvider ) { 27 | $stateProvider.state( 'home', { 28 | url: '/home', 29 | views: { 30 | "main": { 31 | controller: 'HomeCtrl', 32 | templateUrl: 'home/home.tpl.html' 33 | } 34 | }, 35 | data:{ pageTitle: 'Home' } 36 | }); 37 | }) 38 | 39 | /** 40 | * And of course we define a controller for our route. 41 | */ 42 | .controller( 'HomeCtrl', function HomeController( $scope, sessionService) { 43 | $scope.isLoggedIn = sessionService.isLoggedIn; 44 | $scope.logout = sessionService.logout; 45 | }) 46 | 47 | ; 48 | 49 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/home/home.less: -------------------------------------------------------------------------------- 1 | .jumbotron { 2 | margin: 40px 0 80px 0; 3 | text-align: center; 4 | 5 | h1 { 6 | margin-bottom: 20px; 7 | font-size: 55px; 8 | line-height: 1; 9 | } 10 | 11 | .lead { 12 | font-size: 24px; 13 | line-height: 1.25; 14 | } 15 | 16 | .btn { 17 | font-size: 21px; 18 | padding: 14px 24px; 19 | } 20 | } 21 | 22 | .marketing { 23 | .row { 24 | margin-bottom: 10px; 25 | } 26 | 27 | .row:last-child { 28 | margin-bottom: 0; 29 | } 30 | 31 | h4 [class*=" icon-"], h4 [class^="icon-"] { 32 | margin-right: 5px; 33 | vertical-align: -10%; 34 | font-size: 28px; 35 | line-height: 1; 36 | } 37 | } 38 | .row.no-gutters { 39 | margin-right: 0; 40 | margin-left: 0; 41 | } 42 | .row.no-gutters [class^="col-"], 43 | .row.no-gutters [class*=" col-"]{ 44 | padding-right: 0; 45 | padding-left: 0; 46 | } -------------------------------------------------------------------------------- /src/main/webapp/app/src/app/home/home.spec.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Tests sit right alongside the file they are testing, which is more intuitive 3 | * and portable than separating `src` and `test` directories. Additionally, the 4 | * build process will exclude all `.spec.js` files from the build 5 | * automatically. 6 | */ 7 | describe( 'home section', function() { 8 | beforeEach( module( 'ngBoilerplate.home' ) ); 9 | 10 | it( 'should have a dummy test', inject( function() { 11 | expect( true ).toBeTruthy(); 12 | })); 13 | }); 14 | 15 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/assets/README.md: -------------------------------------------------------------------------------- 1 | # The `src/assets` Directory 2 | 3 | There's really not much to say here. Every file in this directory is recursively transferred to `dist/assets/`. 4 | 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/common/README.md: -------------------------------------------------------------------------------- 1 | # The `src/common/` Directory 2 | 3 | The `src/common/` directory houses internal and third-party re-usable 4 | components. Essentially, this folder is for everything that isn't completely 5 | specific to this application. 6 | 7 | Each component resides in its own directory that may then be structured any way 8 | the developer desires. The build system will read all `*.js` files that do not 9 | end in `.spec.js` as source files to be included in the final build, all 10 | `*.spec.js` files as unit tests to be executed, and all `*.tpl.html` files as 11 | templates to compiled into the `$templateCache`. There is currently no way to 12 | handle components that do not meet this pattern. 13 | 14 | ``` 15 | src/ 16 | |- common/ 17 | | |- plusOne/ 18 | ``` 19 | 20 | - `plusOne` - a simple directive to load a Google +1 Button on an element. 21 | 22 | Every component contained here should be drag-and-drop reusable in any other 23 | project; they should depend on no other components that aren't similarly 24 | drag-and-drop reusable. 25 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/common/plusOne/plusOne.js: -------------------------------------------------------------------------------- 1 | angular.module( 'plusOne', [] ) 2 | 3 | .directive( 'plusOne', function() { 4 | return { 5 | link: function( scope, element, attrs ) { 6 | gapi.plusone.render( element[0], { 7 | "size": "medium", 8 | "href": "http://bit.ly/ngBoilerplate" 9 | }); 10 | } 11 | }; 12 | }) 13 | 14 | ; 15 | 16 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/less/README.md: -------------------------------------------------------------------------------- 1 | # The `src/less` Directory 2 | 3 | This folder is actually fairly self-explanatory: it contains your LESS/CSS files to be compiled during the build. 4 | The only important thing to note is that *only* `main.less` will be processed during the build, meaning that all 5 | other stylesheets must be *imported* into that one. 6 | 7 | This should operate somewhat like the routing; the `main.less` file contains all of the site-wide styles, while 8 | any styles that are route-specific should be imported into here from LESS files kept alongside the JavaScript 9 | and HTML sources of that component. For example, the `home` section of the site has some custom styles, which 10 | are imported like so: 11 | 12 | ```css 13 | @import '../app/home/home.less'; 14 | ``` 15 | 16 | The same principal, though not demonstrated in the code, would also apply to reusable components. CSS or LESS 17 | files from external components would also be imported. If, for example, we had a Twitter feed directive with 18 | an accompanying template and style, we would similarly import it: 19 | 20 | ```css 21 | @import '../common/twitterFeed/twitterFeedDirective.less'; 22 | ``` 23 | 24 | Using this decentralized approach for all our code (JavaScript, HTML, and CSS) creates a framework where a 25 | component's directory can be dragged and dropped into *any other project* and it will "just work". 26 | 27 | I would like to eventually automate the importing during the build so that manually importing it here would no 28 | longer be required, but more thought must be put in to whether this is the best approach. 29 | -------------------------------------------------------------------------------- /src/main/webapp/app/src/less/variables.less: -------------------------------------------------------------------------------- 1 | /** 2 | * These are the variables used throughout the application. This is where 3 | * overwrites that are not specific to components should be maintained. 4 | */ 5 | 6 | /** 7 | * Typography-related. 8 | */ 9 | 10 | @sansFontFamily: 'Roboto', sans-serif; 11 | 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-base64/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-base64", 3 | "version": "2.0.2", 4 | "main": [ 5 | "angular-base64.js" 6 | ], 7 | "ignore": [ 8 | "package.json", 9 | "Gruntfile.js" 10 | ], 11 | "dependencies": { 12 | "angular": ">= 1.0.8" 13 | }, 14 | "homepage": "https://github.com/ninjatronic/angular-base64", 15 | "_release": "2.0.2", 16 | "_resolution": { 17 | "type": "version", 18 | "tag": "v2.0.2", 19 | "commit": "c99806416e20a3059f47e1ba1ce240ad4cf65e6d" 20 | }, 21 | "_source": "git://github.com/ninjatronic/angular-base64.git", 22 | "_target": "~2.0.2", 23 | "_originalSource": "angular-base64", 24 | "_direct": true 25 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-base64/LICENSE: -------------------------------------------------------------------------------- 1 | ORIGINAL LICENSE: 2 | ----------------- 3 | 4 | Copyright (c) 2010 Nick Galbreath 5 | http://code.google.com/p/stringencoders/source/browse/#svn/trunk/javascript 6 | 7 | Permission is hereby granted, free of charge, to any person 8 | obtaining a copy of this software and associated documentation 9 | files (the "Software"), to deal in the Software without 10 | restriction, including without limitation the rights to use, 11 | copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the 13 | Software is furnished to do so, subject to the following 14 | conditions: 15 | 16 | The above copyright notice and this permission notice shall be 17 | included in all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 20 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 21 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 22 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 23 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 24 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 25 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 26 | OTHER DEALINGS IN THE SOFTWARE. 27 | 28 | MODIFICATIONS: 29 | -------------- 30 | 31 | Copyright (c) 2013 Pete Martin 32 | https://github.com/ninjatronic/ 33 | 34 | Released under the same license as the original code. -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-base64/README.md: -------------------------------------------------------------------------------- 1 | # angular-base64 2 | 3 | Encapsulation of Nick Galbreath's base64.js library for AngularJS 4 | 5 | For Base64 encoding whch supports UTF8 see [angular-utf8-base64](https://github.com/stranger82/angular-utf8-base64) 6 | 7 | ## Installation 8 | 9 | ### Bower 10 | 11 | ``` 12 | bower install angular-base64 13 | ``` 14 | 15 | **NB:** The `ngBase64` bower package is deprecated due to camel casing issues on case-sensitive file systems. 16 | 17 | ```html 18 | 19 | ``` 20 | 21 | ## Usage 22 | 23 | ```javascript 24 | angular 25 | .module('myApp', ['base64']) 26 | .controller('myController', [ 27 | 28 | '$base64', '$scope', 29 | function($base64, $scope) { 30 | 31 | $scope.encoded = $base64.encode('a string'); 32 | $scope.decoded = $base64.decode('YSBzdHJpbmc='); 33 | }]); 34 | ``` 35 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-base64/angular-base64.min.js: -------------------------------------------------------------------------------- 1 | !function(){"use strict";angular.module("base64",[]).constant("$base64",function(){function a(a,b){var c=f.indexOf(a.charAt(b));if(-1==c)throw"Cannot decode base64";return c}function b(b){b=""+b;var c,d,f,g=b.length;if(0==g)return b;if(0!=g%4)throw"Cannot decode base64";c=0,b.charAt(g-1)==e&&(c=1,b.charAt(g-2)==e&&(c=2),g-=4);var h=[];for(d=0;g>d;d+=4)f=a(b,d)<<18|a(b,d+1)<<12|a(b,d+2)<<6|a(b,d+3),h.push(String.fromCharCode(f>>16,255&f>>8,255&f));switch(c){case 1:f=a(b,d)<<18|a(b,d+1)<<12|a(b,d+2)<<6,h.push(String.fromCharCode(f>>16,255&f>>8));break;case 2:f=a(b,d)<<18|a(b,d+1)<<12,h.push(String.fromCharCode(f>>16))}return h.join("")}function c(a,b){var c=a.charCodeAt(b);if(c>255)throw"INVALID_CHARACTER_ERR: DOM Exception 5";return c}function d(a){if(1!=arguments.length)throw"SyntaxError: Not enough arguments";var b,d,g=[];a=""+a;var h=a.length-a.length%3;if(0==a.length)return a;for(b=0;h>b;b+=3)d=c(a,b)<<16|c(a,b+1)<<8|c(a,b+2),g.push(f.charAt(d>>18)),g.push(f.charAt(63&d>>12)),g.push(f.charAt(63&d>>6)),g.push(f.charAt(63&d));switch(a.length-h){case 1:d=c(a,b)<<16,g.push(f.charAt(d>>18)+f.charAt(63&d>>12)+e+e);break;case 2:d=c(a,b)<<16|c(a,b+1)<<8,g.push(f.charAt(d>>18)+f.charAt(63&d>>12)+f.charAt(63&d>>6)+e)}return g.join("")}var e="=",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";return{encode:d,decode:b}}())}(); -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-base64/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-base64", 3 | "version": "2.0.1", 4 | "main": [ 5 | "angular-base64.js" 6 | ], 7 | "ignore": [ 8 | "package.json", 9 | "Gruntfile.js" 10 | ], 11 | "dependencies": { 12 | "angular": ">= 1.0.8" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "https://github.com/angular-ui/bootstrap/graphs/contributors" 4 | }, 5 | "name": "angular-bootstrap", 6 | "version": "0.10.0", 7 | "main": [ 8 | "./ui-bootstrap-tpls.js" 9 | ], 10 | "dependencies": { 11 | "angular": ">=1" 12 | }, 13 | "homepage": "https://github.com/angular-ui/bootstrap-bower", 14 | "_release": "0.10.0", 15 | "_resolution": { 16 | "type": "version", 17 | "tag": "0.10.0", 18 | "commit": "f486d33d6f4c60d905ed0792eacbba2456a32b87" 19 | }, 20 | "_source": "git://github.com/angular-ui/bootstrap-bower.git", 21 | "_target": "~0.10.0", 22 | "_originalSource": "angular-bootstrap" 23 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-bootstrap/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "https://github.com/angular-ui/bootstrap/graphs/contributors" 4 | }, 5 | "name": "angular-bootstrap", 6 | "version": "0.10.0", 7 | "main": ["./ui-bootstrap-tpls.js"], 8 | "dependencies": { 9 | "angular": ">=1" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-hateoas/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-hateoas", 3 | "version": "0.2.3", 4 | "authors": [ 5 | "Jeremy Marquis " 6 | ], 7 | "description": "An AngularJS module for using $resource with a HATEOAS-enabled REST API.", 8 | "keywords": [ 9 | "angular", 10 | "resource", 11 | "hateoas", 12 | "rest", 13 | "api" 14 | ], 15 | "license": "MIT", 16 | "homepage": "https://github.com/jmarquis/angular-hateoas", 17 | "main": "src/angular-hateoas.js", 18 | "ignore": [ 19 | "**/.*", 20 | "node_modules", 21 | "bower_components" 22 | ], 23 | "devDependencies": { 24 | "angular": "~1.2.24", 25 | "angular-mocks": "~1.2.24", 26 | "angular-resource": "~1.2.24" 27 | }, 28 | "_release": "0.2.3", 29 | "_resolution": { 30 | "type": "version", 31 | "tag": "v0.2.3", 32 | "commit": "079a0c9258fca212cc2a28babeb4a42c5abc0583" 33 | }, 34 | "_source": "git://github.com/jmarquis/angular-hateoas.git", 35 | "_target": "~0.2.3", 36 | "_originalSource": "angular-hateoas", 37 | "_direct": true 38 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-hateoas/Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function (grunt) { 2 | 3 | grunt.initConfig({ 4 | pkg: grunt.file.readJSON("package.json"), 5 | uglify: { 6 | options: { 7 | banner: "/*!\n * <%= pkg.name %> <%= pkg.version %>-<%= grunt.template.today('yyyymmdd') %>\n * Copyright 2013 Jeremy Marquis (@_jmarquis)\n * http://github.com/jmarquis/angular-hateoas\n */\n" 8 | }, 9 | build: { 10 | src: "src/<%= pkg.name %>.js", 11 | dest: "build/<%= pkg.name %>.min.js" 12 | } 13 | }, 14 | karma: { 15 | unit: { 16 | configFile: "karma.conf.js" 17 | }, 18 | continuous: { 19 | configFile: "karma.conf.js", 20 | singleRun: true 21 | } 22 | } 23 | }); 24 | 25 | grunt.loadNpmTasks("grunt-contrib-uglify"); 26 | grunt.loadNpmTasks("grunt-karma"); 27 | 28 | grunt.registerTask("default", ["karma:continuous", "uglify"]); 29 | 30 | grunt.registerTask("startTestServer", ["karma:unit:start"]); 31 | grunt.registerTask("runTests", ["karma:unit:run"]); 32 | grunt.registerTask("test", ["karma:continuous"]); 33 | 34 | }; -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-hateoas/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Jeremy Marquis 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-hateoas/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-hateoas", 3 | "version": "0.2.3", 4 | "authors": [ 5 | "Jeremy Marquis " 6 | ], 7 | "description": "An AngularJS module for using $resource with a HATEOAS-enabled REST API.", 8 | "keywords": [ 9 | "angular", 10 | "resource", 11 | "hateoas", 12 | "rest", 13 | "api" 14 | ], 15 | "license": "MIT", 16 | "homepage": "https://github.com/jmarquis/angular-hateoas", 17 | "main": "src/angular-hateoas.js", 18 | "ignore": [ 19 | "**/.*", 20 | "node_modules", 21 | "bower_components" 22 | ], 23 | "devDependencies": { 24 | "angular": "~1.2.24", 25 | "angular-mocks": "~1.2.24", 26 | "angular-resource": "~1.2.24" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-hateoas/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-hateoas", 3 | "version": "0.2.3", 4 | "repository": { 5 | "type": "git", 6 | "url": "https://github.com/jmarquis/angular-hateoas.git" 7 | }, 8 | "devDependencies": { 9 | "grunt": "~0.4.1", 10 | "grunt-contrib-uglify": "~0.2.2", 11 | "grunt-karma": "~0.6.2", 12 | "karma": "^0.10.10", 13 | "karma-chrome-launcher": "^0.1.2", 14 | "karma-coffee-preprocessor": "^0.1.3", 15 | "karma-firefox-launcher": "^0.1.3", 16 | "karma-jasmine": "~0.1.3", 17 | "karma-phantomjs-launcher": "~0.1.0", 18 | "karma-requirejs": "^0.2.1", 19 | "requirejs": "^2.1.11" 20 | }, 21 | "dependencies": {}, 22 | "license": { 23 | "type": "MIT", 24 | "url": "https://github.com/jmarquis/angular-hateoas/blog/master/LICENSE" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-mocks/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-mocks", 3 | "version": "1.2.21", 4 | "main": "./angular-mocks.js", 5 | "dependencies": { 6 | "angular": "1.2.21" 7 | }, 8 | "homepage": "https://github.com/angular/bower-angular-mocks", 9 | "_release": "1.2.21", 10 | "_resolution": { 11 | "type": "version", 12 | "tag": "v1.2.21", 13 | "commit": "ab33e90eaec5bb2c96126e808ae9f44cf59b7205" 14 | }, 15 | "_source": "git://github.com/angular/bower-angular-mocks.git", 16 | "_target": "~1.2", 17 | "_originalSource": "angular-mocks" 18 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-mocks/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-mocks", 3 | "version": "1.2.21", 4 | "main": "./angular-mocks.js", 5 | "dependencies": { 6 | "angular": "1.2.21" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-resource/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-resource", 3 | "version": "1.2.22", 4 | "main": "./angular-resource.js", 5 | "dependencies": { 6 | "angular": "1.2.22" 7 | }, 8 | "homepage": "https://github.com/angular/bower-angular-resource", 9 | "_release": "1.2.22", 10 | "_resolution": { 11 | "type": "version", 12 | "tag": "v1.2.22", 13 | "commit": "dc35b7a5130a87bda1d4818f3056fdb28e1809c7" 14 | }, 15 | "_source": "git://github.com/angular/bower-angular-resource.git", 16 | "_target": "~1.2.22", 17 | "_originalSource": "angular-resource", 18 | "_direct": true 19 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-resource/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-resource", 3 | "version": "1.2.22", 4 | "main": "./angular-resource.js", 5 | "dependencies": { 6 | "angular": "1.2.22" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-ui-router/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-ui-router", 3 | "version": "0.2.10", 4 | "main": "./release/angular-ui-router.js", 5 | "dependencies": { 6 | "angular": ">= 1.0.8" 7 | }, 8 | "ignore": [ 9 | "**/.*", 10 | "node_modules", 11 | "bower_components", 12 | "component.json", 13 | "package.json", 14 | "lib", 15 | "config", 16 | "sample", 17 | "test", 18 | "tests", 19 | "ngdoc_assets", 20 | "Gruntfile.js", 21 | "files.js" 22 | ], 23 | "homepage": "https://github.com/angular-ui/ui-router", 24 | "_release": "0.2.10", 25 | "_resolution": { 26 | "type": "version", 27 | "tag": "0.2.10", 28 | "commit": "4f509d6393452c933aa5908939d0a17e47b59388" 29 | }, 30 | "_source": "git://github.com/angular-ui/ui-router.git", 31 | "_target": "~0.2", 32 | "_originalSource": "angular-ui-router" 33 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-ui-router/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2014 The AngularUI Team, Karsten Sperling 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-ui-router/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular-ui-router", 3 | "version": "0.2.10", 4 | "main": "./release/angular-ui-router.js", 5 | "dependencies": { 6 | "angular": ">= 1.0.8" 7 | }, 8 | "ignore": [ 9 | "**/.*", 10 | "node_modules", 11 | "bower_components", 12 | "component.json", 13 | "package.json", 14 | "lib", 15 | "config", 16 | "sample", 17 | "test", 18 | "tests", 19 | "ngdoc_assets", 20 | "Gruntfile.js", 21 | "files.js" 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular-ui-router/src/stateFilters.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @ngdoc filter 3 | * @name ui.router.state.filter:isState 4 | * 5 | * @requires ui.router.state.$state 6 | * 7 | * @description 8 | * Translates to {@link ui.router.state.$state#methods_is $state.is("stateName")}. 9 | */ 10 | $IsStateFilter.$inject = ['$state']; 11 | function $IsStateFilter($state) { 12 | return function(state) { 13 | return $state.is(state); 14 | }; 15 | } 16 | 17 | /** 18 | * @ngdoc filter 19 | * @name ui.router.state.filter:includedByState 20 | * 21 | * @requires ui.router.state.$state 22 | * 23 | * @description 24 | * Translates to {@link ui.router.state.$state#methods_includes $state.includes('fullOrPartialStateName')}. 25 | */ 26 | $IncludedByStateFilter.$inject = ['$state']; 27 | function $IncludedByStateFilter($state) { 28 | return function(state) { 29 | return $state.includes(state); 30 | }; 31 | } 32 | 33 | angular.module('ui.router.state') 34 | .filter('isState', $IsStateFilter) 35 | .filter('includedByState', $IncludedByStateFilter); 36 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular", 3 | "version": "1.2.22", 4 | "main": "./angular.js", 5 | "dependencies": {}, 6 | "homepage": "https://github.com/angular/bower-angular", 7 | "_release": "1.2.22", 8 | "_resolution": { 9 | "type": "version", 10 | "tag": "v1.2.22", 11 | "commit": "c1579c4a2cd885894d9414bfc496cf50da7ffbf6" 12 | }, 13 | "_source": "git://github.com/angular/bower-angular.git", 14 | "_target": "1.2.22", 15 | "_originalSource": "angular" 16 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular/angular-csp.css: -------------------------------------------------------------------------------- 1 | /* Include this file in your html if you are using the CSP mode. */ 2 | 3 | @charset "UTF-8"; 4 | 5 | [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], 6 | .ng-cloak, .x-ng-cloak, 7 | .ng-hide { 8 | display: none !important; 9 | } 10 | 11 | ng\:form { 12 | display: block; 13 | } 14 | 15 | .ng-animate-block-transitions { 16 | transition:0s all!important; 17 | -webkit-transition:0s all!important; 18 | } 19 | 20 | /* show the element during a show/hide animation when the 21 | * animation is ongoing, but the .ng-hide class is active */ 22 | .ng-hide-add-active, .ng-hide-remove { 23 | display: block!important; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular/angular.min.js.gzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/vendor/angular/angular.min.js.gzip -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/angular/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular", 3 | "version": "1.2.22", 4 | "main": "./angular.js", 5 | "dependencies": { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/base64/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "base64", 3 | "version": "0.3.0", 4 | "description": "Base64 encoding and decoding", 5 | "main": "./base64.js", 6 | "license": "WTFPL", 7 | "repository": { 8 | "type": "git", 9 | "url": "git://github.com/davidchambers/Base64.js.git" 10 | }, 11 | "ignore": [ 12 | "**/.*", 13 | "Makefile", 14 | "coverage/", 15 | "scripts/", 16 | "test/" 17 | ], 18 | "homepage": "https://github.com/davidchambers/Base64.js", 19 | "_release": "0.3.0", 20 | "_resolution": { 21 | "type": "version", 22 | "tag": "0.3.0", 23 | "commit": "772df096a5ffe983f40202684ad45eed1e0e2d59" 24 | }, 25 | "_source": "git://github.com/davidchambers/Base64.js.git", 26 | "_target": "~0.3.0", 27 | "_originalSource": "base64", 28 | "_direct": true 29 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/base64/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 3 | Version 2, December 2004 4 | 5 | Copyright (c) 2011..2012 David Chambers 6 | 7 | Everyone is permitted to copy and distribute verbatim or modified 8 | copies of this license document, and changing it is allowed as long 9 | as the name is changed. 10 | 11 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 12 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 13 | 14 | 0. You just DO WHAT THE FUCK YOU WANT TO. 15 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/base64/README.md: -------------------------------------------------------------------------------- 1 | # Base64.js 2 | 3 | ≈ 500 byte* polyfill for browsers which don't provide [`window.btoa`][1] and 4 | [`window.atob`][2]. 5 | 6 | Although the script does no harm in browsers which do provide these functions, 7 | a conditional script loader such as [yepnope][3] can prevent unnecessary HTTP 8 | requests. 9 | 10 | ```javascript 11 | yepnope({ 12 | test: window.btoa && window.atob, 13 | nope: 'base64.js', 14 | callback: function () { 15 | // `btoa` and `atob` are now safe to use 16 | } 17 | }) 18 | ``` 19 | 20 | Base64.js stems from a [gist][4] by [yahiko][5]. 21 | 22 | ### Running the test suite 23 | 24 | make setup 25 | make test 26 | 27 | \* Minified and gzipped. Run `make bytes` to verify. 28 | 29 | 30 | [1]: https://developer.mozilla.org/en/DOM/window.btoa 31 | [2]: https://developer.mozilla.org/en/DOM/window.atob 32 | [3]: http://yepnopejs.com/ 33 | [4]: https://gist.github.com/229984 34 | [5]: https://github.com/yahiko 35 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/base64/base64.min.js: -------------------------------------------------------------------------------- 1 | !function(){function t(t){this.message=t}var r="undefined"!=typeof exports?exports:this,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.btoa||(r.btoa=function(r){for(var o,n,a=String(r),i=0,c=e,d="";a.charAt(0|i)||(c="=",i%1);d+=c.charAt(63&o>>8-i%1*8)){if(n=a.charCodeAt(i+=.75),n>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");o=o<<8|n}return d}),r.atob||(r.atob=function(r){var o=String(r).replace(/=+$/,"");if(o.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,a,i=0,c=0,d="";a=o.charAt(c++);~a&&(n=i%4?64*n+a:a,i++%4)?d+=String.fromCharCode(255&n>>(-2*i&6)):0)a=e.indexOf(a);return d})}(); -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/base64/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "base64", 3 | "version": "0.3.0", 4 | "description": "Base64 encoding and decoding", 5 | "main": "./base64.js", 6 | "license": "WTFPL", 7 | "repository": { 8 | "type": "git", 9 | "url": "git://github.com/davidchambers/Base64.js.git" 10 | }, 11 | "ignore": [ 12 | "**/.*", 13 | "Makefile", 14 | "coverage/", 15 | "scripts/", 16 | "test/" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/base64/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Base64", 3 | "version": "0.3.0", 4 | "description": "Base64 encoding and decoding", 5 | "author": "David Chambers ", 6 | "main": "./base64.js", 7 | "licenses": [ 8 | { 9 | "type": "WTFPL", 10 | "url": "https://raw.github.com/davidchambers/Base64.js/master/LICENSE" 11 | } 12 | ], 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/davidchambers/Base64.js.git" 16 | }, 17 | "devDependencies": { 18 | "coffee-script": "1.7.x", 19 | "istanbul": "0.2.x", 20 | "mocha": "1.18.x", 21 | "uglify-js": "2.4.x", 22 | "xyz": "0.3.x" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "version": "3.1.1", 4 | "main": [ 5 | "./dist/css/bootstrap.css", 6 | "./dist/js/bootstrap.js", 7 | "./dist/fonts/glyphicons-halflings-regular.eot", 8 | "./dist/fonts/glyphicons-halflings-regular.svg", 9 | "./dist/fonts/glyphicons-halflings-regular.ttf", 10 | "./dist/fonts/glyphicons-halflings-regular.woff" 11 | ], 12 | "ignore": [ 13 | "**/.*", 14 | "_config.yml", 15 | "CNAME", 16 | "composer.json", 17 | "CONTRIBUTING.md", 18 | "docs", 19 | "js/tests" 20 | ], 21 | "dependencies": { 22 | "jquery": ">= 1.9.0" 23 | }, 24 | "homepage": "https://github.com/twbs/bootstrap", 25 | "_release": "3.1.1", 26 | "_resolution": { 27 | "type": "version", 28 | "tag": "v3.1.1", 29 | "commit": "a365d8689c3f3cee7f1acf86b61270ecca8e106d" 30 | }, 31 | "_source": "git://github.com/twbs/bootstrap.git", 32 | "_target": "~3.1", 33 | "_originalSource": "bootstrap" 34 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2011-2014 Twitter, Inc 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bootstrap", 3 | "version": "3.1.1", 4 | "main": [ 5 | "./dist/css/bootstrap.css", 6 | "./dist/js/bootstrap.js", 7 | "./dist/fonts/glyphicons-halflings-regular.eot", 8 | "./dist/fonts/glyphicons-halflings-regular.svg", 9 | "./dist/fonts/glyphicons-halflings-regular.ttf", 10 | "./dist/fonts/glyphicons-halflings-regular.woff" 11 | ], 12 | "ignore": [ 13 | "**/.*", 14 | "_config.yml", 15 | "CNAME", 16 | "composer.json", 17 | "CONTRIBUTING.md", 18 | "docs", 19 | "js/tests" 20 | ], 21 | "dependencies": { 22 | "jquery": ">= 1.9.0" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/vendor/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/vendor/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/vendor/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chrishenkel/spring-angularjs-tutorial-12-complete/d77ddaa1fc70d6396cdd9af1ff0545ef9fda4e57/src/main/webapp/app/vendor/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/grunt/bs-glyphicons-data-generator.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Grunt task for Glyphicons data generation 3 | * http://getbootstrap.com 4 | * Copyright 2014 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | */ 7 | 'use strict'; 8 | var fs = require('fs'); 9 | 10 | module.exports = function generateGlyphiconsData() { 11 | // Pass encoding, utf8, so `readFileSync` will return a string instead of a 12 | // buffer 13 | var glyphiconsFile = fs.readFileSync('less/glyphicons.less', 'utf8'); 14 | var glpyhiconsLines = glyphiconsFile.split('\n'); 15 | 16 | // Use any line that starts with ".glyphicon-" and capture the class name 17 | var iconClassName = /^\.(glyphicon-[^\s]+)/; 18 | var glyphiconsData = '# This file is generated via Grunt task. **Do not edit directly.**\n' + 19 | '# See the \'build-glyphicons-data\' task in Gruntfile.js.\n\n'; 20 | for (var i = 0, len = glpyhiconsLines.length; i < len; i++) { 21 | var match = glpyhiconsLines[i].match(iconClassName); 22 | 23 | if (match !== null) { 24 | glyphiconsData += '- ' + match[1] + '\n'; 25 | } 26 | } 27 | 28 | // Create the `_data` directory if it doesn't already exist 29 | if (!fs.existsSync('docs/_data')) { 30 | fs.mkdirSync('docs/_data'); 31 | } 32 | 33 | fs.writeFileSync('docs/_data/glyphicons.yml', glyphiconsData); 34 | }; 35 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/grunt/bs-raw-files-generator.js: -------------------------------------------------------------------------------- 1 | /* global btoa: true */ 2 | /*! 3 | * Bootstrap Grunt task for generating raw-files.min.js for the Customizer 4 | * http://getbootstrap.com 5 | * Copyright 2014 Twitter, Inc. 6 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 7 | */ 8 | 'use strict'; 9 | var btoa = require('btoa'); 10 | var fs = require('fs'); 11 | 12 | function getFiles(type) { 13 | var files = {}; 14 | fs.readdirSync(type) 15 | .filter(function (path) { 16 | return type === 'fonts' ? true : new RegExp('\\.' + type + '$').test(path); 17 | }) 18 | .forEach(function (path) { 19 | var fullPath = type + '/' + path; 20 | files[path] = (type === 'fonts' ? btoa(fs.readFileSync(fullPath)) : fs.readFileSync(fullPath, 'utf8')); 21 | }); 22 | return 'var __' + type + ' = ' + JSON.stringify(files) + '\n'; 23 | } 24 | 25 | module.exports = function generateRawFilesJs(banner) { 26 | if (!banner) { 27 | banner = ''; 28 | } 29 | var files = banner + getFiles('js') + getFiles('less') + getFiles('fonts'); 30 | fs.writeFileSync('docs/assets/js/raw-files.min.js', files); 31 | }; 32 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/grunt/shrinkwrap.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Grunt task for generating npm-shrinkwrap.canonical.json 3 | * http://getbootstrap.com 4 | * Copyright 2014 Twitter, Inc. 5 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 6 | */ 7 | /* 8 | This Grunt task updates the npm-shrinkwrap.canonical.json file that's used as the key for Bootstrap's npm packages cache. 9 | This task should be run and the updated file should be committed whenever Bootstrap's dependencies change. 10 | */ 11 | 'use strict'; 12 | var canonicallyJsonStringify = require('canonical-json'); 13 | var NON_CANONICAL_FILE = 'npm-shrinkwrap.json'; 14 | var DEST_FILE = 'test-infra/npm-shrinkwrap.canonical.json'; 15 | 16 | 17 | function updateShrinkwrap(grunt) { 18 | // Assumption: Non-canonical shrinkwrap already generated by prerequisite Grunt task 19 | var shrinkwrapData = grunt.file.readJSON(NON_CANONICAL_FILE); 20 | grunt.log.writeln('Deleting ' + NON_CANONICAL_FILE.cyan + '...'); 21 | grunt.file.delete(NON_CANONICAL_FILE); 22 | // Output as Canonical JSON in correct location 23 | grunt.file.write(DEST_FILE, canonicallyJsonStringify(shrinkwrapData)); 24 | grunt.log.writeln('File ' + DEST_FILE.cyan + ' updated.'); 25 | } 26 | 27 | 28 | module.exports = updateShrinkwrap; 29 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/alerts.less: -------------------------------------------------------------------------------- 1 | // 2 | // Alerts 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base styles 7 | // ------------------------- 8 | 9 | .alert { 10 | padding: @alert-padding; 11 | margin-bottom: @line-height-computed; 12 | border: 1px solid transparent; 13 | border-radius: @alert-border-radius; 14 | 15 | // Headings for larger alerts 16 | h4 { 17 | margin-top: 0; 18 | // Specified for the h4 to prevent conflicts of changing @headings-color 19 | color: inherit; 20 | } 21 | // Provide class for links that match alerts 22 | .alert-link { 23 | font-weight: @alert-link-font-weight; 24 | } 25 | 26 | // Improve alignment and spacing of inner content 27 | > p, 28 | > ul { 29 | margin-bottom: 0; 30 | } 31 | > p + p { 32 | margin-top: 5px; 33 | } 34 | } 35 | 36 | // Dismissable alerts 37 | // 38 | // Expand the right padding and account for the close button's positioning. 39 | 40 | .alert-dismissable { 41 | padding-right: (@alert-padding + 20); 42 | 43 | // Adjust close link position 44 | .close { 45 | position: relative; 46 | top: -2px; 47 | right: -21px; 48 | color: inherit; 49 | } 50 | } 51 | 52 | // Alternate styles 53 | // 54 | // Generate contextual modifier classes for colorizing the alert. 55 | 56 | .alert-success { 57 | .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text); 58 | } 59 | .alert-info { 60 | .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text); 61 | } 62 | .alert-warning { 63 | .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text); 64 | } 65 | .alert-danger { 66 | .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text); 67 | } 68 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/badges.less: -------------------------------------------------------------------------------- 1 | // 2 | // Badges 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base classes 7 | .badge { 8 | display: inline-block; 9 | min-width: 10px; 10 | padding: 3px 7px; 11 | font-size: @font-size-small; 12 | font-weight: @badge-font-weight; 13 | color: @badge-color; 14 | line-height: @badge-line-height; 15 | vertical-align: baseline; 16 | white-space: nowrap; 17 | text-align: center; 18 | background-color: @badge-bg; 19 | border-radius: @badge-border-radius; 20 | 21 | // Empty badges collapse automatically (not available in IE8) 22 | &:empty { 23 | display: none; 24 | } 25 | 26 | // Quick fix for badges in buttons 27 | .btn & { 28 | position: relative; 29 | top: -1px; 30 | } 31 | .btn-xs & { 32 | top: 0; 33 | padding: 1px 5px; 34 | } 35 | } 36 | 37 | // Hover state, but only for links 38 | a.badge { 39 | &:hover, 40 | &:focus { 41 | color: @badge-link-hover-color; 42 | text-decoration: none; 43 | cursor: pointer; 44 | } 45 | } 46 | 47 | // Account for counters in navs 48 | a.list-group-item.active > .badge, 49 | .nav-pills > .active > a > .badge { 50 | color: @badge-active-color; 51 | background-color: @badge-active-bg; 52 | } 53 | .nav-pills > li > a > .badge { 54 | margin-left: 3px; 55 | } 56 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/bootstrap.less: -------------------------------------------------------------------------------- 1 | // Core variables and mixins 2 | @import "variables.less"; 3 | @import "mixins.less"; 4 | 5 | // Reset 6 | @import "normalize.less"; 7 | @import "print.less"; 8 | 9 | // Core CSS 10 | @import "scaffolding.less"; 11 | @import "type.less"; 12 | @import "code.less"; 13 | @import "grid.less"; 14 | @import "tables.less"; 15 | @import "forms.less"; 16 | @import "buttons.less"; 17 | 18 | // Components 19 | @import "component-animations.less"; 20 | @import "glyphicons.less"; 21 | @import "dropdowns.less"; 22 | @import "button-groups.less"; 23 | @import "input-groups.less"; 24 | @import "navs.less"; 25 | @import "navbar.less"; 26 | @import "breadcrumbs.less"; 27 | @import "pagination.less"; 28 | @import "pager.less"; 29 | @import "labels.less"; 30 | @import "badges.less"; 31 | @import "jumbotron.less"; 32 | @import "thumbnails.less"; 33 | @import "alerts.less"; 34 | @import "progress-bars.less"; 35 | @import "media.less"; 36 | @import "list-group.less"; 37 | @import "panels.less"; 38 | @import "wells.less"; 39 | @import "close.less"; 40 | 41 | // Components w/ JavaScript 42 | @import "modals.less"; 43 | @import "tooltip.less"; 44 | @import "popovers.less"; 45 | @import "carousel.less"; 46 | 47 | // Utility classes 48 | @import "utilities.less"; 49 | @import "responsive-utilities.less"; 50 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/breadcrumbs.less: -------------------------------------------------------------------------------- 1 | // 2 | // Breadcrumbs 3 | // -------------------------------------------------- 4 | 5 | 6 | .breadcrumb { 7 | padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal; 8 | margin-bottom: @line-height-computed; 9 | list-style: none; 10 | background-color: @breadcrumb-bg; 11 | border-radius: @border-radius-base; 12 | 13 | > li { 14 | display: inline-block; 15 | 16 | + li:before { 17 | content: "@{breadcrumb-separator}\00a0"; // Unicode space added since inline-block means non-collapsing white-space 18 | padding: 0 5px; 19 | color: @breadcrumb-color; 20 | } 21 | } 22 | 23 | > .active { 24 | color: @breadcrumb-active-color; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/close.less: -------------------------------------------------------------------------------- 1 | // 2 | // Close icons 3 | // -------------------------------------------------- 4 | 5 | 6 | .close { 7 | float: right; 8 | font-size: (@font-size-base * 1.5); 9 | font-weight: @close-font-weight; 10 | line-height: 1; 11 | color: @close-color; 12 | text-shadow: @close-text-shadow; 13 | .opacity(.2); 14 | 15 | &:hover, 16 | &:focus { 17 | color: @close-color; 18 | text-decoration: none; 19 | cursor: pointer; 20 | .opacity(.5); 21 | } 22 | 23 | // Additional properties for button version 24 | // iOS requires the button element instead of an anchor tag. 25 | // If you want the anchor version, it requires `href="#"`. 26 | button& { 27 | padding: 0; 28 | cursor: pointer; 29 | background: transparent; 30 | border: 0; 31 | -webkit-appearance: none; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/code.less: -------------------------------------------------------------------------------- 1 | // 2 | // Code (inline and block) 3 | // -------------------------------------------------- 4 | 5 | 6 | // Inline and block code styles 7 | code, 8 | kbd, 9 | pre, 10 | samp { 11 | font-family: @font-family-monospace; 12 | } 13 | 14 | // Inline code 15 | code { 16 | padding: 2px 4px; 17 | font-size: 90%; 18 | color: @code-color; 19 | background-color: @code-bg; 20 | white-space: nowrap; 21 | border-radius: @border-radius-base; 22 | } 23 | 24 | // User input typically entered via keyboard 25 | kbd { 26 | padding: 2px 4px; 27 | font-size: 90%; 28 | color: @kbd-color; 29 | background-color: @kbd-bg; 30 | border-radius: @border-radius-small; 31 | box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); 32 | } 33 | 34 | // Blocks of code 35 | pre { 36 | display: block; 37 | padding: ((@line-height-computed - 1) / 2); 38 | margin: 0 0 (@line-height-computed / 2); 39 | font-size: (@font-size-base - 1); // 14px to 13px 40 | line-height: @line-height-base; 41 | word-break: break-all; 42 | word-wrap: break-word; 43 | color: @pre-color; 44 | background-color: @pre-bg; 45 | border: 1px solid @pre-border-color; 46 | border-radius: @border-radius-base; 47 | 48 | // Account for some code outputs that place code tags in pre tags 49 | code { 50 | padding: 0; 51 | font-size: inherit; 52 | color: inherit; 53 | white-space: pre-wrap; 54 | background-color: transparent; 55 | border-radius: 0; 56 | } 57 | } 58 | 59 | // Enable scrollable blocks of code 60 | .pre-scrollable { 61 | max-height: @pre-scrollable-max-height; 62 | overflow-y: scroll; 63 | } 64 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/component-animations.less: -------------------------------------------------------------------------------- 1 | // 2 | // Component animations 3 | // -------------------------------------------------- 4 | 5 | // Heads up! 6 | // 7 | // We don't use the `.opacity()` mixin here since it causes a bug with text 8 | // fields in IE7-8. Source: https://github.com/twitter/bootstrap/pull/3552. 9 | 10 | .fade { 11 | opacity: 0; 12 | .transition(opacity .15s linear); 13 | &.in { 14 | opacity: 1; 15 | } 16 | } 17 | 18 | .collapse { 19 | display: none; 20 | &.in { 21 | display: block; 22 | } 23 | } 24 | .collapsing { 25 | position: relative; 26 | height: 0; 27 | overflow: hidden; 28 | .transition(height .35s ease); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/jumbotron.less: -------------------------------------------------------------------------------- 1 | // 2 | // Jumbotron 3 | // -------------------------------------------------- 4 | 5 | 6 | .jumbotron { 7 | padding: @jumbotron-padding; 8 | margin-bottom: @jumbotron-padding; 9 | color: @jumbotron-color; 10 | background-color: @jumbotron-bg; 11 | 12 | h1, 13 | .h1 { 14 | color: @jumbotron-heading-color; 15 | } 16 | p { 17 | margin-bottom: (@jumbotron-padding / 2); 18 | font-size: @jumbotron-font-size; 19 | font-weight: 200; 20 | } 21 | 22 | .container & { 23 | border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container 24 | } 25 | 26 | .container { 27 | max-width: 100%; 28 | } 29 | 30 | @media screen and (min-width: @screen-sm-min) { 31 | padding-top: (@jumbotron-padding * 1.6); 32 | padding-bottom: (@jumbotron-padding * 1.6); 33 | 34 | .container & { 35 | padding-left: (@jumbotron-padding * 2); 36 | padding-right: (@jumbotron-padding * 2); 37 | } 38 | 39 | h1, 40 | .h1 { 41 | font-size: (@font-size-base * 4.5); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/labels.less: -------------------------------------------------------------------------------- 1 | // 2 | // Labels 3 | // -------------------------------------------------- 4 | 5 | .label { 6 | display: inline; 7 | padding: .2em .6em .3em; 8 | font-size: 75%; 9 | font-weight: bold; 10 | line-height: 1; 11 | color: @label-color; 12 | text-align: center; 13 | white-space: nowrap; 14 | vertical-align: baseline; 15 | border-radius: .25em; 16 | 17 | // Add hover effects, but only for links 18 | &[href] { 19 | &:hover, 20 | &:focus { 21 | color: @label-link-hover-color; 22 | text-decoration: none; 23 | cursor: pointer; 24 | } 25 | } 26 | 27 | // Empty labels collapse automatically (not available in IE8) 28 | &:empty { 29 | display: none; 30 | } 31 | 32 | // Quick fix for labels in buttons 33 | .btn & { 34 | position: relative; 35 | top: -1px; 36 | } 37 | } 38 | 39 | // Colors 40 | // Contextual variations (linked labels get darker on :hover) 41 | 42 | .label-default { 43 | .label-variant(@label-default-bg); 44 | } 45 | 46 | .label-primary { 47 | .label-variant(@label-primary-bg); 48 | } 49 | 50 | .label-success { 51 | .label-variant(@label-success-bg); 52 | } 53 | 54 | .label-info { 55 | .label-variant(@label-info-bg); 56 | } 57 | 58 | .label-warning { 59 | .label-variant(@label-warning-bg); 60 | } 61 | 62 | .label-danger { 63 | .label-variant(@label-danger-bg); 64 | } 65 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/media.less: -------------------------------------------------------------------------------- 1 | // Media objects 2 | // Source: http://stubbornella.org/content/?p=497 3 | // -------------------------------------------------- 4 | 5 | 6 | // Common styles 7 | // ------------------------- 8 | 9 | // Clear the floats 10 | .media, 11 | .media-body { 12 | overflow: hidden; 13 | zoom: 1; 14 | } 15 | 16 | // Proper spacing between instances of .media 17 | .media, 18 | .media .media { 19 | margin-top: 15px; 20 | } 21 | .media:first-child { 22 | margin-top: 0; 23 | } 24 | 25 | // For images and videos, set to block 26 | .media-object { 27 | display: block; 28 | } 29 | 30 | // Reset margins on headings for tighter default spacing 31 | .media-heading { 32 | margin: 0 0 5px; 33 | } 34 | 35 | 36 | // Media image alignment 37 | // ------------------------- 38 | 39 | .media { 40 | > .pull-left { 41 | margin-right: 10px; 42 | } 43 | > .pull-right { 44 | margin-left: 10px; 45 | } 46 | } 47 | 48 | 49 | // Media list variation 50 | // ------------------------- 51 | 52 | // Undo default ul/ol styles 53 | .media-list { 54 | padding-left: 0; 55 | list-style: none; 56 | } 57 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/pager.less: -------------------------------------------------------------------------------- 1 | // 2 | // Pager pagination 3 | // -------------------------------------------------- 4 | 5 | 6 | .pager { 7 | padding-left: 0; 8 | margin: @line-height-computed 0; 9 | list-style: none; 10 | text-align: center; 11 | &:extend(.clearfix all); 12 | li { 13 | display: inline; 14 | > a, 15 | > span { 16 | display: inline-block; 17 | padding: 5px 14px; 18 | background-color: @pager-bg; 19 | border: 1px solid @pager-border; 20 | border-radius: @pager-border-radius; 21 | } 22 | 23 | > a:hover, 24 | > a:focus { 25 | text-decoration: none; 26 | background-color: @pager-hover-bg; 27 | } 28 | } 29 | 30 | .next { 31 | > a, 32 | > span { 33 | float: right; 34 | } 35 | } 36 | 37 | .previous { 38 | > a, 39 | > span { 40 | float: left; 41 | } 42 | } 43 | 44 | .disabled { 45 | > a, 46 | > a:hover, 47 | > a:focus, 48 | > span { 49 | color: @pager-disabled-color; 50 | background-color: @pager-bg; 51 | cursor: not-allowed; 52 | } 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/thumbnails.less: -------------------------------------------------------------------------------- 1 | // 2 | // Thumbnails 3 | // -------------------------------------------------- 4 | 5 | 6 | // Mixin and adjust the regular image class 7 | .thumbnail { 8 | display: block; 9 | padding: @thumbnail-padding; 10 | margin-bottom: @line-height-computed; 11 | line-height: @line-height-base; 12 | background-color: @thumbnail-bg; 13 | border: 1px solid @thumbnail-border; 14 | border-radius: @thumbnail-border-radius; 15 | .transition(all .2s ease-in-out); 16 | 17 | > img, 18 | a > img { 19 | &:extend(.img-responsive); 20 | margin-left: auto; 21 | margin-right: auto; 22 | } 23 | 24 | // Add a hover state for linked versions only 25 | a&:hover, 26 | a&:focus, 27 | a&.active { 28 | border-color: @link-color; 29 | } 30 | 31 | // Image captions 32 | .caption { 33 | padding: @thumbnail-caption-padding; 34 | color: @thumbnail-caption-color; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/utilities.less: -------------------------------------------------------------------------------- 1 | // 2 | // Utility classes 3 | // -------------------------------------------------- 4 | 5 | 6 | // Floats 7 | // ------------------------- 8 | 9 | .clearfix { 10 | .clearfix(); 11 | } 12 | .center-block { 13 | .center-block(); 14 | } 15 | .pull-right { 16 | float: right !important; 17 | } 18 | .pull-left { 19 | float: left !important; 20 | } 21 | 22 | 23 | // Toggling content 24 | // ------------------------- 25 | 26 | // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1 27 | .hide { 28 | display: none !important; 29 | } 30 | .show { 31 | display: block !important; 32 | } 33 | .invisible { 34 | visibility: hidden; 35 | } 36 | .text-hide { 37 | .text-hide(); 38 | } 39 | 40 | 41 | // Hide from screenreaders and browsers 42 | // 43 | // Credit: HTML5 Boilerplate 44 | 45 | .hidden { 46 | display: none !important; 47 | visibility: hidden !important; 48 | } 49 | 50 | 51 | // For Affix plugin 52 | // ------------------------- 53 | 54 | .affix { 55 | position: fixed; 56 | } 57 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/less/wells.less: -------------------------------------------------------------------------------- 1 | // 2 | // Wells 3 | // -------------------------------------------------- 4 | 5 | 6 | // Base class 7 | .well { 8 | min-height: 20px; 9 | padding: 19px; 10 | margin-bottom: 20px; 11 | background-color: @well-bg; 12 | border: 1px solid @well-border; 13 | border-radius: @border-radius-base; 14 | .box-shadow(inset 0 1px 1px rgba(0,0,0,.05)); 15 | blockquote { 16 | border-color: #ddd; 17 | border-color: rgba(0,0,0,.15); 18 | } 19 | } 20 | 21 | // Sizes 22 | .well-lg { 23 | padding: 24px; 24 | border-radius: @border-radius-large; 25 | } 26 | .well-sm { 27 | padding: 9px; 28 | border-radius: @border-radius-small; 29 | } 30 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/test-infra/requirements.txt: -------------------------------------------------------------------------------- 1 | boto==2.20.0 2 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/bootstrap/test-infra/uncached-npm-install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | cp test-infra/npm-shrinkwrap.canonical.json npm-shrinkwrap.json 3 | npm install 4 | rm npm-shrinkwrap.json 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/jquery/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.1", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "speed", 10 | "test", 11 | "*.md", 12 | "AUTHORS.txt", 13 | "Gruntfile.js", 14 | "package.json" 15 | ], 16 | "devDependencies": { 17 | "sizzle": "1.10.19", 18 | "requirejs": "2.1.10", 19 | "qunit": "1.14.0", 20 | "sinon": "1.8.1" 21 | }, 22 | "keywords": [ 23 | "jquery", 24 | "javascript", 25 | "library" 26 | ], 27 | "homepage": "https://github.com/jquery/jquery", 28 | "_release": "2.1.1", 29 | "_resolution": { 30 | "type": "version", 31 | "tag": "2.1.1", 32 | "commit": "4dec426aa2a6cbabb1b064319ba7c272d594a688" 33 | }, 34 | "_source": "git://github.com/jquery/jquery.git", 35 | "_target": ">= 1.9.0", 36 | "_originalSource": "jquery" 37 | } -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/jquery/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2014 jQuery Foundation and other contributors 2 | http://jquery.com/ 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining 5 | a copy of this software and associated documentation files (the 6 | "Software"), to deal in the Software without restriction, including 7 | without limitation the rights to use, copy, modify, merge, publish, 8 | distribute, sublicense, and/or sell copies of the Software, and to 9 | permit persons to whom the Software is furnished to do so, subject to 10 | the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/jquery/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery", 3 | "version": "2.1.1", 4 | "main": "dist/jquery.js", 5 | "license": "MIT", 6 | "ignore": [ 7 | "**/.*", 8 | "build", 9 | "speed", 10 | "test", 11 | "*.md", 12 | "AUTHORS.txt", 13 | "Gruntfile.js", 14 | "package.json" 15 | ], 16 | "devDependencies": { 17 | "sizzle": "1.10.19", 18 | "requirejs": "2.1.10", 19 | "qunit": "1.14.0", 20 | "sinon": "1.8.1" 21 | }, 22 | "keywords": [ 23 | "jquery", 24 | "javascript", 25 | "library" 26 | ] 27 | } 28 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/jquery/src/ajax/parseJSON.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Support: Android 2.3 6 | // Workaround failure to string-cast null input 7 | jQuery.parseJSON = function( data ) { 8 | return JSON.parse( data + "" ); 9 | }; 10 | 11 | return jQuery.parseJSON; 12 | 13 | }); 14 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/jquery/src/ajax/parseXML.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core" 3 | ], function( jQuery ) { 4 | 5 | // Cross-browser xml parsing 6 | jQuery.parseXML = function( data ) { 7 | var xml, tmp; 8 | if ( !data || typeof data !== "string" ) { 9 | return null; 10 | } 11 | 12 | // Support: IE9 13 | try { 14 | tmp = new DOMParser(); 15 | xml = tmp.parseFromString( data, "text/xml" ); 16 | } catch ( e ) { 17 | xml = undefined; 18 | } 19 | 20 | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { 21 | jQuery.error( "Invalid XML: " + data ); 22 | } 23 | return xml; 24 | }; 25 | 26 | return jQuery.parseXML; 27 | 28 | }); 29 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor/jquery/src/ajax/script.js: -------------------------------------------------------------------------------- 1 | define([ 2 | "../core", 3 | "../ajax" 4 | ], function( jQuery ) { 5 | 6 | // Install script dataType 7 | jQuery.ajaxSetup({ 8 | accepts: { 9 | script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" 10 | }, 11 | contents: { 12 | script: /(?:java|ecma)script/ 13 | }, 14 | converters: { 15 | "text script": function( text ) { 16 | jQuery.globalEval( text ); 17 | return text; 18 | } 19 | } 20 | }); 21 | 22 | // Handle cache's special case and crossDomain 23 | jQuery.ajaxPrefilter( "script", function( s ) { 24 | if ( s.cache === undefined ) { 25 | s.cache = false; 26 | } 27 | if ( s.crossDomain ) { 28 | s.type = "GET"; 29 | } 30 | }); 31 | 32 | // Bind script tag hack transport 33 | jQuery.ajaxTransport( "script", function( s ) { 34 | // This transport only deals with cross domain requests 35 | if ( s.crossDomain ) { 36 | var script, callback; 37 | return { 38 | send: function( _, complete ) { 39 | script = jQuery("