public class PersonHandler
extends java.lang.Object
Constructor and Description |
---|
PersonHandler(PdkWsCommon handler) |
Modifier and Type | Method and Description |
---|---|
Person |
createPerson(java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.String organization)
Opret ny Person
|
Person |
getPerson(java.lang.Integer personId)
Get Person by ID
|
Person |
getPerson(java.lang.String email)
Get Person by Email-adress
|
void |
removePerson(java.lang.Integer personId)
Nedlæg Person såfremt denne denne ikke har nogen brugere eller abonnenter.
|
Person |
updatePerson(java.lang.Integer personId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.String organization)
Opdater Person
|
public PersonHandler(PdkWsCommon handler)
public Person getPerson(java.lang.Integer personId) throws java.lang.Exception
java.lang.Exception
public Person getPerson(java.lang.String email) throws java.lang.Exception
java.lang.Exception
public Person createPerson(java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.String organization) throws java.lang.Exception
java.lang.Exception
public Person updatePerson(java.lang.Integer personId, java.lang.String firstName, java.lang.String lastName, java.lang.String email, java.lang.String organization) throws java.lang.Exception
java.lang.Exception
public void removePerson(java.lang.Integer personId) throws java.lang.Exception
java.lang.Exception