...
Expand |
---|
title | for app versions < 3.3.15 |
---|
|
Download the following filesAdd the files to your Maven repositoryThere are two possibilities to install the library files. Either install them in a local Maven repository or deploy them to a hosted Maven repository. Install in the local Maven repository Code Block |
---|
mvn install:install-file -Dfile=user-profiles-external-api-1.0.0.jar -DgroupId=de.communardo.atlassian.plugins.userprofile.external.api -DartifactId=user-profiles-external-api -Dversion=1.0.0 -Dpackaging=jar -Djavadoc=user-profiles-external-api-1.0.0-javadoc.jar |
Deploy to a hosted Maven repository Code Block |
---|
mvn deploy:deploy-file -Dfile=user-profiles-external-api-1.0.0.jar -DgroupId=de.communardo.atlassian.plugins.userprofile.external.api -DartifactId=user-profiles-external-api -Dversion=1.0.0 -Dpackaging=jar -Djavadoc=user-profiles-external-api-1.0.0-javadoc.jar -DrepositoryId=<id-to-map-on-server-section-of-settings.xml> -Durl=<url-of-the-repository-to-deploy> |
Include the UPC Java API in your Add-On App pom.xml Code Block |
---|
<dependency>
<groupId>de.communardo.atlassian.plugins.userprofile.external.api</groupId>
<artifactId>user-profiles-external-api</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency> |
|
Expand |
---|
title | for app versions >= 3.3.15 |
---|
|
Download the following filesAdd the files to your Maven repositoryThere are two possibilities to install the library files. Either install them in a local Maven repository or deploy them to a hosted Maven repository. Install in the local Maven repository Code Block |
---|
mvn install:install-file -Dfile=user-profiles-external-api-1.1.0.jar -DgroupId=de.communardo.atlassian.plugins.userprofile.external.api -DartifactId=user-profiles-external-api -Dversion=1.1.0 -Dpackaging=jar -Djavadoc=user-profiles-external-api-1.1.0-javadoc.jar |
Deploy to a hosted Maven repository Code Block |
---|
mvn deploy:deploy-file -Dfile=user-profiles-external-api-1.1.0.jar -DgroupId=de.communardo.atlassian.plugins.userprofile.external.api -DartifactId=user-profiles-external-api -Dversion=1.1.0 -Dpackaging=jar -Djavadoc=user-profiles-external-api-1.1.0-javadoc.jar -DrepositoryId=<id-to-map-on-server-section-of-settings.xml> -Durl=<url-of-the-repository-to-deploy> |
Include the UPC Java API in your Add-On App pom.xml Code Block |
---|
<dependency>
<groupId>de.communardo.atlassian.plugins.userprofile.external.api</groupId>
<artifactId>user-profiles-external-api</artifactId>
<version>1.1.0</version>
<scope>provided</scope>
</dependency> |
|
...
Usage in our own classes (e.g. your components)
To import the services provided by our API as components, using Atlassian Spring Scanner as an example:
Code Block |
---|
|
import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import de.communardo.atlassian.plugins.userprofile.external.api.service.UppProfileElementDataManager;
import de.communardo.atlassian.plugins.userprofile.external.api.service.UppProfileElementManager;
import org.springframework.stereotype.Component;
@Component
public class MyComponent {
public MyComponent(@ComponentImport UppProfileElementManager uppProfileElementManager,
@ComponentImport UppProfileElementDataManager uppProfileElementDataManager) {
// do stuff with uppProfileElementManager and/or uppProfileElementDataManager
}
} |
Make sure the User Profiles for Confluence
...
(Microsoft Attributes Sync) App is already installed on your Confluence system.
Check Installation and Licensing (v 3.5) for further information.
...
ProfileElementDataChangedEvent
User Profiles for Confluence (Microsoft Attributes Sync) publishes events every minute, which contain all changes that happened since the last publication. One event contains a maximum of 1000 changes as a collection of updates. Each update contains a user key, a profile element and the new data. The following table shows the models of the change sets:
...