public interface PersonService
Modifier and Type | Method and Description |
---|---|
boolean |
checkActivePersonWithLoginExists(String loginName)
Answer whether active person for given loginName exists.
|
void |
deleteSetting(String personId,
String settingName)
Deletes the given personal setting.
|
PersonList |
findPersons(PersonCriteria criteria)
Returns a PersonList with Persons defined by the given
personCriteria argument. |
Person |
getPerson(String personId)
Returns a
Person instance if such person (identified by id) exists in the
application. |
Person |
getPersonByLogin(String login)
Returns a
Person instance if such person (identified by login) exists in the
application. |
PersonPicture |
getPersonPicture(String personId)
Returns picture for person.
|
ByteData |
getSetting(String personId,
String settingName)
Returns the personal setting with the given name.
|
boolean |
hasPersonAnyRight(String login,
List<String> rights)
Answer whether person is active and has any of the given rights
|
void |
setPersonPicture(String personId,
PersonPicture picture)
Sets picture for person.
|
void |
setSetting(String personId,
String settingName,
ByteData settingContent)
Sets the given personal setting.
|
Person getPerson(String personId)
Person
instance if such person (identified by id) exists in the
application.personId
- id of the person to findPerson
instance if such person exists, otherwise nullPerson getPersonByLogin(String login)
Person
instance if such person (identified by login) exists in the
application.login
- login of the person to findPerson
instance if such person exists in the application, otherwise nullboolean checkActivePersonWithLoginExists(String loginName)
loginName
- loginName of the person to findPersonList findPersons(PersonCriteria criteria)
personCriteria
argument.criteria
- PersonCriteria
instance that specifies a paging and filtering criteria for
querying personspersonCriteria
argument.ByteData getSetting(String personId, String settingName) throws PersonNotFoundException
personId
- id name of the person for which the setting should be returnedsettingName
- name of the settingPersonNotFoundException
- if no person is found for the personId
void setSetting(String personId, String settingName, ByteData settingContent) throws PersonNotFoundException
personId
- id of the person for which the setting should be setsettingName
- name of the settingsettingContent
- setting contentPersonNotFoundException
- if no person is found for the personId
void deleteSetting(String personId, String settingName) throws PersonNotFoundException
personId
- id of the person for which the setting should be deletedsettingName
- name of the settingPersonNotFoundException
- if no person is found for the personId
boolean hasPersonAnyRight(String login, List<String> rights)
login
- login of the person to findrights
- the rights person is required to have (at least one of them) or null if none is requiredPersonPicture getPersonPicture(String personId) throws PersonNotFoundException, PersonPictureException
personId
- PersonNotFoundException
PersonPictureException
void setPersonPicture(String personId, PersonPicture picture) throws PersonNotFoundException, PersonPictureException
personId
- picture
- PersonNotFoundException
PersonPictureException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.