public interface PersonService
Modifier and Type | Method and Description |
---|---|
Node |
createOrUpdateJob(Node oldJob,
Node person,
Node organisation,
java.lang.String position,
java.lang.String department,
boolean isPrimary)
Creates or update a job of a person in an organisation
|
java.lang.String |
getDefaultDisplayName(Node person)
Simply returns the display name of the given person or organisation
|
Node |
saveEntity(Node entity,
boolean commit)
Try to save and optionally commit a person or an organisation after applying
context specific rules and special behaviors (typically cache updates).
|
java.lang.String getDefaultDisplayName(Node person)
Node saveEntity(Node entity, boolean commit) throws PeopleException, RepositoryException
entity
- commit
- also commit the corresponding objectPeopleException
- If one a the rule defined for this type is not respected. Use
getMessage to display to the user if neededRepositoryException
Node createOrUpdateJob(Node oldJob, Node person, Node organisation, java.lang.String position, java.lang.String department, boolean isPrimary)
oldJob
- null if creationperson
- cannot be nullorganisation
- cannot be nullposition
- can be nulldepartment
- can be nullisPrimary
- pass false by defaultCopyright © 2007–2020. All rights reserved.