PageRenderTime 23ms CodeModel.GetById 16ms app.highlight 6ms RepoModel.GetById 0ms app.codeStats 0ms

/src/main/resources/atlassian-plugin.xml

https://bitbucket.org/xavist/easyfollow-confluence-plugin
XML | 57 lines | 50 code | 7 blank | 0 comment | 0 complexity | 8af77bc25ff45a95d335db91b6634d4e MD5 | raw file
 1<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
 2    <plugin-info>
 3        <description>${project.description}</description>
 4        <version>${project.version}</version>
 5        <vendor name="${project.organization.name}" url="${project.organization.url}" />
 6    </plugin-info>
 7
 8    <resource type="download" name="icons/" location="images/icons/"/>
 9
10    <web-item name="easyfollow-follow-action-web-ui" key="easyfollow-follow-action-web-ui" section="system.content.action/marker" weight="10">
11        <description key="item.easyfollow-follow-action-web-ui.link.desc">Follows page creator</description>
12        <label key="Follow"/>
13        <icon height="16" width="16">
14            <link>/download/resources/${project.groupId}.${project.artifactId}/icons/follow.png</link>
15        </icon>
16        <conditions type="AND">
17            <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.user.FollowingTargetUserCondition" invert="true">
18                <param name="targetUser">$page.creatorName</param>
19            </condition>
20            <condition class="com.xtaixe.easyfollow.conditions.CanFollowTargetUserCondition">
21                <param name="targetUser">$page.creatorName</param>
22            </condition>
23        </conditions>
24        <link linkId="easyfollow-follow-label-action">/plugins/easyfollow/follow.action?pageId=$page.id</link>
25    </web-item>
26
27    <web-item name="easyfollow-unfollow-action-web-ui" key="easyfollow-unfollow-action-web-ui" section="system.content.action/marker" weight="10">
28        <description key="item.easyfollow-unfollow-action-web-ui.link.desc">Stops following page creator</description>
29        <label key="Stop following"/>
30        <icon height="16" width="16">
31            <link>/download/resources/${project.groupId}.${project.artifactId}/icons/unfollow.png</link>
32        </icon>
33        <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.user.FollowingTargetUserCondition">
34            <param name="targetUser">$page.creatorName</param>
35        </condition>
36        <link linkId="easyfollow-unfollow-label-action">/plugins/easyfollow/unfollow.action?pageId=$page.id</link>
37    </web-item>
38
39    <xwork name="easyfollow-xwork" key="easyfollow-xwork">
40        <description key="item.easyfollow-xwork.link.desc">Easyfollow actions</description>
41        <package name="easyfollow" extends="default" namespace="/plugins/easyfollow">
42            <default-interceptor-ref name="defaultStack"/>
43            <action name="follow" class="com.xtaixe.easyfollow.actions.FollowAction">
44                <result name="success" type="redirect">${page.urlPath}</result>
45            </action>
46            <action name="unfollow" class="com.xtaixe.easyfollow.actions.UnfollowAction">
47                <result name="success" type="redirect">${page.urlPath}</result>
48            </action>
49        </package>
50    </xwork>
51
52    <component name="Follow Listener" class="com.xtaixe.easyfollow.listeners.FollowListener" key="followListener"/>
53    <component name="Follow Notifier" class="com.xtaixe.easyfollow.services.FollowNotifier" key="followNotifier"/>
54
55    <component-import key="notificationService" interface="com.atlassian.mywork.service.LocalNotificationService"/>
56
57</atlassian-plugin>