Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1)

129004 adavis: REPO-243 People Live Search
      - First cut of this code
      - Includes a re-factor of the code used by GET /queries/live-search-nodes as there is much in common.
      - Still have some tests to write and there are bound to be comments from the review.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129187 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Martin Muller
2016-08-05 13:49:15 +00:00
parent 15f33e6130
commit 83e9fdf964
10 changed files with 906 additions and 235 deletions

View File

@@ -47,16 +47,12 @@ public class PersonInfo
String location, String tel, String mob, String instantmsg,
String google)
{
super();
if(username == null)
{
throw new IllegalArgumentException();
}
super();
setUsername(username);
this.company = company;
this.networkAdmin = false;
this.firstName = firstName;
this.lastName = lastName;
this.username = username;
this.password = password;
this.skype = skype;
this.location = location;
@@ -64,7 +60,16 @@ public class PersonInfo
this.mob = mob;
this.instantmsg = instantmsg;
this.google = google;
}
}
void setUsername(String username)
{
if (username == null)
{
throw new IllegalArgumentException();
}
this.username = username;
}
public boolean isNetworkAdmin()
{