Merged 5.2.N (5.2.1) to HEAD (5.2)

132120 mward: REPO-892: removed PersonUpdate class.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132340 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-11-03 14:05:13 +00:00
parent a77b7e3173
commit a6fa33a24a
8 changed files with 168 additions and 525 deletions

View File

@@ -32,7 +32,6 @@ import org.alfresco.rest.api.Nodes;
import org.alfresco.rest.api.People;
import org.alfresco.rest.api.Sites;
import org.alfresco.rest.api.model.Person;
import org.alfresco.rest.api.model.PersonUpdate;
import org.alfresco.rest.framework.core.exceptions.ConstraintViolatedException;
import org.alfresco.rest.framework.core.exceptions.EntityNotFoundException;
import org.alfresco.rest.framework.core.exceptions.InvalidArgumentException;
@@ -283,7 +282,7 @@ public class PeopleImpl implements People
}
@Override
public Person create(PersonUpdate person)
public Person create(Person person)
{
validateCreatePersonData(person);
@@ -334,7 +333,7 @@ public class PeopleImpl implements People
});
}
private void validateCreatePersonData(PersonUpdate person)
private void validateCreatePersonData(Person person)
{
checkRequiredField("id", person.getUserName());
checkRequiredField("firstName", person.getFirstName());