{"id":23498202,"url":"https://github.com/vpro/magnolia-context-annotations","last_synced_at":"2025-10-07T11:06:20.359Z","repository":{"id":57738094,"uuid":"161758240","full_name":"vpro/magnolia-context-annotations","owner":"vpro","description":"Provides java annotation for executing in system context","archived":false,"fork":false,"pushed_at":"2023-10-25T21:02:33.000Z","size":108,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-30T12:55:02.592Z","etag":null,"topics":["magnolia-cms","magnolia-component"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vpro.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-12-14T08:57:44.000Z","updated_at":"2023-10-25T21:02:02.000Z","dependencies_parsed_at":"2022-08-25T20:41:52.446Z","dependency_job_id":"0eb7837f-5986-4c54-88c8-225dc01b860e","html_url":"https://github.com/vpro/magnolia-context-annotations","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vpro/magnolia-context-annotations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-context-annotations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-context-annotations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-context-annotations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-context-annotations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vpro","download_url":"https://codeload.github.com/vpro/magnolia-context-annotations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vpro%2Fmagnolia-context-annotations/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263677003,"owners_count":23494615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["magnolia-cms","magnolia-component"],"created_at":"2024-12-25T05:29:00.416Z","updated_at":"2025-10-07T11:06:15.340Z","avatar_url":"https://github.com/vpro.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n= magnolia-context-annotations\n\nimage:https://github.com/vpro/magnolia-context-annotations/workflows/build/badge.svg?[Build Status,link=https://github.com/vpro/magnolia-context-annotations/actions?query=workflow%3Abuild]\nimage:https://img.shields.io/maven-central/v/nl.vpro/magnolia-context-annotations.svg?label=Maven%20Central[Maven Central,link=https://search.maven.org/search?q=g:nl.vpro%20a:magnolia-context-annotations]\nimage:http://www.javadoc.io/badge/nl.vpro/magnolia-context-annotations.svg?color=blue[javadoc,link=http://www.javadoc.io/doc/nl.vpro/magnolia-context-annotations]\n\n\nProvides java annotation for executing in system context\n\n== Usage\n\nAfter installing this module in your magnolia deployment (taking the maven dependency is enough), you\ncan do in stead of\n\n[source,java]\n----\n@Override\npublic String stuff() {\n   return MgnlContext.doInSystemContext((MgnlContext.Op\u003cString, Throwable\u003e)\n        () -\u003e actualStuff());\n}\n----\n\n[source,java]\n----\n@Override\n@MgnlSystemContext\npublic String stuff() {\n   return actualStuff();\n}\n----\n\nIt's a bit like `javax.transaction.Transactional`\n\nThe annotation can also be used at class level, so you can quite easily mark all methods of a complete utility class to be executed in system context.\n\n== Installation\n\n[source,xml]\n----\n\u003cdependency\u003e\n  \u003cgroupId\u003enl.vpro\u003c/groupId\u003e\n  \u003cartifactId\u003emagnolia-context-annotations\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.0\u003c/version\u003e\n\u003c/dependency\u003e\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpro%2Fmagnolia-context-annotations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvpro%2Fmagnolia-context-annotations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvpro%2Fmagnolia-context-annotations/lists"}