/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
- <atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">
- <plugin-info>
- <description>${project.description}</description>
- <version>${project.version}</version>
- <vendor name="${project.organization.name}" url="${project.organization.url}" />
- </plugin-info>
- <resource type="download" name="icons/" location="images/icons/"/>
- <web-item name="easyfollow-follow-action-web-ui" key="easyfollow-follow-action-web-ui" section="system.content.action/marker" weight="10">
- <description key="item.easyfollow-follow-action-web-ui.link.desc">Follows page creator</description>
- <label key="Follow"/>
- <icon height="16" width="16">
- <link>/download/resources/${project.groupId}.${project.artifactId}/icons/follow.png</link>
- </icon>
- <conditions type="AND">
- <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.user.FollowingTargetUserCondition" invert="true">
- <param name="targetUser">$page.creatorName</param>
- </condition>
- <condition class="com.xtaixe.easyfollow.conditions.CanFollowTargetUserCondition">
- <param name="targetUser">$page.creatorName</param>
- </condition>
- </conditions>
- <link linkId="easyfollow-follow-label-action">/plugins/easyfollow/follow.action?pageId=$page.id</link>
- </web-item>
- <web-item name="easyfollow-unfollow-action-web-ui" key="easyfollow-unfollow-action-web-ui" section="system.content.action/marker" weight="10">
- <description key="item.easyfollow-unfollow-action-web-ui.link.desc">Stops following page creator</description>
- <label key="Stop following"/>
- <icon height="16" width="16">
- <link>/download/resources/${project.groupId}.${project.artifactId}/icons/unfollow.png</link>
- </icon>
- <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.user.FollowingTargetUserCondition">
- <param name="targetUser">$page.creatorName</param>
- </condition>
- <link linkId="easyfollow-unfollow-label-action">/plugins/easyfollow/unfollow.action?pageId=$page.id</link>
- </web-item>
- <xwork name="easyfollow-xwork" key="easyfollow-xwork">
- <description key="item.easyfollow-xwork.link.desc">Easyfollow actions</description>
- <package name="easyfollow" extends="default" namespace="/plugins/easyfollow">
- <default-interceptor-ref name="defaultStack"/>
- <action name="follow" class="com.xtaixe.easyfollow.actions.FollowAction">
- <result name="success" type="redirect">${page.urlPath}</result>
- </action>
- <action name="unfollow" class="com.xtaixe.easyfollow.actions.UnfollowAction">
- <result name="success" type="redirect">${page.urlPath}</result>
- </action>
- </package>
- </xwork>
- <component name="Follow Listener" class="com.xtaixe.easyfollow.listeners.FollowListener" key="followListener"/>
- <component name="Follow Notifier" class="com.xtaixe.easyfollow.services.FollowNotifier" key="followNotifier"/>
- <component-import key="notificationService" interface="com.atlassian.mywork.service.LocalNotificationService"/>
- </atlassian-plugin>