Skip to content

Commit

Permalink
Very basic functionality. Users only.
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Oct 10, 2014
1 parent f845589 commit 0b9047e
Show file tree
Hide file tree
Showing 6 changed files with 328 additions and 53 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@
hs_err_pid*

*~
target/
target/

.classpath
.project
.settings/
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
</build>

<dependencies>

<dependency>
<groupId>org.gitlab</groupId>
<artifactId>java-gitlab-api</artifactId>
<version>1.1.6-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
2 changes: 1 addition & 1 deletion src/main/assembly/connector.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<useProjectArtifact>false</useProjectArtifact>
<scope>runtime</scope>
<excludes>
<exclude>org.connid:connector-framework</exclude>
<exclude>net.tirasa.connid:connector-framework</exclude>
</excludes>
</dependencySet>
</dependencySets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010-2014 Evolveum
* Copyright (c) 2014 Evolveum
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -24,20 +24,32 @@ public class GitlabConfiguration extends AbstractConfiguration {

private static final Log LOG = Log.getLog(GitlabConfiguration.class);

private String sampleProperty;
private String hostUrl;
private String apiToken;

@Override
public void validate() {
//todo implement
}

@ConfigurationProperty(displayMessageKey = "${connectorNameLowerCase}.config.sampleProperty",
helpMessageKey = "${connectorNameLowerCase}.config.sampleProperty.help")
public String getSampleProperty() {
return sampleProperty;
@ConfigurationProperty(displayMessageKey = "${connectorNameLowerCase}.config.hostUrl",
helpMessageKey = "${connectorNameLowerCase}.config.hostUrl.help")
public String getHostUrl() {
return hostUrl;
}

public void setSampleProperty(String sampleProperty) {
this.sampleProperty = sampleProperty;
public void setHostUrl(String hostUrl) {
this.hostUrl = hostUrl;
}

@ConfigurationProperty(displayMessageKey = "${connectorNameLowerCase}.config.apiToken",
helpMessageKey = "${connectorNameLowerCase}.config.apiToken.help")
public String getApiToken() {
return apiToken;
}

public void setApiToken(String apiToken) {
this.apiToken = apiToken;
}

}

This file was deleted.

Loading

0 comments on commit 0b9047e

Please sign in to comment.