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