is application added to owner
This commit is contained in:
parent
99bbd5b8c4
commit
34710730db
13
.classpath
13
.classpath
|
@ -23,5 +23,18 @@
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="test" value="true"/>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
|
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
|
<attribute name="optional" value="true"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
<classpathentry kind="output" path="target/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
||||||
|
|
||||||
public class Owner {
|
public class Owner {
|
||||||
|
|
||||||
|
|
||||||
private String clientId;
|
private String clientId;
|
||||||
private List<String> roles = new ArrayList<String>();
|
private List<String> roles = new ArrayList<String>();
|
||||||
|
|
||||||
|
@ -23,15 +24,17 @@ public class Owner {
|
||||||
//the name of the organisation / community using such client. D4Science will be used for internal clients.
|
//the name of the organisation / community using such client. D4Science will be used for internal clients.
|
||||||
private String contactOrganisation;
|
private String contactOrganisation;
|
||||||
|
|
||||||
|
private boolean application;
|
||||||
|
|
||||||
public Owner(String clientId, List<String> roles, boolean external) {
|
public Owner(String clientId, List<String> roles, boolean external, boolean application) {
|
||||||
super();
|
super();
|
||||||
this.clientId = clientId;
|
this.clientId = clientId;
|
||||||
this.roles = roles;
|
this.roles = roles;
|
||||||
this.externalClient = external;
|
this.externalClient = external;
|
||||||
|
this.application = application;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Owner(String clientId, List<String> roles, String email, String firstName, String lastName,boolean external) {
|
public Owner(String clientId, List<String> roles, String email, String firstName, String lastName,boolean external, boolean application) {
|
||||||
super();
|
super();
|
||||||
this.clientId = clientId;
|
this.clientId = clientId;
|
||||||
this.roles = roles;
|
this.roles = roles;
|
||||||
|
@ -39,8 +42,13 @@ public class Owner {
|
||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
this.externalClient = external;
|
this.externalClient = external;
|
||||||
|
this.application = application;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isApplication() {
|
||||||
|
return application;
|
||||||
|
}
|
||||||
|
|
||||||
public String getId() {
|
public String getId() {
|
||||||
return clientId;
|
return clientId;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue