public interface PersonService
Modifier and Type | Method and Description |
---|---|
boolean |
checkActivePersonWithLoginExists(java.lang.String loginName)
Answer whether active person for given loginName exists.
|
void |
deleteSetting(java.lang.String personId,
java.lang.String settingName)
Deletes the given personal setting.
|
PersonList |
findPersons(PersonCriteria criteria)
Returns a PersonList with Persons defined by the given
personCriteria argument. |
Person |
getPerson(java.lang.String personId)
Returns a
Person instance if such person (identified by id) exists in the
application. |
Person |
getPersonByLogin(java.lang.String login)
Returns a
Person instance if such person (identified by login) exists in the
application. |
PersonPicture |
getPersonPicture(java.lang.String personId)
Returns picture for person.
|
ByteData |
getSetting(java.lang.String personId,
java.lang.String settingName)
Returns the personal setting with the given name.
|
boolean |
hasPersonAnyRight(java.lang.String login,
java.util.List<java.lang.String> rights)
Answer whether person is active and has any of the given rights
|
void |
setPersonPicture(java.lang.String personId,
PersonPicture picture)
Sets picture for person.
|
void |
setSetting(java.lang.String personId,
java.lang.String settingName,
ByteData settingContent)
Sets the given personal setting.
|
Person getPerson(java.lang.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(java.lang.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(java.lang.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(java.lang.String personId, java.lang.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(java.lang.String personId, java.lang.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(java.lang.String personId, java.lang.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(java.lang.String login, java.util.List<java.lang.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(java.lang.String personId) throws PersonNotFoundException, PersonPictureException
personId
- PersonNotFoundException
PersonPictureException
void setPersonPicture(java.lang.String personId, PersonPicture picture) throws PersonNotFoundException, PersonPictureException
personId
- picture
- PersonNotFoundException
PersonPictureException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.