Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Setting page permissions in my own action

Sławomir Turlej
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2011

Is there a way to specify page-level permissions in my own action ?? I have read the page "Accessing Confluence Components from Plugin Modules" page but no Confuence component seems to do the job.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Stefan Kohler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2011

Most of the things you can do with the Confluence API is exposted via Managers.

The manager you're looking for is the ContentPermissionManager which allowes you to set certain permissions on a page, or any other content for that matter.

0 votes
James Star
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 19, 2012

Not so much with Static references: http://docs.atlassian.com/atlassian-confluence/3.2.1_01/com/atlassian/confluence/spaces/SpacesQuery.Builder.html

E.g. SpacesQuery.Builder

Also see my Question: https://answers.atlassian.com/questions/36262/velocity-markup-foreach-range

Andy Brook's comment... I think I see the problem, velocity cant access a static class

TAGS
AUG Leaders

Atlassian Community Events